diff --git a/package.json b/package.json index eb4122d..32163d4 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,8 @@ }, "pnpm": { "patchedDependencies": { - "@monaco-editor/react@4.5.2": "patches/@monaco-editor__react@4.5.2.patch" + "@monaco-editor/react@4.5.2": "patches/@monaco-editor__react@4.5.2.patch", + "lz-string@1.5.0": "patches/lz-string@1.5.0.patch" } } } \ No newline at end of file diff --git a/patches/lz-string@1.5.0.patch b/patches/lz-string@1.5.0.patch new file mode 100644 index 0000000..2f46be7 --- /dev/null +++ b/patches/lz-string@1.5.0.patch @@ -0,0 +1,20 @@ +diff --git a/libs/lz-string.js b/libs/lz-string.js +index de663ae434219ccd5fc8fb7917f60199d17c7d39..1100f66bf344544f6bd646241e164213f5945598 100644 +--- a/libs/lz-string.js ++++ b/libs/lz-string.js +@@ -494,13 +494,5 @@ var LZString = { + return LZString; + })(); + +-if (typeof define === 'function' && define.amd) { +- define(function () { return LZString; }); +-} else if( typeof module !== 'undefined' && module != null ) { +- module.exports = LZString +-} else if( typeof angular !== 'undefined' && angular != null ) { +- angular.module('LZString', []) +- .factory('LZString', function () { +- return LZString; +- }); +-} ++ ++module.exports = LZString; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2d1acd9..6665222 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ patchedDependencies: '@monaco-editor/react@4.5.2': hash: gihgqkfyjtyzf2xeyavynk37f4 path: patches/@monaco-editor__react@4.5.2.patch + lz-string@1.5.0: + hash: qnowa6rydet5lzvuxqtpcmr2nu + path: patches/lz-string@1.5.0.patch dependencies: '@monaco-editor/loader': @@ -21,7 +24,7 @@ dependencies: version: 1.2.2(react@18.3.0-canary-41f0e9dae-20230907) lz-string: specifier: ^1.5.0 - version: 1.5.0 + version: 1.5.0(patch_hash=qnowa6rydet5lzvuxqtpcmr2nu) react: specifier: 18.3.0-canary-41f0e9dae-20230907 version: 18.3.0-canary-41f0e9dae-20230907 @@ -947,10 +950,11 @@ packages: js-tokens: 4.0.0 dev: false - /lz-string@1.5.0: + /lz-string@1.5.0(patch_hash=qnowa6rydet5lzvuxqtpcmr2nu): resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} hasBin: true dev: false + patched: true /magic-string@0.30.3: resolution: {integrity: sha512-B7xGbll2fG/VjP+SWg4sX3JynwIU0mjoTc6MPpKNuIvftk6u6vqhDnk1R80b8C2GBR6ywqy+1DcKBrevBg+bmw==}