Add lz-string-unsafe updater

This commit is contained in:
Rob Garrison 2018-07-18 15:18:55 -05:00
parent a5dc57f6cd
commit 41f438b857
6 changed files with 33 additions and 24 deletions

View File

@ -69,7 +69,7 @@ var [chromeLocal, chromeSync] = (() => {
function loadLZStringScript() { function loadLZStringScript() {
return window.LZString ? return window.LZString ?
Promise.resolve(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)); (window.LZString = window.LZString || window.LZStringUnsafe));
} }

View File

@ -11,6 +11,7 @@
"fs-extra": "^7.0.0", "fs-extra": "^7.0.0",
"jsonlint": "^1.6.3", "jsonlint": "^1.6.3",
"less": "^3.7.1", "less": "^3.7.1",
"lz-string-unsafe": "^1.4.4-beta",
"updates": "^3.2.3" "updates": "^3.2.3"
}, },
"scripts": { "scripts": {

View File

@ -43,6 +43,9 @@ const files = {
], ],
'less': [ 'less': [
'dist/less.min.js → less.min.js' 'dist/less.min.js → less.min.js'
],
'lz-string-unsafe': [
'lz-string-unsafe.min.js → lz-string-unsafe.min.js'
] ]
}; };

View File

@ -1,23 +1,23 @@
http://pieroxy.net/blog/pages/lz-string/index.html http://pieroxy.net/blog/pages/lz-string/index.html
https://github.com/pieroxy/lz-string/blob/master/LICENSE.txt https://github.com/pieroxy/lz-string/blob/master/LICENSE.txt
Copyright (c) 2013 Pieroxy <pieroxy@pieroxy.net> Copyright (c) 2013 Pieroxy <pieroxy@pieroxy.net>
This work is free. You can redistribute it and/or modify it This work is free. You can redistribute it and/or modify it
under the terms of the WTFPL, Version 2 under the terms of the WTFPL, Version 2
For more information see LICENSE.txt or http://www.wtfpl.net/ For more information see LICENSE.txt or http://www.wtfpl.net/
For more information, the home page: For more information, the home page:
http://pieroxy.net/blog/pages/lz-string/testing.html http://pieroxy.net/blog/pages/lz-string/testing.html
LZ-based compression algorithm, version 1.4.4 LZ-based compression algorithm, version 1.4.4
Copyright (c) 2013 Pieroxy <pieroxy@pieroxy.net> Copyright (c) 2013 Pieroxy <pieroxy@pieroxy.net>
This work is free. You can redistribute it and/or modify it This work is free. You can redistribute it and/or modify it
under the terms of the WTFPL, Version 2 under the terms of the WTFPL, Version 2
For more information see LICENSE.txt or http://www.wtfpl.net/ For more information see LICENSE.txt or http://www.wtfpl.net/
For more information, the home page: For more information, the home page:
http://pieroxy.net/blog/pages/lz-string/testing.html http://pieroxy.net/blog/pages/lz-string/testing.html
LZ-based compression algorithm, version 1.4.4 LZ-based compression algorithm, version 1.4.4

5
vendor/lz-string-unsafe/README.md vendored Normal file
View File

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