diff --git a/lib/history.js b/lib/history.js index 9c389bfa..b3ec7cbb 100644 --- a/lib/history.js +++ b/lib/history.js @@ -1,7 +1,7 @@ 'use strict' // history // external modules -var LZString = require('lz-string') +var LZString = require('@hackmd/lz-string') // core var config = require('./config') diff --git a/lib/models/note.js b/lib/models/note.js index 70ee6c52..11fee575 100644 --- a/lib/models/note.js +++ b/lib/models/note.js @@ -2,7 +2,7 @@ // external modules var fs = require('fs') var path = require('path') -var LZString = require('lz-string') +var LZString = require('@hackmd/lz-string') var base64url = require('base64url') var md = require('markdown-it')() var metaMarked = require('meta-marked') diff --git a/package.json b/package.json index 7d36f60d..11670195 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@hackmd/idle-js": "^1.0.1", "@hackmd/imgur": "^0.4.1", "@hackmd/js-sequence-diagrams": "^0.0.1-alpha.2", + "@hackmd/lz-string": "1.4.4", "@passport-next/passport-openid": "^1.0.0", "archiver": "^2.1.1", "async": "^2.1.4", @@ -62,7 +63,6 @@ "keymaster": "^1.6.2", "list.js": "^1.5.0", "lodash": "^4.17.11", - "lz-string": "git+https://github.com/hackmdio/lz-string.git", "markdown-it": "^8.2.2", "markdown-it-abbr": "^1.0.4", "markdown-it-container": "^2.0.0", @@ -189,8 +189,8 @@ "mocha": "^5.2.0", "mock-require": "^3.0.3", "optimize-css-assets-webpack-plugin": "^5.0.0", - "sequelize-cli": "^5.4.0", "script-loader": "^0.7.2", + "sequelize-cli": "^5.4.0", "string-loader": "^0.0.1", "style-loader": "^0.21.0", "uglifyjs-webpack-plugin": "^1.2.7", diff --git a/public/js/history.js b/public/js/history.js index b085a19a..cd2c18be 100644 --- a/public/js/history.js +++ b/public/js/history.js @@ -2,7 +2,7 @@ /* global serverurl, moment */ import store from 'store' -import LZString from 'lz-string' +import LZString from '@hackmd/lz-string' import escapeHTML from 'lodash/escape' diff --git a/webpack.common.js b/webpack.common.js index f5f54da0..cb2eadf5 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -200,7 +200,6 @@ module.exports = { index: [ 'babel-polyfill', 'script-loader!jquery-ui-resizable', - 'expose-loader?LZString!lz-string', 'script-loader!codemirror', 'script-loader!inlineAttachment', 'script-loader!jqueryTextcomplete', @@ -249,7 +248,6 @@ module.exports = { 'expose-loader?hljs!highlight.js', 'expose-loader?emojify!emojify.js', 'script-loader!gist-embed', - 'expose-loader?LZString!lz-string', 'script-loader!codemirror', 'script-loader!inlineAttachment', 'script-loader!jqueryTextcomplete', diff --git a/yarn.lock b/yarn.lock index 94955170..34363fd0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -46,6 +46,11 @@ resolved "https://registry.yarnpkg.com/@hackmd/js-sequence-diagrams/-/js-sequence-diagrams-0.0.1-alpha.2.tgz#dec87c02b0483a18be6725c4bb7a53df1c701e36" integrity sha512-UCkaIuvpi5mDyxGXPaJIM8LJLR9X8yAZk0c58Byjx/bVPvMcFOT+Kyft7LjAbO5ct6MFAVNrhs/6jqY2RfRhLA== +"@hackmd/lz-string@1.4.4": + version "1.4.4" + resolved "https://registry.yarnpkg.com/@hackmd/lz-string/-/lz-string-1.4.4.tgz#3f2a9e93c209cb43dc4097e2a8eea3fd87ff45f9" + integrity sha512-KP8U3BGp/qOdoQBfQp1nHvdyT/xi3dBV2qq8YPv1P5rBCR7OF9NpGTdAoOR6n3fONEaMJBdy069cGGbycJolpQ== + "@passport-next/passport-openid@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@passport-next/passport-openid/-/passport-openid-1.0.0.tgz#d3b5e067a9aa1388ed172ab7cc02c39b8634283d"