@shopify/theme-check-common
Advanced tools
Comparing version
# @shopify/theme-check-common | ||
## 2.0.1 | ||
### Patch Changes | ||
- Fix parsing of `}}` inside `{% %}` and vice-versa | ||
- 8f19b87: Bump lodash deps | ||
## 2.0.0 | ||
@@ -4,0 +11,0 @@ |
@@ -7,4 +7,4 @@ "use strict"; | ||
exports.JSONCorrector = void 0; | ||
const lodash_set_1 = __importDefault(require("lodash.set")); | ||
const lodash_unset_1 = __importDefault(require("lodash.unset")); | ||
const set_1 = __importDefault(require("lodash/set")); | ||
const unset_1 = __importDefault(require("lodash/unset")); | ||
// This function mutates json. So use it in a reducer and consider it a | ||
@@ -15,6 +15,6 @@ // fire and forget. | ||
case 'add': { | ||
return (0, lodash_set_1.default)(json, operation.path, operation.value); | ||
return (0, set_1.default)(json, operation.path, operation.value); | ||
} | ||
case 'remove': { | ||
(0, lodash_unset_1.default)(json, operation.path); | ||
(0, unset_1.default)(json, operation.path); | ||
return json; | ||
@@ -21,0 +21,0 @@ } |
{ | ||
"name": "@shopify/theme-check-common", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"license": "MIT", | ||
@@ -29,8 +29,7 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@shopify/liquid-html-parser": "2.0.1", | ||
"@shopify/liquid-html-parser": "2.0.2", | ||
"cross-fetch": "^4.0.0", | ||
"json-to-ast": "^2.1.0", | ||
"line-column": "^1.0.2", | ||
"lodash.set": "^4.3.2", | ||
"lodash.unset": "^4.5.2", | ||
"lodash-es": "^4.17.21", | ||
"minimatch": "^9.0.1" | ||
@@ -41,5 +40,4 @@ }, | ||
"@types/line-column": "^1.0.0", | ||
"@types/lodash.set": "^4.3.7", | ||
"@types/lodash.unset": "^4.5.7" | ||
"@types/lodash-es": "^4.17.12" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import lodashSet from 'lodash.set'; | ||
import lodashSet from 'lodash/set'; | ||
import { describe, expect, it } from 'vitest'; | ||
@@ -68,3 +68,3 @@ import { runLiquidCheck, highlightedOffenses } from '../../test'; | ||
{ | ||
{% endschema %} | ||
@@ -71,0 +71,0 @@ `; |
@@ -1,3 +0,3 @@ | ||
import lodashSet from 'lodash.set'; | ||
import lodashUnset from 'lodash.unset'; | ||
import lodashSet from 'lodash/set'; | ||
import lodashUnset from 'lodash/unset'; | ||
import { Fix } from '../../types'; | ||
@@ -4,0 +4,0 @@ import { BaseCorrector } from './base-corrector'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
806300
5.91%6
-14.29%3
-25%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed