Skip to content

Commit

Permalink
fix: lz-string
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Sep 12, 2023
1 parent 1e55d7e commit c9b92f8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
20 changes: 20 additions & 0 deletions patches/lz-string@1.5.0.patch
Original file line number Diff line number Diff line change
@@ -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;
8 changes: 6 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c9b92f8

Please sign in to comment.