Comparing version 3.0.1-canary.5 to 3.0.1-canary.6
@@ -17,9 +17,13 @@ var __defProp$1 = Object.defineProperty; | ||
__publicField$1(this, "patch"); | ||
__publicField$1(this, "i", 0); | ||
__publicField$1(this, "inputStack", []); | ||
__publicField$1(this, "outputStack", []); | ||
__publicField$1(this, "ops", [this.processValue, this.processCopy, this.processBlank, this.processReturnIntoArray, this.processReturnIntoObject, this.processReturnIntoObjectSameKey, this.processPushField, this.processPushElement, this.processPushParent, this.processPop, this.processPushFieldCopy, this.processPushFieldBlank, this.processPushElementCopy, this.processPushElementBlank, this.processReturnIntoObjectPop, this.processReturnIntoObjectSameKeyPop, this.processReturnIntoArrayPop, this.processObjectSetFieldValue, this.processObjectCopyField, this.processObjectDeleteField, this.processArrayAppendValue, this.processArrayAppendSlice, this.processStringAppendString, this.processStringAppendSlice]); | ||
__publicField$1(this, "i"); | ||
__publicField$1(this, "inputStack"); | ||
__publicField$1(this, "outputStack"); | ||
__publicField$1(this, "ops"); | ||
this.model = model; | ||
this.root = root; | ||
this.patch = patch; | ||
this.i = 0; | ||
this.inputStack = []; | ||
this.outputStack = []; | ||
this.ops = [this.processValue, this.processCopy, this.processBlank, this.processReturnIntoArray, this.processReturnIntoObject, this.processReturnIntoObjectSameKey, this.processPushField, this.processPushElement, this.processPushParent, this.processPop, this.processPushFieldCopy, this.processPushFieldBlank, this.processPushElementCopy, this.processPushElementBlank, this.processReturnIntoObjectPop, this.processReturnIntoObjectSameKeyPop, this.processReturnIntoArrayPop, this.processObjectSetFieldValue, this.processObjectCopyField, this.processObjectDeleteField, this.processArrayAppendValue, this.processArrayAppendSlice, this.processStringAppendString, this.processStringAppendSlice]; | ||
} | ||
@@ -26,0 +30,0 @@ read() { |
{ | ||
"name": "mendoza", | ||
"version": "3.0.1-canary.5", | ||
"version": "3.0.1-canary.6", | ||
"description": "Mendoza, differ for structured documents", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import {Patcher} from './internal-patcher' | ||
import {ObjectModel} from './object-model' | ||
import {RawPatch} from './patch' | ||
import type {ObjectModel} from './object-model' | ||
import type {RawPatch} from './patch' | ||
import {commonPrefix, commonSuffix, utf8charSize, utf8stringSize} from './utf8' | ||
@@ -5,0 +5,0 @@ |
@@ -19,31 +19,6 @@ import {ObjectModel} from './object-model' | ||
patch: RawPatch | ||
i = 0 | ||
inputStack: InputEntry<V>[] = [] | ||
outputStack: OutputEntry<V, S, O, A>[] = [] | ||
ops = [ | ||
this.processValue, | ||
this.processCopy, | ||
this.processBlank, | ||
this.processReturnIntoArray, | ||
this.processReturnIntoObject, | ||
this.processReturnIntoObjectSameKey, | ||
this.processPushField, | ||
this.processPushElement, | ||
this.processPushParent, | ||
this.processPop, | ||
this.processPushFieldCopy, | ||
this.processPushFieldBlank, | ||
this.processPushElementCopy, | ||
this.processPushElementBlank, | ||
this.processReturnIntoObjectPop, | ||
this.processReturnIntoObjectSameKeyPop, | ||
this.processReturnIntoArrayPop, | ||
this.processObjectSetFieldValue, | ||
this.processObjectCopyField, | ||
this.processObjectDeleteField, | ||
this.processArrayAppendValue, | ||
this.processArrayAppendSlice, | ||
this.processStringAppendString, | ||
this.processStringAppendSlice, | ||
] as const | ||
i: number | ||
inputStack: InputEntry<V>[] | ||
outputStack: OutputEntry<V, S, O, A>[] | ||
ops: ((this: Patcher<V, S, O, A>) => void)[] | ||
@@ -54,2 +29,31 @@ constructor(model: ObjectModel<V, S, O, A>, root: V, patch: RawPatch) { | ||
this.patch = patch | ||
this.i = 0 | ||
this.inputStack = [] | ||
this.outputStack = [] | ||
this.ops = [ | ||
this.processValue, | ||
this.processCopy, | ||
this.processBlank, | ||
this.processReturnIntoArray, | ||
this.processReturnIntoObject, | ||
this.processReturnIntoObjectSameKey, | ||
this.processPushField, | ||
this.processPushElement, | ||
this.processPushParent, | ||
this.processPop, | ||
this.processPushFieldCopy, | ||
this.processPushFieldBlank, | ||
this.processPushElementCopy, | ||
this.processPushElementBlank, | ||
this.processReturnIntoObjectPop, | ||
this.processReturnIntoObjectSameKeyPop, | ||
this.processReturnIntoArrayPop, | ||
this.processObjectSetFieldValue, | ||
this.processObjectCopyField, | ||
this.processObjectDeleteField, | ||
this.processArrayAppendValue, | ||
this.processArrayAppendSlice, | ||
this.processStringAppendString, | ||
this.processStringAppendSlice, | ||
] | ||
} | ||
@@ -56,0 +60,0 @@ |
@@ -98,4 +98,3 @@ import {Patcher} from './internal-patcher' | ||
let patcher = new Patcher(Model, root, patch) | ||
return patcher.process() | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
170015
2282