MCPcopy Create free account

hub / github.com/Starcounter-Jack/JSON-Patch / functions

Functions111 in github.com/Starcounter-Jack/JSON-Patch

↓ 12 callersFunction_deepClone
(obj)
module/helpers.mjs:49
↓ 4 callersFunctionapplyOperation
(document, operation, validateOperation, mutateDocument, banPrototypeModifications, index)
module/core.mjs:108
↓ 4 callersFunctionapplyOperation
* Apply a single JSON Patch Operation on a JSON document. * Returns the {newDocument, result} of the operation. * It modifies the `document` and `op
commonjs/core.js:110
↓ 4 callersFunctionapplyOperation
(document: T, operation: Operation, validateOperation: boolean | Validator<T> = false, mutateDocument: boolean
src/core.ts:182
↓ 4 callersFunctionhasOwnProperty
(obj, key)
module/helpers.mjs:20
↓ 4 callersFunctionisInteger
(str)
module/helpers.mjs:60
↓ 3 callersFunction_objectKeys
(obj)
module/helpers.mjs:23
↓ 3 callersFunctionapplyPatch
(document, patch, validateOperation, mutateDocument, banPrototypeModifications)
module/core.mjs:263
↓ 3 callersFunctionescapePathComponent
(path)
module/helpers.mjs:79
↓ 3 callersFunctiontrigger
(eventName)
test/spec/duplexSpec.mjs:8
↓ 2 callersFunction_areEquals
(a, b)
module/core.mjs:401
↓ 2 callersFunction_areEquals
(a, b)
commonjs/core.js:408
↓ 2 callersFunction_areEquals
(a: any, b: any)
src/core.ts:483
↓ 2 callersFunction_generate
(mirror, obj, patches, path, invertible)
module/duplex.mjs:113
↓ 2 callersFunction_generate
(mirror, obj, patches, path, invertible)
commonjs/duplex.js:117
↓ 2 callersFunction_generate
(mirror, obj, patches, path, invertible)
src/duplex.ts:143
↓ 2 callersFunctionapplyPatch
(document: T, patch: ReadonlyArray<Operation>, validateOperation?: boolean | Validator<T>, mutateDocument: boo
src/core.ts:331
↓ 2 callersFunctionbenchmarkReporter
(suite)
test/lib/benchmark_reporter.js:1
↓ 2 callersFunctionbenchmarkResultsToConsole
(suite)
test/lib/benchmark_console_reporter.js:2
↓ 2 callersFunctiongenerate
(observer, invertible)
module/duplex.mjs:96
↓ 2 callersFunctiongenerate
* Generate an array of patches from an observer
commonjs/duplex.js:99
↓ 2 callersFunctiongenerate
(observer: Observer<Object>, invertible = false)
src/duplex.ts:125
↓ 2 callersFunctiongetValueByPointer
(document, pointer)
module/core.mjs:86
↓ 2 callersFunctiongetValueByPointer
* Retrieves a value from a JSON document by a JSON pointer. * Returns the value. * * @param document The document to get the value from * @param p
commonjs/core.js:87
↓ 2 callersFunctiongetValueByPointer
(document: any, pointer: string)
src/core.ts:160
↓ 2 callersFunctionhasOwnProperty
(obj, key)
commonjs/helpers.js:21
↓ 2 callersFunctionhasOwnProperty
(obj, key)
src/helpers.ts:8
↓ 2 callersFunctionhasUndefined
(obj)
module/helpers.mjs:122
↓ 2 callersFunctionobjChanger
(obj)
test/spec/duplexSpec.mjs:842
↓ 2 callersFunctionobjFactory
()
test/spec/duplexSpec.mjs:836
↓ 2 callersFunctionunescapePathComponent
(path)
module/helpers.mjs:89
↓ 1 callersFunction_getPathRecursive
(root, obj)
module/helpers.mjs:92
↓ 1 callersFunction_getPathRecursive
(root, obj)
commonjs/helpers.js:99
↓ 1 callersFunction_getPathRecursive
(root: Object, obj: Object)
src/helpers.ts:79
↓ 1 callersFunction_objectKeys
(obj)
commonjs/helpers.js:25
↓ 1 callersFunction_objectKeys
(obj)
src/helpers.ts:11
↓ 1 callersFunctionapplyPatch
* Apply a full JSON Patch array on a JSON document. * Returns the {newDocument, result} of the patch. * It modifies the `document` object and `patch
commonjs/core.js:266
↓ 1 callersFunctioncallbackCalled
(time)
test/spec/duplexSpec.mjs:1449
↓ 1 callersFunctionescapePathComponent
* Escapes a json pointer path * @param path The raw pointer * @return the Escaped path
commonjs/helpers.js:84
↓ 1 callersFunctionescapePathComponent
(path: string)
src/helpers.ts:66
↓ 1 callersFunctionextendStatics
(d, b)
module/helpers.mjs:7
↓ 1 callersFunctionextendStatics
(d, b)
commonjs/helpers.js:7
↓ 1 callersFunctiongetMirror
(obj)
module/duplex.mjs:23
↓ 1 callersFunctiongetMirror
(obj)
commonjs/duplex.js:24
↓ 1 callersFunctiongetMirror
(obj: Object)
src/duplex.ts:38
↓ 1 callersFunctiongetObserverFromMirror
(mirror, callback)
module/duplex.mjs:26
↓ 1 callersFunctiongetObserverFromMirror
(mirror, callback)
commonjs/duplex.js:27
↓ 1 callersFunctiongetObserverFromMirror
(mirror: Mirror, callback)
src/duplex.ts:42
↓ 1 callersFunctiongetPatchesUsingCompare
(objFactory, objChanger)
test/spec/duplexSpec.mjs:28
↓ 1 callersFunctiongetPatchesUsingGenerate
(objFactory, objChanger)
test/spec/duplexSpec.mjs:21
↓ 1 callersFunctioninsertIf
(condition, ...elements)
test/spec/duplexSpec.mjs:67
↓ 1 callersFunctionpatchErrorMessageFormatter
(message, args)
module/helpers.mjs:146
↓ 1 callersFunctionpatchErrorMessageFormatter
(message, args)
commonjs/helpers.js:156
↓ 1 callersFunctionpatchErrorMessageFormatter
(message: String, args: Object)
src/helpers.ts:149
↓ 1 callersFunctionpatchesChanged
()
test/spec/duplexSpec.mjs:1067
↓ 1 callersFunctionremoveObserverFromMirror
(mirror, observer)
module/duplex.mjs:29
↓ 1 callersFunctionremoveObserverFromMirror
(mirror, observer)
commonjs/duplex.js:30
↓ 1 callersFunctionremoveObserverFromMirror
(mirror: Mirror, observer)
src/duplex.ts:46
↓ 1 callersFunctionrenderBenchmark
()
test/lib/benchmark_reporter.js:10
↓ 1 callersFunctionrenderBenchmarkCol
(parent, elemName, innerHTML)
test/lib/benchmark_reporter.js:4
↓ 1 callersFunctionshallowObj
()
test/spec/duplexBenchmark.js:119
↓ 1 callersFunctionvalidate
(sequence, document, externalValidator)
module/core.mjs:358
↓ 1 callersFunctionvalidate
* Validates a sequence of operations. If `document` parameter is provided, the sequence is additionally validated against the object document. * If e
commonjs/core.js:364
↓ 1 callersFunctionvalidate
(sequence: ReadonlyArray<Operation>, document?: T, externalValidator?: Validator<T>)
src/core.ts:435
↓ 1 callersFunctionvalidator
(operation, index, document, existingPathFragment)
module/core.mjs:306
↓ 1 callersFunctionvalidator
* Validates a single operation. Called from `jsonpatch.validate`. Throws `JsonPatchError` in case of an error. * @param {object} operation - operatio
commonjs/core.js:311
↓ 1 callersFunctionvalidator
(operation: Operation, index: number, document?: any, existingPathFragment?: string)
src/core.ts:375
↓ 1 callersFunctionvariantIt
(name, variants, fn)
test/spec/duplexSpec.mjs:61
↓ 1 callersFunctionverifyObjectStructure
(obj)
test/spec/esbuild/importSpec.src.js:25
FunctionMirror
(obj)
module/duplex.mjs:10
FunctionMirror
(obj)
commonjs/duplex.js:11
FunctionObserverInfo
(callback, observer)
module/duplex.mjs:17
FunctionObserverInfo
(callback, observer)
commonjs/duplex.js:18
FunctionPatchError
(message, name, index, operation, tree)
module/helpers.mjs:158
FunctionPatchError
(message, name, index, operation, tree)
commonjs/helpers.js:168
FunctionSomeClass
()
test/spec/coreSpec.mjs:1915
Function__
()
module/helpers.mjs:15
Function__
()
commonjs/helpers.js:15
Function_deepClone
* Deeply clone the object. * https://jsperf.com/deep-copy-vs-json-stringify-json-parse/25 (recursiveDeepCopy) * @param {any} obj value to clone * @re
commonjs/helpers.js:52
Function_deepClone
(obj)
src/helpers.ts:36
FunctionapplyReducer
(document, operation, index)
module/core.mjs:292
FunctionapplyReducer
* Apply a single JSON Patch Operation on a JSON document. * Returns the updated document. * Suitable as a reducer. * * @param document The documen
commonjs/core.js:296
FunctionapplyReducer
(document: T, operation: Operation, index: number)
src/core.ts:360
Functioncompare
(tree1, tree2, invertible)
module/duplex.mjs:171
Functioncompare
* Create an array of patches from the differences in two objects
commonjs/duplex.js:175
Functioncompare
(tree1: Object | Array<any>, tree2: Object | Array<any>, invertible = false)
src/duplex.ts:208
Methodconstructor
(message: string, public name: JsonPatchErrorName, public index?: number, public operation?: any, public tree?
src/helpers.ts:160
Methodconstructor
(obj: Object)
src/duplex.ts:23
Methodconstructor
(callback: Function, observer: ObserverInfo)
src/duplex.ts:32
FunctiondirtyCheck
()
module/duplex.mjs:61
FunctiondirtyCheck
()
commonjs/duplex.js:63
FunctiondirtyCheck
()
src/duplex.ts:85
FunctionfastCheck
()
module/duplex.mjs:64
FunctionfastCheck
()
commonjs/duplex.js:66
FunctionfastCheck
()
src/duplex.ts:88
FunctiongetPath
(root, obj)
module/helpers.mjs:109
FunctiongetPath
(root, obj)
commonjs/helpers.js:117
FunctiongetPath
(root: Object, obj: Object)
src/helpers.ts:97
FunctionhasUndefined
* Recursively checks whether an object has any undefined values inside.
commonjs/helpers.js:131
FunctionhasUndefined
(obj: any)
src/helpers.ts:110
next →1–100 of 111, ranked by callers