Skip to content

Commit a3f189e

Browse files
updates packages and fixes buffer issue
1 parent cb6b55c commit a3f189e

File tree

4 files changed

+75
-92
lines changed

4 files changed

+75
-92
lines changed

Diff for: lib/renderer/renderer-webpack.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Renderer {
7373
max: 500,
7474
maxAge: 1000 * 60 * 60,
7575
};
76-
this.lruCache = LRU(this.cacheOptions);
76+
this.lruCache = new LRU(this.cacheOptions);
7777
this.internalCache = new Utils.Cache();
7878
this.head = options.head || {
7979
scripts: [],

Diff for: lib/utils/stream.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class RenderStreamTransform extends Transform {
3030
*/
3131
_transform(chunk, encoding, callback) {
3232
if (this.flag) {
33-
this.push(new Buffer(this.head));
33+
this.push(Buffer.from(this.head));
3434
this.flag = false;
3535
}
3636
this.push(chunk);
3737
callback();
3838
}
3939
end() {
40-
this.push(new Buffer(this.tail));
40+
this.push(Buffer.from(this.tail));
4141
this.push(null);
4242
}
4343
}

Diff for: package-lock.json

+66-83
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
"browserify": "^16.2.3",
1414
"clean-css": "^4.2.1",
1515
"css-loader": "^2.1.0",
16-
"deepmerge": "^2.1.1",
16+
"deepmerge": "^3.1.0",
1717
"find": "^0.2.9",
1818
"find-node-modules": "^1.0.4",
1919
"js-to-string": "^0.4.5",
20-
"lru-cache": "^4.1.3",
20+
"lru-cache": "^5.1.1",
2121
"object-hash": "^1.3.0",
2222
"require-from-string": "^2.0.2",
2323
"uglify-js": "^3.4.8",
@@ -27,18 +27,18 @@
2727
"vue-template-compiler": "^2.5.22",
2828
"vueify": "^9.4.1",
2929
"webpack": "^4.29.0",
30-
"xss": "^0.3.8"
30+
"xss": "^1.0.3"
3131
},
3232
"devDependencies": {
3333
"@babel/core": "^7.2.2",
3434
"@babel/preset-env": "^7.3.1",
35-
"@types/object-hash": "^1.2.0",
36-
"@types/autoprefixer": "^6.7.3",
35+
"@types/autoprefixer": "^9.1.1",
3736
"@types/clean-css": "^3.4.30",
3837
"@types/lru-cache": "^4.1.1",
3938
"@types/memory-fs": "^0.3.2",
4039
"@types/mkdirp": "^0.5.2",
4140
"@types/node": "^10.9.2",
41+
"@types/object-hash": "^1.2.0",
4242
"@types/require-from-string": "^1.2.0",
4343
"@types/uglify-js": "^3.0.3",
4444
"@types/webpack": "^4.4.23",
@@ -53,7 +53,7 @@
5353
"simple-vue-component-test": "^1.0.0",
5454
"sleep-ms": "^2.0.1",
5555
"tslint": "^5.11.0",
56-
"typescript": "^2.9.2"
56+
"typescript": "^3.2.4"
5757
},
5858
"scripts": {
5959
"release": "npm test && generate-release",

0 commit comments

Comments
 (0)