Socket
Socket
Sign inDemoInstall

mendoza

Package Overview
Dependencies
Maintainers
37
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mendoza - npm Package Compare versions

Comparing version 3.0.1-canary.5 to 3.0.1-canary.6

12

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc