@sanity/mutator
Advanced tools
Comparing version 3.43.0 to 3.43.1-create-unstable.45
{ | ||
"name": "@sanity/mutator", | ||
"version": "3.43.0", | ||
"version": "3.43.1-create-unstable.45+10e1bc3703", | ||
"description": "A set of models to make it easier to utilize the powerful real time collaborative features of Sanity", | ||
@@ -60,3 +60,3 @@ "keywords": [ | ||
"@repo/package.config": "3.43.0", | ||
"@sanity/types": "3.43.0", | ||
"@sanity/types": "3.43.1-create-unstable.45+10e1bc3703", | ||
"@types/debug": "^4.1.5", | ||
@@ -66,3 +66,3 @@ "@types/lodash": "^4.14.149", | ||
}, | ||
"gitHead": "2b66ff20c9c529b58f6bed31813ae5752f325ed9" | ||
"gitHead": "10e1bc370314f0a2c39d5695e7345d81af78ccde" | ||
} |
@@ -116,2 +116,15 @@ import { | ||
if (str === this.source.slice(this.i, this.i + str.length)) { | ||
// When checking symbols that consist of valid attribute characters, we | ||
// need to make sure we don't inadvertently treat an attribute as a | ||
// symbol. For example, an attribute 'trueCustomerField' should not be | ||
// scanned as the boolean symbol "true". | ||
if (str[0].match(attributeCharMatcher)) { | ||
// check that char following the symbol match is not also an attribute char | ||
if (this.length > this.i + str.length) { | ||
const nextChar = this.source[this.i + str.length] | ||
if (nextChar && nextChar.match(attributeCharMatcher)) { | ||
return null | ||
} | ||
} | ||
} | ||
this.i += str.length | ||
@@ -118,0 +131,0 @@ return str |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
867657
10277
1
1