diff --git a/js/storage-util.js b/js/storage-util.js index 8cf894d9..11ed7e72 100644 --- a/js/storage-util.js +++ b/js/storage-util.js @@ -69,7 +69,7 @@ var [chromeLocal, chromeSync] = (() => { function loadLZStringScript() { return window.LZString ? Promise.resolve(window.LZString) : - loadScript('/vendor/lz-string/lz-string-unsafe.js').then(() => + loadScript('/vendor/lz-string-unsafe/lz-string-unsafe.min.js').then(() => (window.LZString = window.LZString || window.LZStringUnsafe)); } diff --git a/package.json b/package.json index 79ac56b3..ea4dbd9c 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "fs-extra": "^7.0.0", "jsonlint": "^1.6.3", "less": "^3.7.1", + "lz-string-unsafe": "^1.4.4-beta", "updates": "^3.2.3" }, "scripts": { diff --git a/tools/update-libraries.js b/tools/update-libraries.js index c4a5800a..b2c03abe 100644 --- a/tools/update-libraries.js +++ b/tools/update-libraries.js @@ -43,6 +43,9 @@ const files = { ], 'less': [ 'dist/less.min.js → less.min.js' + ], + 'lz-string-unsafe': [ + 'lz-string-unsafe.min.js → lz-string-unsafe.min.js' ] }; diff --git a/vendor/lz-string/LICENSE b/vendor/lz-string-unsafe/LICENSE similarity index 97% rename from vendor/lz-string/LICENSE rename to vendor/lz-string-unsafe/LICENSE index 5b1c7da3..a54cec2e 100644 --- a/vendor/lz-string/LICENSE +++ b/vendor/lz-string-unsafe/LICENSE @@ -1,23 +1,23 @@ -http://pieroxy.net/blog/pages/lz-string/index.html - -https://github.com/pieroxy/lz-string/blob/master/LICENSE.txt - - -Copyright (c) 2013 Pieroxy -This work is free. You can redistribute it and/or modify it -under the terms of the WTFPL, Version 2 -For more information see LICENSE.txt or http://www.wtfpl.net/ - -For more information, the home page: -http://pieroxy.net/blog/pages/lz-string/testing.html - -LZ-based compression algorithm, version 1.4.4 -Copyright (c) 2013 Pieroxy -This work is free. You can redistribute it and/or modify it -under the terms of the WTFPL, Version 2 -For more information see LICENSE.txt or http://www.wtfpl.net/ - -For more information, the home page: -http://pieroxy.net/blog/pages/lz-string/testing.html - -LZ-based compression algorithm, version 1.4.4 +http://pieroxy.net/blog/pages/lz-string/index.html + +https://github.com/pieroxy/lz-string/blob/master/LICENSE.txt + + +Copyright (c) 2013 Pieroxy +This work is free. You can redistribute it and/or modify it +under the terms of the WTFPL, Version 2 +For more information see LICENSE.txt or http://www.wtfpl.net/ + +For more information, the home page: +http://pieroxy.net/blog/pages/lz-string/testing.html + +LZ-based compression algorithm, version 1.4.4 +Copyright (c) 2013 Pieroxy +This work is free. You can redistribute it and/or modify it +under the terms of the WTFPL, Version 2 +For more information see LICENSE.txt or http://www.wtfpl.net/ + +For more information, the home page: +http://pieroxy.net/blog/pages/lz-string/testing.html + +LZ-based compression algorithm, version 1.4.4 diff --git a/vendor/lz-string-unsafe/README.md b/vendor/lz-string-unsafe/README.md new file mode 100644 index 00000000..e5cb4a28 --- /dev/null +++ b/vendor/lz-string-unsafe/README.md @@ -0,0 +1,5 @@ +## Lz-string-unsafe v0.0.0 + +lz-string-unsafe installed via npm - source repo: + +https://github.com/openstyles/lz-string-unsafe/blob/v0.0.0/lz-string-unsafe.js diff --git a/vendor/lz-string/lz-string-unsafe.js b/vendor/lz-string-unsafe/lz-string-unsafe.js similarity index 100% rename from vendor/lz-string/lz-string-unsafe.js rename to vendor/lz-string-unsafe/lz-string-unsafe.js