Comparing version 1.150.8-review-changes.644 to 1.150.9-review-changes.736
@@ -19,2 +19,3 @@ import { RawPatch } from './patch'; | ||
elements: Value<T>[]; | ||
metas: T[]; | ||
}; | ||
@@ -21,0 +22,0 @@ export declare type StringContent<T> = { |
@@ -76,5 +76,7 @@ "use strict"; | ||
var elements = value.data.map(item => this.wrapWithMeta(item, value.startMeta)); | ||
var metas = elements.map(() => this.meta); | ||
value.content = { | ||
type: 'array', | ||
elements | ||
elements, | ||
metas | ||
}; | ||
@@ -94,3 +96,3 @@ } | ||
startMeta: value.startMeta, | ||
endMeta: this.meta | ||
endMeta: value.endMeta | ||
}; | ||
@@ -233,6 +235,9 @@ value.content = this.stringFromParts([part]); | ||
copyArray(value) { | ||
var elements = value ? this.asArray(value).elements : []; | ||
var arr = value ? this.asArray(value) : null; | ||
var elements = arr ? arr.elements : []; | ||
var metas = arr ? arr.metas : []; | ||
return { | ||
type: 'array', | ||
elements | ||
elements, | ||
metas | ||
}; | ||
@@ -251,7 +256,9 @@ } | ||
target.elements.push(value); | ||
target.metas.push(this.meta); | ||
} | ||
arrayAppendSlice(target, source, left, right) { | ||
var slice = this.asArray(source).elements.slice(left, right); | ||
target.elements.push(...slice); | ||
var arr = this.asArray(source); | ||
target.elements.push(...arr.elements.slice(left, right)); | ||
target.metas.push(...arr.metas.slice(left, right)); | ||
} | ||
@@ -258,0 +265,0 @@ |
{ | ||
"name": "mendoza", | ||
"version": "1.150.8-review-changes.644+62b5810ae", | ||
"version": "1.150.9-review-changes.736+39ff07c30", | ||
"description": "", | ||
@@ -38,3 +38,3 @@ "main": "./lib/index.js", | ||
}, | ||
"gitHead": "62b5810aee9b05bce3686caefa1357dd1c66b830" | ||
"gitHead": "39ff07c30315dfc1aa27c881b22087b3a67a451f" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
34149
886