New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/theme-check-common

Package Overview
Dependencies
Maintainers
25
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/theme-check-common - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

7

CHANGELOG.md
# @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 @@

8

dist/fixes/correctors/json-corrector.js

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

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