diff --git a/src/core/generate-json-patch.spec.ts b/src/core/generate-json-patch.spec.ts index 471abe5..fc5cd61 100644 --- a/src/core/generate-json-patch.spec.ts +++ b/src/core/generate-json-patch.spec.ts @@ -2,7 +2,7 @@ import { getDiff } from '.' // Models -import { JsonPatch } from '../models/jsondiffer.model' +import { JsonPatch } from '../models/json-difference.model' import { generateJsonPatch } from './generate-json-patch' describe('GenerateJsonPatch function', () => { diff --git a/src/core/generate-json-patch.ts b/src/core/generate-json-patch.ts index 890563f..3412aa8 100644 --- a/src/core/generate-json-patch.ts +++ b/src/core/generate-json-patch.ts @@ -1,5 +1,5 @@ // Models -import { Delta, JsonPatch } from '../models/jsondiffer.model' +import { Delta, JsonPatch } from '../models/json-difference.model' export const generateJsonPatch = (delta: Delta): Array => { const operations: Array = [] diff --git a/src/core/get-diff.spec.ts b/src/core/get-diff.spec.ts index e5ac7db..7af0ca1 100644 --- a/src/core/get-diff.spec.ts +++ b/src/core/get-diff.spec.ts @@ -2,7 +2,7 @@ import { getDiff } from '.' // Models -import { Delta } from '../models/jsondiffer.model' +import { Delta } from '../models/json-difference.model' describe('GetDiff function', () => { test('Should return the difference between two basic structures', () => { diff --git a/src/core/get-diff.ts b/src/core/get-diff.ts index a68c369..bb5500a 100644 --- a/src/core/get-diff.ts +++ b/src/core/get-diff.ts @@ -4,7 +4,7 @@ import { getPathsDiff } from './get-paths-diff' import { getStructPaths } from './get-struct-paths' // Models -import { Delta, JsonDiffOptions } from '../models/jsondiffer.model' +import { Delta, JsonDiffOptions } from '../models/json-difference.model' import sanitizeDelta from '../helpers/sanitize-delta' const defaultOptions: JsonDiffOptions = { diff --git a/src/core/get-edited-paths.spec.ts b/src/core/get-edited-paths.spec.ts index 33b8473..1c6556a 100644 --- a/src/core/get-edited-paths.spec.ts +++ b/src/core/get-edited-paths.spec.ts @@ -1,5 +1,5 @@ import { getEditedPaths } from '.' -import { EditedPath } from '../models/jsondiffer.model' +import { EditedPath } from '../models/json-difference.model' describe('GetEditedPaths function', () => { test('Should return empty when there is no edited value', () => { diff --git a/src/core/get-edited-paths.ts b/src/core/get-edited-paths.ts index e8b1eea..02dc8d6 100644 --- a/src/core/get-edited-paths.ts +++ b/src/core/get-edited-paths.ts @@ -1,5 +1,5 @@ // Models -import { EditedPath, StructPaths } from '../models/jsondiffer.model' +import { EditedPath, StructPaths } from '../models/json-difference.model' /** * This method returns all paths whose leaf value has changed diff --git a/src/core/get-paths-diff.spec.ts b/src/core/get-paths-diff.spec.ts index 821d8d9..63a7a12 100644 --- a/src/core/get-paths-diff.spec.ts +++ b/src/core/get-paths-diff.spec.ts @@ -1,6 +1,6 @@ // Packages import { getPathsDiff } from '.' -import { PathsDiff } from '../models/jsondiffer.model' +import { PathsDiff } from '../models/json-difference.model' describe('GetPathsDiff function', () => { test('Should return empty when there is no key difference', () => { diff --git a/src/core/get-paths-diff.ts b/src/core/get-paths-diff.ts index e75b95e..fb7482c 100644 --- a/src/core/get-paths-diff.ts +++ b/src/core/get-paths-diff.ts @@ -1,5 +1,5 @@ // Models -import { PathsDiff, StructPaths } from '../models/jsondiffer.model' +import { PathsDiff, StructPaths } from '../models/json-difference.model' /** * This method returns all paths whose leaf value has changed diff --git a/src/core/get-struct-paths.ts b/src/core/get-struct-paths.ts index d64786d..a896348 100644 --- a/src/core/get-struct-paths.ts +++ b/src/core/get-struct-paths.ts @@ -1,5 +1,5 @@ // Models -import { StructPaths } from '../models/jsondiffer.model' +import { StructPaths } from '../models/json-difference.model' const generatePath = (isArray: boolean, currentPath: string, newPath: string, lodashLike: boolean): string => { const prefix = lodashLike ? (isArray ? '[' : '.') : '/' diff --git a/src/models/index.ts b/src/models/index.ts index 62d3b9a..f8f1f66 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -1 +1 @@ -export * from './jsondiffer.model' +export * from './json-difference.model' diff --git a/src/models/jsondiffer.model.ts b/src/models/json-difference.model.ts similarity index 100% rename from src/models/jsondiffer.model.ts rename to src/models/json-difference.model.ts