Commit 0071c42e authored by limingzhe's avatar limingzhe

fix: 闪屏

parent 8f77493b
No preview for this file type
{"ver":"1.1.2","uuid":"810c015d-857f-44be-aa35-fcda8b54edb3","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}} {
\ No newline at end of file "ver": "1.1.2",
"uuid": "810c015d-857f-44be-aa35-fcda8b54edb3",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
...@@ -1055,7 +1055,6 @@ ...@@ -1055,7 +1055,6 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "", "_string": "",
"_N$string": "", "_N$string": "",
"_fontSize": 20, "_fontSize": 20,
...@@ -1496,7 +1495,6 @@ ...@@ -1496,7 +1495,6 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "", "_string": "",
"_N$string": "", "_N$string": "",
"_fontSize": 20, "_fontSize": 20,
...@@ -1937,7 +1935,6 @@ ...@@ -1937,7 +1935,6 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "", "_string": "",
"_N$string": "", "_N$string": "",
"_fontSize": 20, "_fontSize": 20,
...@@ -2452,7 +2449,6 @@ ...@@ -2452,7 +2449,6 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "", "_string": "",
"_N$string": "", "_N$string": "",
"_fontSize": 20, "_fontSize": 20,
...@@ -2702,7 +2698,6 @@ ...@@ -2702,7 +2698,6 @@
], ],
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "", "_string": "",
"_N$string": "", "_N$string": "",
"_fontSize": 20, "_fontSize": 20,
...@@ -2938,7 +2933,7 @@ ...@@ -2938,7 +2933,7 @@
"asset": { "asset": {
"__uuid__": "dfda5cd6-ea60-4dcd-aec2-e7e4bb1b05e6" "__uuid__": "dfda5cd6-ea60-4dcd-aec2-e7e4bb1b05e6"
}, },
"fileId": "c36MJ+olFFB6GMZb75Iq+4", "fileId": "",
"sync": false "sync": false
} }
] ]
\ No newline at end of file
...@@ -220,13 +220,13 @@ cc.Class({ ...@@ -220,13 +220,13 @@ cc.Class({
cc.director.on('GAME_RESOURCE_LOADED', () => { cc.director.on('GAME_RESOURCE_LOADED_sb_karaoke_cocos', () => {
this.lrc.initialize(); this.lrc.initialize();
this.setCurrentMode(this.lrc.PLAY_MODE.MODE1); this.setCurrentMode(this.lrc.PLAY_MODE.MODE1);
this.buttonGroupChange(this.modeNameMap[this.getCurrentMode()]) this.buttonGroupChange(this.modeNameMap[this.getCurrentMode()])
// this.lrc.node.zIndex = 99999 // this.lrc.node.zIndex = 99999
}); });
cc.director.on('GAME_DATA_FETCHED', (data) => { cc.director.on('GAME_DATA_FETCHED_sb_karaoke_cocos', (data) => {
const {width: dw, height: dh} = cc.view.getDesignResolutionSize(); const {width: dw, height: dh} = cc.view.getDesignResolutionSize();
const {width: fw, height: fh} = cc.view.getFrameSize(); const {width: fw, height: fh} = cc.view.getFrameSize();
...@@ -263,6 +263,8 @@ cc.Class({ ...@@ -263,6 +263,8 @@ cc.Class({
const actionbBtnRect = data.hotZoneItemArr.find(item => { const actionbBtnRect = data.hotZoneItemArr.find(item => {
return +item.gIdx === 3; return +item.gIdx === 3;
}); });
if (lrcRect) { if (lrcRect) {
this.setToRectArea(this.lrc.node, lrcRect, true); this.setToRectArea(this.lrc.node, lrcRect, true);
...@@ -272,8 +274,14 @@ cc.Class({ ...@@ -272,8 +274,14 @@ cc.Class({
// this.lrc.node.height = lrcArea.height; // this.lrc.node.height = lrcArea.height;
// this.lrc.node.anchorX = 0; // this.lrc.node.anchorX = 0;
// this.lrc.node.anchorY = 1; // this.lrc.node.anchorY = 1;
this.lrc.node.zIndex = 99999;
if (this.lrc.node) {
this.lrc.node.zIndex = 99999;
} else {
console.log("!this.lrc.node")
}
} else { } else {
this.lrc.node.active = false; this.lrc.node.active = false;
} }
if(modeGroupRect){ if(modeGroupRect){
...@@ -288,7 +296,14 @@ cc.Class({ ...@@ -288,7 +296,14 @@ cc.Class({
b.getComponent(cc.Widget).enable = false; b.getComponent(cc.Widget).enable = false;
b.getComponent(cc.Widget).enable = true; b.getComponent(cc.Widget).enable = true;
}) })
this.btnGroup.zIndex = 99999;
if (this.btnGroup) {
this.btnGroup.zIndex = 99999;
} else {
console.log("!this.btnGroup");
}
} else { } else {
this.btnGroup.active = false; this.btnGroup.active = false;
} }
...@@ -301,7 +316,13 @@ cc.Class({ ...@@ -301,7 +316,13 @@ cc.Class({
// const { width: bw, height: bh } = this.actionButton.node; // const { width: bw, height: bh } = this.actionButton.node;
// this.actionButton.node.width = actionArea.width; // this.actionButton.node.width = actionArea.width;
// this.actionButton.node.height = bh * actionArea.width / bw ; //actionArea.height; // this.actionButton.node.height = bh * actionArea.width / bw ; //actionArea.height;
this.actionButton.node.zIndex = 99999;
if (this.actionButton.node) {
this.actionButton.node.zIndex = 99999;
} else {
console.log("!this.actionButton.node")
}
} else { } else {
this.actionButton.node.active = false; this.actionButton.node.active = false;
} }
...@@ -327,7 +348,12 @@ cc.Class({ ...@@ -327,7 +348,12 @@ cc.Class({
this.lrc.prepare(data); this.lrc.prepare(data);
// this.buttonGroupChange(this.modeNameMap[this.getCurrentMode()]) // this.buttonGroupChange(this.modeNameMap[this.getCurrentMode()])
this.node.zIndex = 9999 if (this.node) {
this.node.zIndex = 9999
} else {
console.log('!this.node');
}
// window.dispatchEvent(new CustomEvent('resize'), true) // window.dispatchEvent(new CustomEvent('resize'), true)
// window.dispatchEvent(new cc.Event.EventCustom('resize', true)) // window.dispatchEvent(new cc.Event.EventCustom('resize', true))
}); });
......
...@@ -146,7 +146,7 @@ cc.Class({ ...@@ -146,7 +146,7 @@ cc.Class({
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
onLoad () { onLoad () {
window['kk'] = this; window['kk'] = this;
cc.director.on('STOP_ALL_AUDIO', () => { cc.director.on('STOP_ALL_AUDIO_sb_karaoke_cocos', () => {
this.pause(); this.pause();
}); });
}, },
...@@ -995,9 +995,17 @@ cc.Class({ ...@@ -995,9 +995,17 @@ cc.Class({
}, },
onDestroy() { onDestroy() {
// audioEngine.uncache(this.audioUrl); // audioEngine.uncache(this.audioUrl);
audioEngine.stop(this._currentAudioId); if (this._currentAudioId) {
this._audioSource.destroy(); audioEngine.stop(this._currentAudioId);
this._audioACSource.destroy(); }
if (this._audioSource) {
console.log('this._audioSource: ', this._audioSource);
this._audioSource.stop();
}
if (this._audioACSource) {
console.log('this._audioACSource: ', this._audioACSource);
this._audioACSource.stop();
}
} }
}); });
...@@ -68,7 +68,7 @@ cc.Class({ ...@@ -68,7 +68,7 @@ cc.Class({
getData((data) => { getData((data) => {
console.log('data:', data); console.log('data:', data);
this.data = data || this.getDefaultData(); this.data = data || this.getDefaultData();
cc.director.emit('GAME_DATA_FETCHED', {...this.data}) cc.director.emit('GAME_DATA_FETCHED_sb_karaoke_cocos', {...this.data})
this.preloadItem() this.preloadItem()
}) })
}, },
...@@ -118,14 +118,14 @@ cc.Class({ ...@@ -118,14 +118,14 @@ cc.Class({
addPreloadImage() { addPreloadImage() {
if (this.data.bgItem) { if (this.data.bgItem) {
this._imageResList.push({ url: this.data.bgItem.url }); this._imageResList.push({ url: this.data.bgItem.url || '' });
} }
if (!this.data.hotZoneItemArr) { if (!this.data.hotZoneItemArr) {
return; return;
} }
this.data.hotZoneItemArr.forEach((item) => { this.data.hotZoneItemArr.forEach((item) => {
if (item.pic_url) { if (item.pic_url) {
this._imageResList.push({ url: item.pic_url }); this._imageResList.push({ url: item.pic_url || '' });
} }
}) })
}, },
...@@ -136,16 +136,16 @@ cc.Class({ ...@@ -136,16 +136,16 @@ cc.Class({
return; return;
} }
this.data.hotZoneItemArr.forEach((item) => { this.data.hotZoneItemArr.forEach((item) => {
this._audioResList.push({url: item.audio_url}); this._audioResList.push({url: item.audio_url || ''});
}); });
if (this.data.lrcData && this.data.lrcData.audio_url) { if (this.data.lrcData && this.data.lrcData.audio_url || '') {
this._audioResList.push({url: this.data.lrcData.audio_url }); this._audioResList.push({url: this.data.lrcData.audio_url || ''});
} }
if (this.data.accompany_audio_url) { if (this.data.accompany_audio_url) {
this._audioResList.push({url: this.data.accompany_audio_url}); this._audioResList.push({url: this.data.accompany_audio_url || ''});
} }
this._audioResList.push({url: this.data.bg_audio_url}); this._audioResList.push({url: this.data.bg_audio_url || ''});
}, },
...@@ -166,7 +166,7 @@ cc.Class({ ...@@ -166,7 +166,7 @@ cc.Class({
loadEnd() { loadEnd() {
this.initView(); this.initView();
cc.director.emit('GAME_RESOURCE_LOADED'); cc.director.emit('GAME_RESOURCE_LOADED_sb_karaoke_cocos');
}, },
initView() { initView() {
...@@ -366,7 +366,7 @@ cc.Class({ ...@@ -366,7 +366,7 @@ cc.Class({
initBottomPart() { initBottomPart() {
const bgBottom = cc.find('Canvas/bgBottom'); const bgBottom = cc.find('Canvas/bgBottom');
const script = bgBottom.getComponent('bgBottom'); const script = bgBottom.getComponent('bgBottom_sb_karaoke_cocos');
const picArr = []; const picArr = [];
this.data.hotZoneItemArr.forEach((item) => { this.data.hotZoneItemArr.forEach((item) => {
if (item.gIdx == '0') { if (item.gIdx == '0') {
...@@ -479,7 +479,7 @@ cc.Class({ ...@@ -479,7 +479,7 @@ cc.Class({
if (animaNode.audioClip) { if (animaNode.audioClip) {
cc.audioEngine.stopAllEffects(); cc.audioEngine.stopAllEffects();
cc.director.emit('STOP_ALL_AUDIO') cc.director.emit('STOP_ALL_AUDIO_sb_karaoke_cocos')
cc.audioEngine.playEffect(animaNode.audioClip, false, 0.8); cc.audioEngine.playEffect(animaNode.audioClip, false, 0.8);
} }
......
...@@ -128,5 +128,8 @@ ...@@ -128,5 +128,8 @@
} }
} }
}, },
"defaultProject": "ng-template-generator" "defaultProject": "ng-template-generator",
} "cli": {
"analytics": false
}
}
\ No newline at end of file
...@@ -16,42 +16,42 @@ const compressing = require("compressing"); ...@@ -16,42 +16,42 @@ const compressing = require("compressing");
//Windows系统上'Windows_NT' //Windows系统上'Windows_NT'
let sysType = os.type(); let sysType = os.type();
Date.prototype.Format = function (fmt) { Date.prototype.Format = function(fmt) {
var o = { var o = {
"M+": this.getMonth() + 1, "M+" : this.getMonth() + 1,
"d+": this.getDate(), "d+" : this.getDate(),
"h+": this.getHours(), "h+" : this.getHours(),
"m+": this.getMinutes(), "m+" : this.getMinutes(),
"s+": this.getSeconds(), "s+" : this.getSeconds(),
"q+": Math.floor((this.getMonth() + 3) / 3), "q+" : Math.floor((this.getMonth() + 3) / 3),
"S": this.getMilliseconds() "S" : this.getMilliseconds()
}; };
if (/(y+)/.test(fmt)) if (/(y+)/.test(fmt))
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o) for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) if (new RegExp("(" + k + ")").test(fmt))
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt; return fmt;
} }
function clean(zipPath) { function clean(zipPath){
if (fs.existsSync(zipPath)) { if(fs.existsSync(zipPath)){
fs.unlinkSync(zipPath); fs.unlinkSync(zipPath);
} }
} }
const runSpawn = async function () { const runSpawn = async function (){
await new Promise(function (resolve, reject) { await new Promise(function(resolve,reject){
let pkg = require("../package.json"); let pkg = require("../package.json");
let ls; let ls;
if (sysType === "Windows_NT") { if(sysType==="Windows_NT"){
//ng build --prod --build--optimizer --base-href /ng-one/ //ng build --prod --build--optimizer --base-href /ng-one/
ls = spawn("cmd.exe", ['/c', 'ng', 'build', '--prod', '--build--optimizer', '--base-href', '/template-base-href/']); ls = spawn("cmd.exe", ['/c', 'ng', 'build', '--prod', '--build--optimizer', '--base-href', '/template-base-href/'] );
} else { }else{
ls = spawn("ng", ['build', '--prod', '--build--optimizer', '--base-href', '/template-base-href/']); ls = spawn("ng", ['build', '--prod', '--build--optimizer', '--base-href', '/template-base-href/'] );
} }
ls.stdout.on('data', (data) => { ls.stdout.on('data', (data) => {
...@@ -66,29 +66,29 @@ const runSpawn = async function () { ...@@ -66,29 +66,29 @@ const runSpawn = async function () {
ls.on('close', (code) => { ls.on('close', (code) => {
console.log(`child process exited with code ${code}`); console.log(`child process exited with code ${code}`);
//要压缩的目录 //要压缩的目录
let zippath = path.resolve(__dirname, "../dist", pkg.name); let zippath = path.resolve(__dirname,"../dist", pkg.name);
//压缩包的存放目录 //压缩包的存放目录
let date = new Date(); let date = new Date();
// let zipname = pkg.name+"_"+date.Format("yyyyMMdd hh-mm-ss"); // let zipname = pkg.name+"_"+date.Format("yyyyMMdd hh-mm-ss");
let zipname = 'form'; let zipname = 'form';
let zipdir = path.resolve(__dirname, "../publish/" + zipname + ".zip"); let zipdir = path.resolve(__dirname,"../publish/"+zipname+".zip");
clean(zipdir); //删除原有的包 clean(zipdir); //删除原有的包
const tarStream = new compressing.zip.Stream(); const tarStream = new compressing.zip.Stream();
fs.readdir(zippath, function (err, files) { fs.readdir(zippath,function(err,files){
if (err) { if(err){
console.log("======文件打开异常======"); console.log("======文件打开异常======");
console.log(err); console.log(err);
reject(); reject();
} }
for (let i = 0; i < files.length; i++) { for(let i=0;i<files.length;i++){
tarStream.addEntry(zippath + "/" + files[i]); tarStream.addEntry(zippath+"/"+files[i]);
} }
let writeStream = fs.createWriteStream(zipdir); let writeStream = fs.createWriteStream(zipdir);
tarStream.pipe(writeStream); tarStream.pipe(writeStream);
writeStream.on('close', () => { writeStream.on('close', () => {
console.log(`模板 ${pkg.name} 打包已完成!`); console.log(`模板 ${pkg.name} 打包已完成!`);
resolve(); resolve();
}) })
}); });
...@@ -104,7 +104,7 @@ const runSpawn = async function () { ...@@ -104,7 +104,7 @@ const runSpawn = async function () {
// } // }
// projects = process.argv[2]; // projects = process.argv[2];
let exec = async function () { let exec = async function(){
//压缩模板 //压缩模板
await runSpawn(); await runSpawn();
} }
......
This diff is collapsed.
{ {
"_from": "bl@^1.0.0", "name": "bl",
"_id": "bl@1.2.3", "version": "1.2.3",
"_inBundle": false, "description": "Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!",
"_integrity": "sha1-Ho3YAULqyA1xWMnczAR/tiDgNec=", "main": "bl.js",
"_location": "/bl", "scripts": {
"_phantomChildren": {}, "test": "node test/test.js | faucet"
"_requested": {
"type": "range",
"registry": true,
"raw": "bl@^1.0.0",
"name": "bl",
"escapedName": "bl",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
}, },
"_requiredBy": [ "repository": {
"/tar-stream" "type": "git",
], "url": "https://github.com/rvagg/bl.git"
"_resolved": "https://registry.npm.taobao.org/bl/download/bl-1.2.3.tgz", },
"_shasum": "1e8dd80142eac80d7158c9dccc047fb620e035e7", "homepage": "https://github.com/rvagg/bl",
"_spec": "bl@^1.0.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/tar-stream",
"authors": [ "authors": [
"Rod Vagg <rod@vagg.org> (https://github.com/rvagg)", "Rod Vagg <rod@vagg.org> (https://github.com/rvagg)",
"Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)", "Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)",
"Jarett Cruger <jcrugzz@gmail.com> (https://github.com/jcrugzz)" "Jarett Cruger <jcrugzz@gmail.com> (https://github.com/jcrugzz)"
], ],
"bugs": {
"url": "https://github.com/rvagg/bl/issues"
},
"bundleDependencies": false,
"dependencies": {
"readable-stream": "^2.3.5",
"safe-buffer": "^5.1.1"
},
"deprecated": false,
"description": "Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!",
"devDependencies": {
"faucet": "0.0.1",
"hash_file": "~0.1.1",
"tape": "~4.9.0"
},
"homepage": "https://github.com/rvagg/bl",
"keywords": [ "keywords": [
"buffer", "buffer",
"buffers", "buffers",
...@@ -50,14 +23,13 @@ ...@@ -50,14 +23,13 @@
"awesomesauce" "awesomesauce"
], ],
"license": "MIT", "license": "MIT",
"main": "bl.js", "dependencies": {
"name": "bl", "readable-stream": "^2.3.5",
"repository": { "safe-buffer": "^5.1.1"
"type": "git",
"url": "git+https://github.com/rvagg/bl.git"
},
"scripts": {
"test": "node test/test.js | faucet"
}, },
"version": "1.2.3" "devDependencies": {
"faucet": "0.0.1",
"hash_file": "~0.1.1",
"tape": "~4.9.0"
}
} }
{ {
"_from": "buffer-alloc-unsafe@^1.1.0", "name": "buffer-alloc-unsafe",
"_id": "buffer-alloc-unsafe@1.1.0", "version": "1.1.0",
"_inBundle": false, "license": "MIT",
"_integrity": "sha1-vX3CauKXLQ7aJTvgYdupkjScGfA=", "repository": "LinusU/buffer-alloc-unsafe",
"_location": "/buffer-alloc-unsafe", "files": [
"_phantomChildren": {}, "index.js"
"_requested": {
"type": "range",
"registry": true,
"raw": "buffer-alloc-unsafe@^1.1.0",
"name": "buffer-alloc-unsafe",
"escapedName": "buffer-alloc-unsafe",
"rawSpec": "^1.1.0",
"saveSpec": null,
"fetchSpec": "^1.1.0"
},
"_requiredBy": [
"/buffer-alloc"
], ],
"_resolved": "https://registry.npm.taobao.org/buffer-alloc-unsafe/download/buffer-alloc-unsafe-1.1.0.tgz", "scripts": {
"_shasum": "bd7dc26ae2972d0eda253be061dba992349c19f0", "test": "standard && node test"
"_spec": "buffer-alloc-unsafe@^1.1.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/buffer-alloc",
"bugs": {
"url": "https://github.com/LinusU/buffer-alloc-unsafe/issues"
}, },
"bundleDependencies": false,
"deprecated": false,
"description": "A [ponyfill](https://ponyfill.com) for `Buffer.allocUnsafe`.",
"devDependencies": { "devDependencies": {
"standard": "^7.1.2" "standard": "^7.1.2"
}, },
"files": [
"index.js"
],
"homepage": "https://github.com/LinusU/buffer-alloc-unsafe#readme",
"keywords": [ "keywords": [
"allocUnsafe", "allocUnsafe",
"allocate", "allocate",
...@@ -43,15 +20,5 @@ ...@@ -43,15 +20,5 @@
"buffer", "buffer",
"ponyfill", "ponyfill",
"unsafe allocate" "unsafe allocate"
], ]
"license": "MIT",
"name": "buffer-alloc-unsafe",
"repository": {
"type": "git",
"url": "git+https://github.com/LinusU/buffer-alloc-unsafe.git"
},
"scripts": {
"test": "standard && node test"
},
"version": "1.1.0"
} }
{ {
"_from": "buffer-alloc@^1.2.0", "name": "buffer-alloc",
"_id": "buffer-alloc@1.2.0", "version": "1.2.0",
"_inBundle": false, "license": "MIT",
"_integrity": "sha1-iQ3ZDZI6hz4I4Q5f1RpX5bfM4Ow=", "repository": "LinusU/buffer-alloc",
"_location": "/buffer-alloc", "files": [
"_phantomChildren": {}, "index.js"
"_requested": {
"type": "range",
"registry": true,
"raw": "buffer-alloc@^1.2.0",
"name": "buffer-alloc",
"escapedName": "buffer-alloc",
"rawSpec": "^1.2.0",
"saveSpec": null,
"fetchSpec": "^1.2.0"
},
"_requiredBy": [
"/tar-stream"
], ],
"_resolved": "https://registry.npm.taobao.org/buffer-alloc/download/buffer-alloc-1.2.0.tgz", "scripts": {
"_shasum": "890dd90d923a873e08e10e5fd51a57e5b7cce0ec", "test": "standard && node test"
"_spec": "buffer-alloc@^1.2.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/tar-stream",
"bugs": {
"url": "https://github.com/LinusU/buffer-alloc/issues"
}, },
"bundleDependencies": false,
"dependencies": { "dependencies": {
"buffer-alloc-unsafe": "^1.1.0", "buffer-alloc-unsafe": "^1.1.0",
"buffer-fill": "^1.0.0" "buffer-fill": "^1.0.0"
}, },
"deprecated": false,
"description": "A [ponyfill](https://ponyfill.com) for `Buffer.alloc`.",
"devDependencies": { "devDependencies": {
"standard": "^7.1.2" "standard": "^7.1.2"
}, },
"files": [
"index.js"
],
"homepage": "https://github.com/LinusU/buffer-alloc#readme",
"keywords": [ "keywords": [
"alloc", "alloc",
"allocate", "allocate",
"buffer alloc", "buffer alloc",
"buffer allocate", "buffer allocate",
"buffer" "buffer"
], ]
"license": "MIT",
"name": "buffer-alloc",
"repository": {
"type": "git",
"url": "git+https://github.com/LinusU/buffer-alloc.git"
},
"scripts": {
"test": "standard && node test"
},
"version": "1.2.0"
} }
{ {
"_from": "buffer-crc32@~0.2.3", "author": "Brian J. Brennan <brianloveswords@gmail.com>",
"_id": "buffer-crc32@0.2.13", "name": "buffer-crc32",
"_inBundle": false, "description": "A pure javascript CRC32 algorithm that plays nice with binary data",
"_integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", "version": "0.2.13",
"_location": "/buffer-crc32", "licenses": [
"_phantomChildren": {}, {
"_requested": { "type": "MIT",
"type": "range", "url": "https://github.com/brianloveswords/buffer-crc32/raw/master/LICENSE"
"registry": true, }
"raw": "buffer-crc32@~0.2.3",
"name": "buffer-crc32",
"escapedName": "buffer-crc32",
"rawSpec": "~0.2.3",
"saveSpec": null,
"fetchSpec": "~0.2.3"
},
"_requiredBy": [
"/yauzl",
"/yazl"
], ],
"_resolved": "https://registry.npm.taobao.org/buffer-crc32/download/buffer-crc32-0.2.13.tgz",
"_shasum": "0d333e3f00eac50aa1454abd30ef8c2a5d9a7242",
"_spec": "buffer-crc32@~0.2.3",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/yauzl",
"author": {
"name": "Brian J. Brennan",
"email": "brianloveswords@gmail.com"
},
"bugs": {
"url": "https://github.com/brianloveswords/buffer-crc32/issues"
},
"bundleDependencies": false,
"contributors": [ "contributors": [
{ {
"name": "Vladimir Kuznetsov" "name": "Vladimir Kuznetsov",
"github": "mistakster"
} }
], ],
"homepage": "https://github.com/brianloveswords/buffer-crc32",
"repository": {
"type": "git",
"url": "git://github.com/brianloveswords/buffer-crc32.git"
},
"main": "index.js",
"scripts": {
"test": "./node_modules/.bin/tap tests/*.test.js"
},
"dependencies": {}, "dependencies": {},
"deprecated": false,
"description": "A pure javascript CRC32 algorithm that plays nice with binary data",
"devDependencies": { "devDependencies": {
"tap": "~0.2.5" "tap": "~0.2.5"
}, },
"optionalDependencies": {},
"engines": { "engines": {
"node": "*" "node": "*"
}, },
"license": "MIT",
"files": [ "files": [
"index.js" "index.js"
], ]
"homepage": "https://github.com/brianloveswords/buffer-crc32",
"license": "MIT",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/brianloveswords/buffer-crc32/raw/master/LICENSE"
}
],
"main": "index.js",
"name": "buffer-crc32",
"optionalDependencies": {},
"repository": {
"type": "git",
"url": "git://github.com/brianloveswords/buffer-crc32.git"
},
"scripts": {
"test": "tap tests/*.test.js"
},
"version": "0.2.13"
} }
{ {
"_from": "buffer-fill@^1.0.0", "name": "buffer-fill",
"_id": "buffer-fill@1.0.0", "version": "1.0.0",
"_inBundle": false, "license": "MIT",
"_integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=", "repository": "LinusU/buffer-fill",
"_location": "/buffer-fill",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "buffer-fill@^1.0.0",
"name": "buffer-fill",
"escapedName": "buffer-fill",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/buffer-alloc"
],
"_resolved": "https://registry.npm.taobao.org/buffer-fill/download/buffer-fill-1.0.0.tgz",
"_shasum": "f8f78b76789888ef39f205cd637f68e702122b2c",
"_spec": "buffer-fill@^1.0.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/buffer-alloc",
"bugs": {
"url": "https://github.com/LinusU/buffer-fill/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "A [ponyfill](https://ponyfill.com) for `Buffer.fill`.",
"devDependencies": {
"buffer-alloc-unsafe": "^1.1.0",
"standard": "^7.1.2"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/LinusU/buffer-fill#readme",
"license": "MIT",
"name": "buffer-fill",
"repository": {
"type": "git",
"url": "git+https://github.com/LinusU/buffer-fill.git"
},
"scripts": { "scripts": {
"test": "standard && node test" "test": "standard && node test"
}, },
"version": "1.0.0" "devDependencies": {
"buffer-alloc-unsafe": "^1.1.0",
"standard": "^7.1.2"
}
} }
{ {
"_from": "compressing@1.5.1", "name": "compressing",
"_id": "compressing@1.5.1", "version": "1.5.1",
"_inBundle": false, "description": "Everything you need for compressing and uncompressing",
"_integrity": "sha1-0DGjMRuMLtZWGoQxZx1ahEVASC0=", "main": "index.js",
"_location": "/compressing", "scripts": {
"_phantomChildren": {}, "ts-test": "tsc -p ./test/fixtures/types/tsconfig.json",
"_requested": { "test": "egg-bin test && npm run ts-test",
"type": "version", "cov": "egg-bin cov",
"registry": true, "lint": "eslint .",
"raw": "compressing@1.5.1", "ci": "npm run lint && npm run ts-test && npm run cov"
"name": "compressing",
"escapedName": "compressing",
"rawSpec": "1.5.1",
"saveSpec": null,
"fetchSpec": "1.5.1"
}, },
"_requiredBy": [ "repository": {
"/" "type": "git",
], "url": "git+https://github.com/node-modules/compressing.git"
"_resolved": "https://registry.npm.taobao.org/compressing/download/compressing-1.5.1.tgz",
"_shasum": "d031a3311b8c2ed6561a8431671d5a844540482d",
"_spec": "compressing@1.5.1",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos",
"author": {
"name": "shaoshuai0102",
"email": "shaoshuai0102@gmail.com"
}, },
"keywords": [
"compress",
"uncompress",
"util",
"tgz",
"gzip",
"tar",
"zip",
"stream"
],
"typings": "index.d.ts",
"files": [
"index.js",
"index.d.ts",
"lib"
],
"author": "shaoshuai0102 <shaoshuai0102@gmail.com>",
"license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/node-modules/compressing/issues" "url": "https://github.com/node-modules/compressing/issues"
}, },
"bundleDependencies": false, "homepage": "https://github.com/node-modules/compressing#readme",
"ci": {
"version": "4, 6, 8, 10, 12",
"license": {
"year": "2017",
"fullname": "node-modules and other contributors"
}
},
"dependencies": { "dependencies": {
"flushwritable": "^1.0.0", "flushwritable": "^1.0.0",
"get-ready": "^1.0.0", "get-ready": "^1.0.0",
...@@ -48,8 +47,6 @@ ...@@ -48,8 +47,6 @@
"yauzl": "^2.7.0", "yauzl": "^2.7.0",
"yazl": "^2.4.2" "yazl": "^2.4.2"
}, },
"deprecated": false,
"description": "Everything you need for compressing and uncompressing",
"devDependencies": { "devDependencies": {
"@types/mocha": "^5.2.5", "@types/mocha": "^5.2.5",
"@types/node": "^10.12.9", "@types/node": "^10.12.9",
...@@ -68,36 +65,11 @@ ...@@ -68,36 +65,11 @@
"engines": { "engines": {
"node": ">= 4.0.0" "node": ">= 4.0.0"
}, },
"files": [ "ci": {
"index.js", "version": "4, 6, 8, 10, 12",
"index.d.ts", "license": {
"lib" "year": "2017",
], "fullname": "node-modules and other contributors"
"homepage": "https://github.com/node-modules/compressing#readme", }
"keywords": [ }
"compress",
"uncompress",
"util",
"tgz",
"gzip",
"tar",
"zip",
"stream"
],
"license": "MIT",
"main": "index.js",
"name": "compressing",
"repository": {
"type": "git",
"url": "git+https://github.com/node-modules/compressing.git"
},
"scripts": {
"ci": "npm run lint && npm run ts-test && npm run cov",
"cov": "egg-bin cov",
"lint": "eslint .",
"test": "egg-bin test && npm run ts-test",
"ts-test": "tsc -p ./test/fixtures/types/tsconfig.json"
},
"typings": "index.d.ts",
"version": "1.5.1"
} }
{ {
"_from": "core-util-is@~1.0.0", "name": "core-util-is",
"_id": "core-util-is@1.0.3", "version": "1.0.3",
"_inBundle": false,
"_integrity": "sha1-pgQtNjTCsn6TKPg3uWX6yDgI24U=",
"_location": "/core-util-is",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "core-util-is@~1.0.0",
"name": "core-util-is",
"escapedName": "core-util-is",
"rawSpec": "~1.0.0",
"saveSpec": null,
"fetchSpec": "~1.0.0"
},
"_requiredBy": [
"/readable-stream"
],
"_resolved": "https://registry.nlark.com/core-util-is/download/core-util-is-1.0.3.tgz",
"_shasum": "a6042d3634c2b27e9328f837b965fac83808db85",
"_spec": "core-util-is@~1.0.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/readable-stream",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
"url": "http://blog.izs.me/"
},
"bugs": {
"url": "https://github.com/isaacs/core-util-is/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "The `util.is*` functions introduced in Node v0.12.", "description": "The `util.is*` functions introduced in Node v0.12.",
"devDependencies": { "main": "lib/util.js",
"tap": "^15.0.9"
},
"files": [ "files": [
"lib" "lib"
], ],
"homepage": "https://github.com/isaacs/core-util-is#readme", "repository": {
"type": "git",
"url": "git://github.com/isaacs/core-util-is"
},
"keywords": [ "keywords": [
"util", "util",
"isBuffer", "isBuffer",
...@@ -51,18 +21,18 @@ ...@@ -51,18 +21,18 @@
"isThat", "isThat",
"polyfill" "polyfill"
], ],
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"license": "MIT", "license": "MIT",
"main": "lib/util.js", "bugs": {
"name": "core-util-is", "url": "https://github.com/isaacs/core-util-is/issues"
"repository": {
"type": "git",
"url": "git://github.com/isaacs/core-util-is.git"
}, },
"scripts": { "scripts": {
"postversion": "npm publish", "test": "tap test.js",
"prepublishOnly": "git push origin --follow-tags",
"preversion": "npm test", "preversion": "npm test",
"test": "tap test.js" "postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags"
}, },
"version": "1.0.3" "devDependencies": {
"tap": "^15.0.9"
}
} }
{ {
"_from": "end-of-stream@^1.1.0", "name": "end-of-stream",
"_id": "end-of-stream@1.4.4", "version": "1.4.4",
"_inBundle": false, "description": "Call a callback when a readable/writable/duplex stream has completed or failed.",
"_integrity": "sha1-WuZKX0UFe682JuwU2gyl5LJDHrA=", "repository": {
"_location": "/end-of-stream", "type": "git",
"_phantomChildren": {}, "url": "git://github.com/mafintosh/end-of-stream.git"
"_requested": {
"type": "range",
"registry": true,
"raw": "end-of-stream@^1.1.0",
"name": "end-of-stream",
"escapedName": "end-of-stream",
"rawSpec": "^1.1.0",
"saveSpec": null,
"fetchSpec": "^1.1.0"
},
"_requiredBy": [
"/pump",
"/tar-stream"
],
"_resolved": "https://registry.npm.taobao.org/end-of-stream/download/end-of-stream-1.4.4.tgz",
"_shasum": "5ae64a5f45057baf3626ec14da0ca5e4b2431eb0",
"_spec": "end-of-stream@^1.1.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/pump",
"author": {
"name": "Mathias Buus",
"email": "mathiasbuus@gmail.com"
},
"bugs": {
"url": "https://github.com/mafintosh/end-of-stream/issues"
}, },
"bundleDependencies": false,
"dependencies": { "dependencies": {
"once": "^1.4.0" "once": "^1.4.0"
}, },
"deprecated": false, "scripts": {
"description": "Call a callback when a readable/writable/duplex stream has completed or failed.", "test": "node test.js"
"devDependencies": {
"tape": "^4.11.0"
}, },
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/mafintosh/end-of-stream",
"keywords": [ "keywords": [
"stream", "stream",
"streams", "streams",
...@@ -52,15 +24,14 @@ ...@@ -52,15 +24,14 @@
"end", "end",
"wait" "wait"
], ],
"license": "MIT", "bugs": {
"main": "index.js", "url": "https://github.com/mafintosh/end-of-stream/issues"
"name": "end-of-stream",
"repository": {
"type": "git",
"url": "git://github.com/mafintosh/end-of-stream.git"
},
"scripts": {
"test": "node test.js"
}, },
"version": "1.4.4" "homepage": "https://github.com/mafintosh/end-of-stream",
"main": "index.js",
"author": "Mathias Buus <mathiasbuus@gmail.com>",
"license": "MIT",
"devDependencies": {
"tape": "^4.11.0"
}
} }
{ {
"_from": "fd-slicer@~1.1.0", "name": "fd-slicer",
"_id": "fd-slicer@1.1.0", "version": "1.1.0",
"_inBundle": false,
"_integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=",
"_location": "/fd-slicer",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "fd-slicer@~1.1.0",
"name": "fd-slicer",
"escapedName": "fd-slicer",
"rawSpec": "~1.1.0",
"saveSpec": null,
"fetchSpec": "~1.1.0"
},
"_requiredBy": [
"/yauzl"
],
"_resolved": "https://registry.npm.taobao.org/fd-slicer/download/fd-slicer-1.1.0.tgz",
"_shasum": "25c7c89cb1f9077f8891bbe61d8f390eae256f1e",
"_spec": "fd-slicer@~1.1.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/yauzl",
"author": {
"name": "Andrew Kelley",
"email": "superjoe30@gmail.com"
},
"bugs": {
"url": "https://github.com/andrewrk/node-fd-slicer/issues"
},
"bundleDependencies": false,
"dependencies": {
"pend": "~1.2.0"
},
"deprecated": false,
"description": "safely create multiple ReadStream or WriteStream objects from the same file descriptor", "description": "safely create multiple ReadStream or WriteStream objects from the same file descriptor",
"main": "index.js",
"scripts": {
"test": "mocha --reporter spec --check-leaks",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/test.js",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --timeout 10000 --reporter spec --check-leaks test/test.js"
},
"author": "Andrew Kelley <superjoe30@gmail.com>",
"license": "MIT",
"devDependencies": { "devDependencies": {
"istanbul": "~0.3.3", "istanbul": "~0.3.3",
"mocha": "~2.0.1", "mocha": "~2.0.1",
"stream-equal": "~0.1.5", "stream-equal": "~0.1.5",
"streamsink": "~1.2.0" "streamsink": "~1.2.0"
}, },
"dependencies": {
"pend": "~1.2.0"
},
"directories": { "directories": {
"test": "test" "test": "test"
}, },
"homepage": "https://github.com/andrewrk/node-fd-slicer#readme",
"keywords": [
"createReadStream",
"createWriteStream"
],
"license": "MIT",
"main": "index.js",
"name": "fd-slicer",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/andrewrk/node-fd-slicer.git" "url": "git://github.com/andrewrk/node-fd-slicer.git"
}, },
"scripts": { "bugs": {
"test": "mocha --reporter spec --check-leaks", "url": "https://github.com/andrewrk/node-fd-slicer/issues"
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/test.js",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --timeout 10000 --reporter spec --check-leaks test/test.js"
}, },
"version": "1.1.0" "keywords": [
"createReadStream",
"createWriteStream"
]
} }
{ {
"_from": "flushwritable@^1.0.0", "name": "flushwritable",
"_id": "flushwritable@1.0.0", "version": "1.0.0",
"_inBundle": false,
"_integrity": "sha1-PjKNj95BKtR+c44751C00pAENJg=",
"_location": "/flushwritable",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "flushwritable@^1.0.0",
"name": "flushwritable",
"escapedName": "flushwritable",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/compressing"
],
"_resolved": "https://registry.npm.taobao.org/flushwritable/download/flushwritable-1.0.0.tgz",
"_shasum": "3e328d8fde412ad47e738e3be750b4d290043498",
"_spec": "flushwritable@^1.0.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/compressing",
"author": {
"name": "Tom Frost",
"email": "tom@frosteddesign.com"
},
"bugs": {
"url": "https://github.com/TomFrost/FlushWritable/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "A Writable stream that flushes before emitting finish", "description": "A Writable stream that flushes before emitting finish",
"devDependencies": { "main": "lib/FlushWritable.js",
"mocha": "^2.0.1",
"should": "^4.3.0"
},
"directories": { "directories": {
"test": "test" "test": "test"
}, },
"homepage": "https://github.com/TomFrost/FlushWritable", "scripts": {
"test": "mocha -R spec test"
},
"repository": {
"type": "git",
"url": "git://github.com/TomFrost/FlushWritable"
},
"keywords": [ "keywords": [
"stream", "stream",
"streams", "streams",
...@@ -48,15 +21,14 @@ ...@@ -48,15 +21,14 @@
"transform", "transform",
"wrapper" "wrapper"
], ],
"author": "Tom Frost <tom@frosteddesign.com>",
"license": "MIT", "license": "MIT",
"main": "lib/FlushWritable.js", "bugs": {
"name": "flushwritable", "url": "https://github.com/TomFrost/FlushWritable/issues"
"repository": {
"type": "git",
"url": "git://github.com/TomFrost/FlushWritable.git"
},
"scripts": {
"test": "mocha -R spec test"
}, },
"version": "1.0.0" "homepage": "https://github.com/TomFrost/FlushWritable",
"devDependencies": {
"mocha": "^2.0.1",
"should": "^4.3.0"
}
} }
{ {
"_from": "fs-constants@^1.0.0", "name": "fs-constants",
"_id": "fs-constants@1.0.0", "version": "1.0.0",
"_inBundle": false, "description": "Require constants across node and the browser",
"_integrity": "sha1-a+Dem+mYzhavivwkSXue6bfM2a0=", "main": "index.js",
"_location": "/fs-constants",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "fs-constants@^1.0.0",
"name": "fs-constants",
"escapedName": "fs-constants",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/tar-stream"
],
"_resolved": "https://registry.npm.taobao.org/fs-constants/download/fs-constants-1.0.0.tgz",
"_shasum": "6be0de9be998ce16af8afc24497b9ee9b7ccd9ad",
"_spec": "fs-constants@^1.0.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/tar-stream",
"author": {
"name": "Mathias Buus",
"url": "@mafintosh"
},
"browser": "browser.js", "browser": "browser.js",
"bugs": {
"url": "https://github.com/mafintosh/fs-constants/issues"
},
"bundleDependencies": false,
"dependencies": {}, "dependencies": {},
"deprecated": false,
"description": "Require constants across node and the browser",
"devDependencies": {}, "devDependencies": {},
"homepage": "https://github.com/mafintosh/fs-constants",
"license": "MIT",
"main": "index.js",
"name": "fs-constants",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/mafintosh/fs-constants.git" "url": "https://github.com/mafintosh/fs-constants.git"
},
"author": "Mathias Buus (@mafintosh)",
"license": "MIT",
"bugs": {
"url": "https://github.com/mafintosh/fs-constants/issues"
}, },
"version": "1.0.0" "homepage": "https://github.com/mafintosh/fs-constants"
} }
{ {
"_from": "get-ready@^1.0.0", "name": "get-ready",
"_id": "get-ready@1.0.0", "version": "1.0.0",
"_inBundle": false, "description": "mixin to add one-time ready event callback handler",
"_integrity": "sha1-+RgX8emt7P6hOlYq38jeiDqzR4I=", "main": "index.js",
"_location": "/get-ready", "files": [
"_phantomChildren": {}, "index.js"
"_requested": {
"type": "range",
"registry": true,
"raw": "get-ready@^1.0.0",
"name": "get-ready",
"escapedName": "get-ready",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/compressing"
], ],
"_resolved": "https://registry.npm.taobao.org/get-ready/download/get-ready-1.0.0.tgz",
"_shasum": "f91817f1e9adecfea13a562adfc8de883ab34782",
"_spec": "get-ready@^1.0.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/compressing",
"author": {
"name": "fengmk2",
"email": "m@fengmk2.com",
"url": "http://fengmk2.com"
},
"bugs": {
"url": "https://github.com/node-modules/ready/issues"
},
"bundleDependencies": false,
"dependencies": {}, "dependencies": {},
"deprecated": false,
"description": "mixin to add one-time ready event callback handler",
"devDependencies": { "devDependencies": {
"eslint": "1", "eslint": "1",
"istanbul": "0", "istanbul": "0",
...@@ -41,26 +14,23 @@ ...@@ -41,26 +14,23 @@
"should": "7", "should": "7",
"thunk-mocha": "0" "thunk-mocha": "0"
}, },
"files": [ "scripts": {
"index.js" "lint": "eslint index.js test",
], "test": "mocha -r thunk-mocha test/*.test.js",
"homepage": "https://github.com/node-modules/ready#readme", "test-cov": "istanbul cover node_modules/.bin/_mocha -- -r thunk-mocha test/*.test.js"
},
"repository": {
"type": "git",
"url": "git://github.com/node-modules/ready"
},
"keywords": [ "keywords": [
"ready", "ready",
"once", "once",
"event" "event"
], ],
"author": "fengmk2 <m@fengmk2.com> (http://fengmk2.com)",
"license": "MIT", "license": "MIT",
"main": "index.js", "bugs": {
"name": "get-ready", "url": "https://github.com/node-modules/ready/issues"
"repository": { }
"type": "git",
"url": "git://github.com/node-modules/ready.git"
},
"scripts": {
"lint": "eslint index.js test",
"test": "mocha -r thunk-mocha test/*.test.js",
"test-cov": "istanbul cover node_modules/.bin/_mocha -- -r thunk-mocha test/*.test.js"
},
"version": "1.0.0"
} }
## 0.5.2 / 2020-06-08 # 0.4.24 / 2018-08-22
* Added `iconv.getEncoder()` and `iconv.getDecoder()` methods to typescript definitions (#229).
* Fixed semver version to 6.1.2 to support Node 8.x (by @tanandara).
* Capped iconv version to 2.x as 3.x has dropped support for older Node versions.
* Switched from instanbul to c8 for code coverage.
## 0.5.1 / 2020-01-18
* Added cp720 encoding (#221, by @kr-deps)
* (minor) Changed Changelog.md formatting to use h2.
## 0.5.0 / 2019-06-26
* Added UTF-32 encoding, both little-endian and big-endian variants (UTF-32LE, UTF32-BE). If endianness
is not provided for decoding, it's deduced automatically from the stream using a heuristic similar to
what we use in UTF-16. (great work in #216 by @kshetline)
* Several minor updates to README (#217 by @oldj, plus some more)
* Added Node versions 10 and 12 to Travis test harness.
## 0.4.24 / 2018-08-22
* Added MIK encoding (#196, by @Ivan-Kalatchev) * Added MIK encoding (#196, by @Ivan-Kalatchev)
## 0.4.23 / 2018-05-07 # 0.4.23 / 2018-05-07
* Fix deprecation warning in Node v10 due to the last usage of `new Buffer` (#185, by @felixbuenemann) * Fix deprecation warning in Node v10 due to the last usage of `new Buffer` (#185, by @felixbuenemann)
* Switched from NodeBuffer to Buffer in typings (#155 by @felixfbecker, #186 by @larssn) * Switched from NodeBuffer to Buffer in typings (#155 by @felixfbecker, #186 by @larssn)
## 0.4.22 / 2018-05-05 # 0.4.22 / 2018-05-05
* Use older semver style for dependencies to be compatible with Node version 0.10 (#182, by @dougwilson) * Use older semver style for dependencies to be compatible with Node version 0.10 (#182, by @dougwilson)
* Fix tests to accomodate fixes in Node v10 (#182, by @dougwilson) * Fix tests to accomodate fixes in Node v10 (#182, by @dougwilson)
## 0.4.21 / 2018-04-06 # 0.4.21 / 2018-04-06
* Fix encoding canonicalization (#156) * Fix encoding canonicalization (#156)
* Fix the paths in the "browser" field in package.json (#174 by @LMLB) * Fix the paths in the "browser" field in package.json (#174 by @LMLB)
* Removed "contributors" section in package.json - see Git history instead. * Removed "contributors" section in package.json - see Git history instead.
## 0.4.20 / 2018-04-06 # 0.4.20 / 2018-04-06
* Updated `new Buffer()` usages with recommended replacements as it's being deprecated in Node v10 (#176, #178 by @ChALkeR) * Updated `new Buffer()` usages with recommended replacements as it's being deprecated in Node v10 (#176, #178 by @ChALkeR)
## 0.4.19 / 2017-09-09 # 0.4.19 / 2017-09-09
* Fixed iso8859-1 codec regression in handling untranslatable characters (#162, caused by #147) * Fixed iso8859-1 codec regression in handling untranslatable characters (#162, caused by #147)
* Re-generated windows1255 codec, because it was updated in iconv project * Re-generated windows1255 codec, because it was updated in iconv project
* Fixed grammar in error message when iconv-lite is loaded with encoding other than utf8 * Fixed grammar in error message when iconv-lite is loaded with encoding other than utf8
## 0.4.18 / 2017-06-13 # 0.4.18 / 2017-06-13
* Fixed CESU-8 regression in Node v8. * Fixed CESU-8 regression in Node v8.
## 0.4.17 / 2017-04-22 # 0.4.17 / 2017-04-22
* Updated typescript definition file to support Angular 2 AoT mode (#153 by @larssn) * Updated typescript definition file to support Angular 2 AoT mode (#153 by @larssn)
## 0.4.16 / 2017-04-22 # 0.4.16 / 2017-04-22
* Added support for React Native (#150) * Added support for React Native (#150)
* Changed iso8859-1 encoding to usine internal 'binary' encoding, as it's the same thing (#147 by @mscdex) * Changed iso8859-1 encoding to usine internal 'binary' encoding, as it's the same thing (#147 by @mscdex)
...@@ -75,12 +53,12 @@ ...@@ -75,12 +53,12 @@
* Added a warning if iconv-lite is loaded not as utf-8 (see #142) * Added a warning if iconv-lite is loaded not as utf-8 (see #142)
## 0.4.15 / 2016-11-21 # 0.4.15 / 2016-11-21
* Fixed typescript type definition (#137) * Fixed typescript type definition (#137)
## 0.4.14 / 2016-11-20 # 0.4.14 / 2016-11-20
* Preparation for v1.0 * Preparation for v1.0
* Added Node v6 and latest Node versions to Travis CI test rig * Added Node v6 and latest Node versions to Travis CI test rig
...@@ -90,12 +68,12 @@ ...@@ -90,12 +68,12 @@
* Add ms prefix to dbcs windows encodings (@rokoroku) * Add ms prefix to dbcs windows encodings (@rokoroku)
## 0.4.13 / 2015-10-01 # 0.4.13 / 2015-10-01
* Fix silly mistake in deprecation notice. * Fix silly mistake in deprecation notice.
## 0.4.12 / 2015-09-26 # 0.4.12 / 2015-09-26
* Node v4 support: * Node v4 support:
* Added CESU-8 decoding (#106) * Added CESU-8 decoding (#106)
...@@ -103,18 +81,18 @@ ...@@ -103,18 +81,18 @@
* Added Travis tests for Node v4 and io.js latest (#105 by @Mithgol) * Added Travis tests for Node v4 and io.js latest (#105 by @Mithgol)
## 0.4.11 / 2015-07-03 # 0.4.11 / 2015-07-03
* Added CESU-8 encoding. * Added CESU-8 encoding.
## 0.4.10 / 2015-05-26 # 0.4.10 / 2015-05-26
* Changed UTF-16 endianness heuristic to take into account any ASCII chars, not * Changed UTF-16 endianness heuristic to take into account any ASCII chars, not
just spaces. This should minimize the importance of "default" endianness. just spaces. This should minimize the importance of "default" endianness.
## 0.4.9 / 2015-05-24 # 0.4.9 / 2015-05-24
* Streamlined BOM handling: strip BOM by default, add BOM when encoding if * Streamlined BOM handling: strip BOM by default, add BOM when encoding if
addBOM: true. Added docs to Readme. addBOM: true. Added docs to Readme.
...@@ -126,12 +104,12 @@ ...@@ -126,12 +104,12 @@
* Use strict mode in all files. * Use strict mode in all files.
## 0.4.8 / 2015-04-14 # 0.4.8 / 2015-04-14
* added alias UNICODE-1-1-UTF-7 for UTF-7 encoding (#94) * added alias UNICODE-1-1-UTF-7 for UTF-7 encoding (#94)
## 0.4.7 / 2015-02-05 # 0.4.7 / 2015-02-05
* stop official support of Node.js v0.8. Should still work, but no guarantees. * stop official support of Node.js v0.8. Should still work, but no guarantees.
reason: Packages needed for testing are hard to get on Travis CI. reason: Packages needed for testing are hard to get on Travis CI.
...@@ -139,40 +117,40 @@ ...@@ -139,40 +117,40 @@
props (#89). props (#89).
## 0.4.6 / 2015-01-12 # 0.4.6 / 2015-01-12
* fix rare aliases of single-byte encodings (thanks @mscdex) * fix rare aliases of single-byte encodings (thanks @mscdex)
* double the timeout for dbcs tests to make them less flaky on travis * double the timeout for dbcs tests to make them less flaky on travis
## 0.4.5 / 2014-11-20 # 0.4.5 / 2014-11-20
* fix windows-31j and x-sjis encoding support (@nleush) * fix windows-31j and x-sjis encoding support (@nleush)
* minor fix: undefined variable reference when internal error happens * minor fix: undefined variable reference when internal error happens
## 0.4.4 / 2014-07-16 # 0.4.4 / 2014-07-16
* added encodings UTF-7 (RFC2152) and UTF-7-IMAP (RFC3501 Section 5.1.3) * added encodings UTF-7 (RFC2152) and UTF-7-IMAP (RFC3501 Section 5.1.3)
* fixed streaming base64 encoding * fixed streaming base64 encoding
## 0.4.3 / 2014-06-14 # 0.4.3 / 2014-06-14
* added encodings UTF-16BE and UTF-16 with BOM * added encodings UTF-16BE and UTF-16 with BOM
## 0.4.2 / 2014-06-12 # 0.4.2 / 2014-06-12
* don't throw exception if `extendNodeEncodings()` is called more than once * don't throw exception if `extendNodeEncodings()` is called more than once
## 0.4.1 / 2014-06-11 # 0.4.1 / 2014-06-11
* codepage 808 added * codepage 808 added
## 0.4.0 / 2014-06-10 # 0.4.0 / 2014-06-10
* code is rewritten from scratch * code is rewritten from scratch
* all widespread encodings are supported * all widespread encodings are supported
......
## Pure JS character encoding conversion ## Pure JS character encoding conversion [![Build Status](https://travis-ci.org/ashtuchkin/iconv-lite.svg?branch=master)](https://travis-ci.org/ashtuchkin/iconv-lite)
* Doesn't need native code compilation. Works on Windows and in sandboxed environments like [Cloud9](http://c9.io). * Doesn't need native code compilation. Works on Windows and in sandboxed environments like [Cloud9](http://c9.io).
* Used in popular projects like [Express.js (body_parser)](https://github.com/expressjs/body-parser), * Used in popular projects like [Express.js (body_parser)](https://github.com/expressjs/body-parser),
...@@ -12,11 +12,7 @@ ...@@ -12,11 +12,7 @@
* React Native is supported (need to explicitly `npm install` two more modules: `buffer` and `stream`). * React Native is supported (need to explicitly `npm install` two more modules: `buffer` and `stream`).
* License: MIT. * License: MIT.
[![NPM Stats](https://nodei.co/npm/iconv-lite.png)](https://npmjs.org/package/iconv-lite/) [![NPM Stats](https://nodei.co/npm/iconv-lite.png?downloads=true&downloadRank=true)](https://npmjs.org/packages/iconv-lite/)
[![Build Status](https://travis-ci.org/ashtuchkin/iconv-lite.svg?branch=master)](https://travis-ci.org/ashtuchkin/iconv-lite)
[![npm](https://img.shields.io/npm/v/iconv-lite.svg)](https://npmjs.org/package/iconv-lite/)
[![npm downloads](https://img.shields.io/npm/dm/iconv-lite.svg)](https://npmjs.org/package/iconv-lite/)
[![npm bundle size](https://img.shields.io/bundlephobia/min/iconv-lite.svg)](https://npmjs.org/package/iconv-lite/)
## Usage ## Usage
### Basic API ### Basic API
...@@ -98,7 +94,7 @@ iconv.undoExtendNodeEncodings(); ...@@ -98,7 +94,7 @@ iconv.undoExtendNodeEncodings();
## Supported encodings ## Supported encodings
* All node.js native encodings: utf8, ucs2 / utf16-le, ascii, binary, base64, hex. * All node.js native encodings: utf8, ucs2 / utf16-le, ascii, binary, base64, hex.
* Additional unicode encodings: utf16, utf16-be, utf-7, utf-7-imap, utf32, utf32-le, and utf32-be. * Additional unicode encodings: utf16, utf16-be, utf-7, utf-7-imap.
* All widespread singlebyte encodings: Windows 125x family, ISO-8859 family, * All widespread singlebyte encodings: Windows 125x family, ISO-8859 family,
IBM/DOS codepages, Macintosh family, KOI8 family, all others supported by iconv library. IBM/DOS codepages, Macintosh family, KOI8 family, all others supported by iconv library.
Aliases like 'latin1', 'us-ascii' also supported. Aliases like 'latin1', 'us-ascii' also supported.
...@@ -137,12 +133,6 @@ smart about endianness in the following ways: ...@@ -137,12 +133,6 @@ smart about endianness in the following ways:
overridden with `defaultEncoding: 'utf-16be'` option. Strips BOM unless `stripBOM: false`. overridden with `defaultEncoding: 'utf-16be'` option. Strips BOM unless `stripBOM: false`.
* Encoding: uses UTF-16LE and writes BOM by default. Use `addBOM: false` to override. * Encoding: uses UTF-16LE and writes BOM by default. Use `addBOM: false` to override.
## UTF-32 Encodings
This library supports UTF-32LE, UTF-32BE and UTF-32 encodings. Like the UTF-16 encoding above, UTF-32 defaults to UTF-32LE, but uses BOM and 'spaces heuristics' to determine input endianness.
* The default of UTF-32LE can be overridden with the `defaultEncoding: 'utf-32be'` option. Strips BOM unless `stripBOM: false`.
* Encoding: uses UTF-32LE and writes BOM by default. Use `addBOM: false` to override. (`defaultEncoding: 'utf-32be'` can also be used here to change encoding.)
## Other notes ## Other notes
When decoding, be sure to supply a Buffer to decode() method, otherwise [bad things usually happen](https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding). When decoding, be sure to supply a Buffer to decode() method, otherwise [bad things usually happen](https://github.com/ashtuchkin/iconv-lite/wiki/Use-Buffers-when-decoding).
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
// We support Browserify by skipping automatic module discovery and requiring modules directly. // We support Browserify by skipping automatic module discovery and requiring modules directly.
var modules = [ var modules = [
require("./internal"), require("./internal"),
require("./utf32"),
require("./utf16"), require("./utf16"),
require("./utf7"), require("./utf7"),
require("./sbcs-codec"), require("./sbcs-codec"),
...@@ -14,7 +13,7 @@ var modules = [ ...@@ -14,7 +13,7 @@ var modules = [
require("./dbcs-data"), require("./dbcs-data"),
]; ];
// Put all encoding/alias/codec definitions to single object and export it. // Put all encoding/alias/codec definitions to single object and export it.
for (var i = 0; i < modules.length; i++) { for (var i = 0; i < modules.length; i++) {
var module = modules[i]; var module = modules[i];
for (var enc in module) for (var enc in module)
......
...@@ -22,11 +22,6 @@ module.exports = { ...@@ -22,11 +22,6 @@ module.exports = {
"chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ " "chars": "АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "
}, },
"cp720": {
"type": "_sbcs",
"chars": "\x80\x81éâ\x84à\x86çêëèïî\x8d\x8e\x8f\x90\u0651\u0652ô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡\u064b\u064c\u064d\u064e\u064f\u0650≈°∙·√ⁿ²■\u00a0"
},
// Aliases of generated encodings. // Aliases of generated encodings.
"ascii8bit": "ascii", "ascii8bit": "ascii",
"usascii": "ascii", "usascii": "ascii",
......
'use strict';
var Buffer = require('safer-buffer').Buffer;
// == UTF32-LE/BE codec. ==========================================================
exports._utf32 = Utf32Codec;
function Utf32Codec(codecOptions, iconv) {
this.iconv = iconv;
this.bomAware = true;
this.isLE = codecOptions.isLE;
}
exports.utf32le = { type: '_utf32', isLE: true };
exports.utf32be = { type: '_utf32', isLE: false };
// Aliases
exports.ucs4le = 'utf32le';
exports.ucs4be = 'utf32be';
Utf32Codec.prototype.encoder = Utf32Encoder;
Utf32Codec.prototype.decoder = Utf32Decoder;
// -- Encoding
function Utf32Encoder(options, codec) {
this.isLE = codec.isLE;
this.highSurrogate = 0;
}
Utf32Encoder.prototype.write = function(str) {
var src = Buffer.from(str, 'ucs2');
var dst = Buffer.alloc(src.length * 2);
var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE;
var offset = 0;
for (var i = 0; i < src.length; i += 2) {
var code = src.readUInt16LE(i);
var isHighSurrogate = (0xD800 <= code && code < 0xDC00);
var isLowSurrogate = (0xDC00 <= code && code < 0xE000);
if (this.highSurrogate) {
if (isHighSurrogate || !isLowSurrogate) {
// There shouldn't be two high surrogates in a row, nor a high surrogate which isn't followed by a low
// surrogate. If this happens, keep the pending high surrogate as a stand-alone semi-invalid character
// (technically wrong, but expected by some applications, like Windows file names).
write32.call(dst, this.highSurrogate, offset);
offset += 4;
}
else {
// Create 32-bit value from high and low surrogates;
var codepoint = (((this.highSurrogate - 0xD800) << 10) | (code - 0xDC00)) + 0x10000;
write32.call(dst, codepoint, offset);
offset += 4;
this.highSurrogate = 0;
continue;
}
}
if (isHighSurrogate)
this.highSurrogate = code;
else {
// Even if the current character is a low surrogate, with no previous high surrogate, we'll
// encode it as a semi-invalid stand-alone character for the same reasons expressed above for
// unpaired high surrogates.
write32.call(dst, code, offset);
offset += 4;
this.highSurrogate = 0;
}
}
if (offset < dst.length)
dst = dst.slice(0, offset);
return dst;
};
Utf32Encoder.prototype.end = function() {
// Treat any leftover high surrogate as a semi-valid independent character.
if (!this.highSurrogate)
return;
var buf = Buffer.alloc(4);
if (this.isLE)
buf.writeUInt32LE(this.highSurrogate, 0);
else
buf.writeUInt32BE(this.highSurrogate, 0);
this.highSurrogate = 0;
return buf;
};
// -- Decoding
function Utf32Decoder(options, codec) {
this.isLE = codec.isLE;
this.badChar = codec.iconv.defaultCharUnicode.charCodeAt(0);
this.overflow = null;
}
Utf32Decoder.prototype.write = function(src) {
if (src.length === 0)
return '';
if (this.overflow)
src = Buffer.concat([this.overflow, src]);
var goodLength = src.length - src.length % 4;
if (src.length !== goodLength) {
this.overflow = src.slice(goodLength);
src = src.slice(0, goodLength);
}
else
this.overflow = null;
var dst = Buffer.alloc(goodLength);
var offset = 0;
for (var i = 0; i < goodLength; i += 4) {
var codepoint = this.isLE ? src.readUInt32LE(i) : src.readUInt32BE(i);
if (codepoint < 0x10000) {
// Simple 16-bit character
dst.writeUInt16LE(codepoint, offset);
offset += 2;
}
else {
if (codepoint > 0x10FFFF) {
// Not a valid Unicode codepoint
dst.writeUInt16LE(this.badChar, offset);
offset += 2;
}
else {
// Create high and low surrogates.
codepoint -= 0x10000;
var high = 0xD800 | (codepoint >> 10);
var low = 0xDC00 + (codepoint & 0x3FF);
dst.writeUInt16LE(high, offset);
offset += 2;
dst.writeUInt16LE(low, offset);
offset += 2;
}
}
}
return dst.slice(0, offset).toString('ucs2');
};
Utf32Decoder.prototype.end = function() {
this.overflow = null;
};
// == UTF-32 Auto codec =============================================================
// Decoder chooses automatically from UTF-32LE and UTF-32BE using BOM and space-based heuristic.
// Defaults to UTF-32LE. http://en.wikipedia.org/wiki/UTF-32
// Encoder/decoder default can be changed: iconv.decode(buf, 'utf32', {defaultEncoding: 'utf-32be'});
// Encoder prepends BOM (which can be overridden with (addBOM: false}).
exports.utf32 = Utf32AutoCodec;
exports.ucs4 = Utf32AutoCodec;
function Utf32AutoCodec(options, iconv) {
this.iconv = iconv;
}
Utf32AutoCodec.prototype.encoder = Utf32AutoEncoder;
Utf32AutoCodec.prototype.decoder = Utf32AutoDecoder;
// -- Encoding
function Utf32AutoEncoder(options, codec) {
options = options || {};
if (options.addBOM === undefined)
options.addBOM = true;
this.encoder = codec.iconv.getEncoder(options.defaultEncoding || 'utf-32le', options);
}
Utf32AutoEncoder.prototype.write = function(str) {
return this.encoder.write(str);
};
Utf32AutoEncoder.prototype.end = function() {
return this.encoder.end();
};
// -- Decoding
function Utf32AutoDecoder(options, codec) {
this.decoder = null;
this.initialBytes = [];
this.initialBytesLen = 0;
this.options = options || {};
this.iconv = codec.iconv;
}
Utf32AutoDecoder.prototype.write = function(buf) {
if (!this.decoder) {
// Codec is not chosen yet. Accumulate initial bytes.
this.initialBytes.push(buf);
this.initialBytesLen += buf.length;
if (this.initialBytesLen < 32) // We need more bytes to use space heuristic (see below)
return '';
// We have enough bytes -> detect endianness.
var buf2 = Buffer.concat(this.initialBytes),
encoding = detectEncoding(buf2, this.options.defaultEncoding);
this.decoder = this.iconv.getDecoder(encoding, this.options);
this.initialBytes.length = this.initialBytesLen = 0;
}
return this.decoder.write(buf);
};
Utf32AutoDecoder.prototype.end = function() {
if (!this.decoder) {
var buf = Buffer.concat(this.initialBytes),
encoding = detectEncoding(buf, this.options.defaultEncoding);
this.decoder = this.iconv.getDecoder(encoding, this.options);
var res = this.decoder.write(buf),
trail = this.decoder.end();
return trail ? (res + trail) : res;
}
return this.decoder.end();
};
function detectEncoding(buf, defaultEncoding) {
var enc = defaultEncoding || 'utf-32le';
if (buf.length >= 4) {
// Check BOM.
if (buf.readUInt32BE(0) === 0xFEFF) // UTF-32LE BOM
enc = 'utf-32be';
else if (buf.readUInt32LE(0) === 0xFEFF) // UTF-32LE BOM
enc = 'utf-32le';
else {
// No BOM found. Try to deduce encoding from initial content.
// Using the wrong endian-ism for UTF-32 will very often result in codepoints that are beyond
// the valid Unicode limit of 0x10FFFF. That will be used as the primary determinant.
//
// Further, we can suppose the content is mostly plain ASCII chars (U+00**).
// So, we count ASCII as if it was LE or BE, and decide from that.
var invalidLE = 0, invalidBE = 0;
var asciiCharsLE = 0, asciiCharsBE = 0, // Counts of chars in both positions
_len = Math.min(buf.length - (buf.length % 4), 128); // Len is always even.
for (var i = 0; i < _len; i += 4) {
var b0 = buf[i], b1 = buf[i + 1], b2 = buf[i + 2], b3 = buf[i + 3];
if (b0 !== 0 || b1 > 0x10) ++invalidBE;
if (b3 !== 0 || b2 > 0x10) ++invalidLE;
if (b0 === 0 && b1 === 0 && b2 === 0 && b3 !== 0) asciiCharsBE++;
if (b0 !== 0 && b1 === 0 && b2 === 0 && b3 === 0) asciiCharsLE++;
}
if (invalidBE < invalidLE)
enc = 'utf-32be';
else if (invalidLE < invalidBE)
enc = 'utf-32le';
if (asciiCharsBE > asciiCharsLE)
enc = 'utf-32be';
else if (asciiCharsBE < asciiCharsLE)
enc = 'utf-32le';
}
}
return enc;
}
...@@ -6,22 +6,15 @@ ...@@ -6,22 +6,15 @@
*--------------------------------------------------------------------------------------------*/ *--------------------------------------------------------------------------------------------*/
declare module 'iconv-lite' { declare module 'iconv-lite' {
// Basic API
export function decode(buffer: Buffer, encoding: string, options?: Options): string; export function decode(buffer: Buffer, encoding: string, options?: Options): string;
export function encode(content: string, encoding: string, options?: Options): Buffer; export function encode(content: string, encoding: string, options?: Options): Buffer;
export function encodingExists(encoding: string): boolean; export function encodingExists(encoding: string): boolean;
// Stream API
export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
// Low-level stream APIs
export function getEncoder(encoding: string, options?: Options): EncoderStream;
export function getDecoder(encoding: string, options?: Options): DecoderStream;
} }
export interface Options { export interface Options {
...@@ -29,13 +22,3 @@ export interface Options { ...@@ -29,13 +22,3 @@ export interface Options {
addBOM?: boolean; addBOM?: boolean;
defaultEncoding?: string; defaultEncoding?: string;
} }
export interface EncoderStream {
write(str: string): Buffer;
end(): Buffer | undefined;
}
export interface DecoderStream {
write(buf: Buffer): string;
end(): string | undefined;
}
{ {
"_from": "iconv-lite@^0.5.0",
"_id": "iconv-lite@0.5.2",
"_inBundle": false,
"_integrity": "sha1-r21ijcz7RjtzZNl/cV5LdLjIwrg=",
"_location": "/iconv-lite",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "iconv-lite@^0.5.0",
"name": "iconv-lite", "name": "iconv-lite",
"escapedName": "iconv-lite", "description": "Convert character encodings in pure javascript.",
"rawSpec": "^0.5.0", "version": "0.4.24",
"saveSpec": null, "license": "MIT",
"fetchSpec": "^0.5.0" "keywords": [
}, "iconv",
"_requiredBy": [ "convert",
"/compressing" "charset",
], "icu"
"_resolved": "https://registry.nlark.com/iconv-lite/download/iconv-lite-0.5.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Ficonv-lite%2Fdownload%2Ficonv-lite-0.5.2.tgz", ],
"_shasum": "af6d628dccfb463b7364d97f715e4b74b8c8c2b8", "author": "Alexander Shtuchkin <ashtuchkin@gmail.com>",
"_spec": "iconv-lite@^0.5.0", "main": "./lib/index.js",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/compressing", "typings": "./lib/index.d.ts",
"author": { "homepage": "https://github.com/ashtuchkin/iconv-lite",
"name": "Alexander Shtuchkin", "bugs": "https://github.com/ashtuchkin/iconv-lite/issues",
"email": "ashtuchkin@gmail.com" "repository": {
}, "type": "git",
"browser": { "url": "git://github.com/ashtuchkin/iconv-lite.git"
"./lib/extend-node": false, },
"./lib/streams": false "engines": {
}, "node": ">=0.10.0"
"bugs": { },
"url": "https://github.com/ashtuchkin/iconv-lite/issues" "scripts": {
}, "coverage": "istanbul cover _mocha -- --grep .",
"bundleDependencies": false, "coverage-open": "open coverage/lcov-report/index.html",
"dependencies": { "test": "mocha --reporter spec --grep ."
"safer-buffer": ">= 2.1.2 < 3" },
}, "browser": {
"deprecated": false, "./lib/extend-node": false,
"description": "Convert character encodings in pure javascript.", "./lib/streams": false
"devDependencies": { },
"async": "*", "devDependencies": {
"c8": "*", "mocha": "^3.1.0",
"errto": "*", "request": "~2.87.0",
"iconv": "2", "unorm": "*",
"mocha": "^3.1.0", "errto": "*",
"request": "~2.87.0", "async": "*",
"semver": "6.1.2", "istanbul": "*",
"unorm": "*" "semver": "*",
}, "iconv": "*"
"engines": { },
"node": ">=0.10.0" "dependencies": {
}, "safer-buffer": ">= 2.1.2 < 3"
"homepage": "https://github.com/ashtuchkin/iconv-lite", }
"keywords": [
"iconv",
"convert",
"charset",
"icu"
],
"license": "MIT",
"main": "./lib/index.js",
"name": "iconv-lite",
"repository": {
"type": "git",
"url": "git://github.com/ashtuchkin/iconv-lite.git"
},
"scripts": {
"coverage": "c8 _mocha --grep .",
"test": "mocha --reporter spec --grep ."
},
"typings": "./lib/index.d.ts",
"version": "0.5.2"
} }
{ {
"_from": "inherits@~2.0.3", "name": "inherits",
"_id": "inherits@2.0.4",
"_inBundle": false,
"_integrity": "sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=",
"_location": "/inherits",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "inherits@~2.0.3",
"name": "inherits",
"escapedName": "inherits",
"rawSpec": "~2.0.3",
"saveSpec": null,
"fetchSpec": "~2.0.3"
},
"_requiredBy": [
"/readable-stream"
],
"_resolved": "https://registry.npm.taobao.org/inherits/download/inherits-2.0.4.tgz",
"_shasum": "0fa2c64f932917c3433a0ded55363aae37416b7c",
"_spec": "inherits@~2.0.3",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/readable-stream",
"browser": "./inherits_browser.js",
"bugs": {
"url": "https://github.com/isaacs/inherits/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
"devDependencies": { "version": "2.0.4",
"tap": "^14.2.4"
},
"files": [
"inherits.js",
"inherits_browser.js"
],
"homepage": "https://github.com/isaacs/inherits#readme",
"keywords": [ "keywords": [
"inheritance", "inheritance",
"class", "class",
...@@ -47,15 +12,18 @@ ...@@ -47,15 +12,18 @@
"browser", "browser",
"browserify" "browserify"
], ],
"license": "ISC",
"main": "./inherits.js", "main": "./inherits.js",
"name": "inherits", "browser": "./inherits_browser.js",
"repository": { "repository": "git://github.com/isaacs/inherits",
"type": "git", "license": "ISC",
"url": "git://github.com/isaacs/inherits.git"
},
"scripts": { "scripts": {
"test": "tap" "test": "tap"
}, },
"version": "2.0.4" "devDependencies": {
"tap": "^14.2.4"
},
"files": [
"inherits.js",
"inherits_browser.js"
]
} }
{ {
"_from": "isarray@~1.0.0", "name": "isarray",
"_id": "isarray@1.0.0", "description": "Array#isArray for older browsers",
"_inBundle": false, "version": "1.0.0",
"_integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "repository": {
"_location": "/isarray", "type": "git",
"_phantomChildren": {}, "url": "git://github.com/juliangruber/isarray.git"
"_requested": {
"type": "range",
"registry": true,
"raw": "isarray@~1.0.0",
"name": "isarray",
"escapedName": "isarray",
"rawSpec": "~1.0.0",
"saveSpec": null,
"fetchSpec": "~1.0.0"
},
"_requiredBy": [
"/readable-stream"
],
"_resolved": "https://registry.npm.taobao.org/isarray/download/isarray-1.0.0.tgz",
"_shasum": "bb935d48582cba168c06834957a54a3e07124f11",
"_spec": "isarray@~1.0.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/readable-stream",
"author": {
"name": "Julian Gruber",
"email": "mail@juliangruber.com",
"url": "http://juliangruber.com"
},
"bugs": {
"url": "https://github.com/juliangruber/isarray/issues"
}, },
"bundleDependencies": false, "homepage": "https://github.com/juliangruber/isarray",
"main": "index.js",
"dependencies": {}, "dependencies": {},
"deprecated": false,
"description": "Array#isArray for older browsers",
"devDependencies": { "devDependencies": {
"tape": "~2.13.4" "tape": "~2.13.4"
}, },
"homepage": "https://github.com/juliangruber/isarray",
"keywords": [ "keywords": [
"browser", "browser",
"isarray", "isarray",
"array" "array"
], ],
"license": "MIT", "author": {
"main": "index.js", "name": "Julian Gruber",
"name": "isarray", "email": "mail@juliangruber.com",
"repository": { "url": "http://juliangruber.com"
"type": "git",
"url": "git://github.com/juliangruber/isarray.git"
},
"scripts": {
"test": "tape test.js"
}, },
"license": "MIT",
"testling": { "testling": {
"files": "test.js", "files": "test.js",
"browsers": [ "browsers": [
...@@ -69,5 +39,7 @@ ...@@ -69,5 +39,7 @@
"android-browser/4.2..latest" "android-browser/4.2..latest"
] ]
}, },
"version": "1.0.0" "scripts": {
"test": "tape test.js"
}
} }
{ {
"_from": "minimist@^1.2.5", "name": "minimist",
"_id": "minimist@1.2.5", "version": "1.2.5",
"_inBundle": false,
"_integrity": "sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI=",
"_location": "/minimist",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "minimist@^1.2.5",
"name": "minimist",
"escapedName": "minimist",
"rawSpec": "^1.2.5",
"saveSpec": null,
"fetchSpec": "^1.2.5"
},
"_requiredBy": [
"/mkdirp"
],
"_resolved": "https://registry.npm.taobao.org/minimist/download/minimist-1.2.5.tgz?cache=0&sync_timestamp=1584051509720&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fminimist%2Fdownload%2Fminimist-1.2.5.tgz",
"_shasum": "67d66014b66a6a8aaa0c083c5fd58df4e4e97602",
"_spec": "minimist@^1.2.5",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/mkdirp",
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"bugs": {
"url": "https://github.com/substack/minimist/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "parse argument options", "description": "parse argument options",
"main": "index.js",
"devDependencies": { "devDependencies": {
"covert": "^1.0.0", "covert": "^1.0.0",
"tap": "~0.4.0", "tap": "~0.4.0",
"tape": "^3.5.0" "tape": "^3.5.0"
}, },
"homepage": "https://github.com/substack/minimist",
"keywords": [
"argv",
"getopt",
"parser",
"optimist"
],
"license": "MIT",
"main": "index.js",
"name": "minimist",
"repository": {
"type": "git",
"url": "git://github.com/substack/minimist.git"
},
"scripts": { "scripts": {
"coverage": "covert test/*.js", "test": "tap test/*.js",
"test": "tap test/*.js" "coverage": "covert test/*.js"
}, },
"testling": { "testling": {
"files": "test/*.js", "files": "test/*.js",
...@@ -69,5 +25,21 @@ ...@@ -69,5 +25,21 @@
"opera/12" "opera/12"
] ]
}, },
"version": "1.2.5" "repository": {
"type": "git",
"url": "git://github.com/substack/minimist.git"
},
"homepage": "https://github.com/substack/minimist",
"keywords": [
"argv",
"getopt",
"parser",
"optimist"
],
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"license": "MIT"
} }
{ {
"_from": "mkdirp@^0.5.1", "name": "mkdirp",
"_id": "mkdirp@0.5.5", "description": "Recursively mkdir, like `mkdir -p`",
"_inBundle": false, "version": "0.5.5",
"_integrity": "sha1-2Rzv1i0UNsoPQWIOJRKI1CAJne8=", "publishConfig": {
"_location": "/mkdirp", "tag": "legacy"
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "mkdirp@^0.5.1",
"name": "mkdirp",
"escapedName": "mkdirp",
"rawSpec": "^0.5.1",
"saveSpec": null,
"fetchSpec": "^0.5.1"
}, },
"_requiredBy": [ "author": "James Halliday <mail@substack.net> (http://substack.net)",
"/compressing" "main": "index.js",
"keywords": [
"mkdir",
"directory"
], ],
"_resolved": "https://registry.npmmirror.com/mkdirp/download/mkdirp-0.5.5.tgz", "repository": {
"_shasum": "d91cefd62d1436ca0f41620e251288d420099def", "type": "git",
"_spec": "mkdirp@^0.5.1", "url": "https://github.com/substack/node-mkdirp.git"
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/compressing",
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"bin": {
"mkdirp": "bin/cmd.js"
}, },
"bugs": { "scripts": {
"url": "https://github.com/substack/node-mkdirp/issues" "test": "tap test/*.js"
}, },
"bundleDependencies": false,
"dependencies": { "dependencies": {
"minimist": "^1.2.5" "minimist": "^1.2.5"
}, },
"deprecated": false,
"description": "Recursively mkdir, like `mkdir -p`",
"devDependencies": { "devDependencies": {
"mock-fs": "^3.7.0", "mock-fs": "^3.7.0",
"tap": "^5.4.2" "tap": "^5.4.2"
}, },
"bin": "bin/cmd.js",
"license": "MIT",
"files": [ "files": [
"bin", "bin",
"index.js" "index.js"
], ]
"homepage": "https://github.com/substack/node-mkdirp#readme",
"keywords": [
"mkdir",
"directory"
],
"license": "MIT",
"main": "index.js",
"name": "mkdirp",
"publishConfig": {
"tag": "legacy"
},
"repository": {
"type": "git",
"url": "git+https://github.com/substack/node-mkdirp.git"
},
"scripts": {
"test": "tap test/*.js"
},
"version": "0.5.5"
} }
{ {
"_from": "once@^1.3.1", "name": "once",
"_id": "once@1.4.0", "version": "1.4.0",
"_inBundle": false, "description": "Run a function exactly one time",
"_integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "main": "once.js",
"_location": "/once", "directories": {
"_phantomChildren": {}, "test": "test"
"_requested": {
"type": "range",
"registry": true,
"raw": "once@^1.3.1",
"name": "once",
"escapedName": "once",
"rawSpec": "^1.3.1",
"saveSpec": null,
"fetchSpec": "^1.3.1"
},
"_requiredBy": [
"/end-of-stream",
"/pump"
],
"_resolved": "https://registry.npm.taobao.org/once/download/once-1.4.0.tgz",
"_shasum": "583b1aa775961d4b113ac17d9c50baef9dd76bd1",
"_spec": "once@^1.3.1",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/pump",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
"url": "http://blog.izs.me/"
},
"bugs": {
"url": "https://github.com/isaacs/once/issues"
}, },
"bundleDependencies": false,
"dependencies": { "dependencies": {
"wrappy": "1" "wrappy": "1"
}, },
"deprecated": false,
"description": "Run a function exactly one time",
"devDependencies": { "devDependencies": {
"tap": "^7.0.1" "tap": "^7.0.1"
}, },
"directories": { "scripts": {
"test": "test" "test": "tap test/*.js"
}, },
"files": [ "files": [
"once.js" "once.js"
], ],
"homepage": "https://github.com/isaacs/once#readme", "repository": {
"type": "git",
"url": "git://github.com/isaacs/once"
},
"keywords": [ "keywords": [
"once", "once",
"function", "function",
"one", "one",
"single" "single"
], ],
"license": "ISC", "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"main": "once.js", "license": "ISC"
"name": "once",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/once.git"
},
"scripts": {
"test": "tap test/*.js"
},
"version": "1.4.0"
} }
{ {
"_from": "pend@~1.2.0", "name": "pend",
"_id": "pend@1.2.0", "version": "1.2.0",
"_inBundle": false,
"_integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=",
"_location": "/pend",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "pend@~1.2.0",
"name": "pend",
"escapedName": "pend",
"rawSpec": "~1.2.0",
"saveSpec": null,
"fetchSpec": "~1.2.0"
},
"_requiredBy": [
"/fd-slicer"
],
"_resolved": "https://registry.npm.taobao.org/pend/download/pend-1.2.0.tgz",
"_shasum": "7a57eb550a6783f9115331fcf4663d5c8e007a50",
"_spec": "pend@~1.2.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/fd-slicer",
"author": {
"name": "Andrew Kelley",
"email": "superjoe30@gmail.com"
},
"bugs": {
"url": "https://github.com/andrewrk/node-pend/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "dead-simple optimistic async helper", "description": "dead-simple optimistic async helper",
"homepage": "https://github.com/andrewrk/node-pend#readme",
"license": "MIT",
"main": "index.js", "main": "index.js",
"name": "pend", "scripts": {
"test": "node test.js"
},
"author": "Andrew Kelley <superjoe30@gmail.com>",
"license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/andrewrk/node-pend.git" "url": "git://github.com/andrewrk/node-pend.git"
}, },
"scripts": { "bugs": {
"test": "node test.js" "url": "https://github.com/andrewrk/node-pend/issues"
}, }
"version": "1.2.0"
} }
{ {
"_from": "process-nextick-args@~2.0.0", "name": "process-nextick-args",
"_id": "process-nextick-args@2.0.1", "version": "2.0.1",
"_inBundle": false,
"_integrity": "sha1-eCDZsWEgzFXKmud5JoCufbptf+I=",
"_location": "/process-nextick-args",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "process-nextick-args@~2.0.0",
"name": "process-nextick-args",
"escapedName": "process-nextick-args",
"rawSpec": "~2.0.0",
"saveSpec": null,
"fetchSpec": "~2.0.0"
},
"_requiredBy": [
"/readable-stream"
],
"_resolved": "https://registry.npm.taobao.org/process-nextick-args/download/process-nextick-args-2.0.1.tgz",
"_shasum": "7820d9b16120cc55ca9ae7792680ae7dba6d7fe2",
"_spec": "process-nextick-args@~2.0.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/readable-stream",
"author": "",
"bugs": {
"url": "https://github.com/calvinmetcalf/process-nextick-args/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "process.nextTick but always with args", "description": "process.nextTick but always with args",
"devDependencies": { "main": "index.js",
"tap": "~0.2.6"
},
"files": [ "files": [
"index.js" "index.js"
], ],
"homepage": "https://github.com/calvinmetcalf/process-nextick-args", "scripts": {
"license": "MIT", "test": "node test.js"
"main": "index.js", },
"name": "process-nextick-args",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/calvinmetcalf/process-nextick-args.git" "url": "https://github.com/calvinmetcalf/process-nextick-args.git"
}, },
"scripts": { "author": "",
"test": "node test.js" "license": "MIT",
"bugs": {
"url": "https://github.com/calvinmetcalf/process-nextick-args/issues"
}, },
"version": "2.0.1" "homepage": "https://github.com/calvinmetcalf/process-nextick-args",
"devDependencies": {
"tap": "~0.2.6"
}
} }
{ {
"_from": "pump@^3.0.0", "name": "pump",
"_id": "pump@3.0.0", "version": "3.0.0",
"_inBundle": false, "repository": "git://github.com/mafintosh/pump.git",
"_integrity": "sha1-tKIRaBW94vTh6mAjVOjHVWUQemQ=", "license": "MIT",
"_location": "/pump", "description": "pipe streams together and close all of them if one of them closes",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "pump@^3.0.0",
"name": "pump",
"escapedName": "pump",
"rawSpec": "^3.0.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
},
"_requiredBy": [
"/compressing"
],
"_resolved": "https://registry.npm.taobao.org/pump/download/pump-3.0.0.tgz",
"_shasum": "b4a2116815bde2f4e1ea602354e8c75565107a64",
"_spec": "pump@^3.0.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/compressing",
"author": {
"name": "Mathias Buus Madsen",
"email": "mathiasbuus@gmail.com"
},
"browser": { "browser": {
"fs": false "fs": false
}, },
"bugs": {
"url": "https://github.com/mafintosh/pump/issues"
},
"bundleDependencies": false,
"dependencies": {
"end-of-stream": "^1.1.0",
"once": "^1.3.1"
},
"deprecated": false,
"description": "pipe streams together and close all of them if one of them closes",
"homepage": "https://github.com/mafintosh/pump#readme",
"keywords": [ "keywords": [
"streams", "streams",
"pipe", "pipe",
"destroy", "destroy",
"callback" "callback"
], ],
"license": "MIT", "author": "Mathias Buus Madsen <mathiasbuus@gmail.com>",
"name": "pump", "dependencies": {
"repository": { "end-of-stream": "^1.1.0",
"type": "git", "once": "^1.3.1"
"url": "git://github.com/mafintosh/pump.git"
}, },
"scripts": { "scripts": {
"test": "node test-browser.js && node test-node.js" "test": "node test-browser.js && node test-node.js"
}, }
"version": "3.0.0"
} }
{ {
"_from": "readable-stream@^2.3.0", "name": "readable-stream",
"_id": "readable-stream@2.3.7", "version": "2.3.7",
"_inBundle": false, "description": "Streams3, a user-land copy of the stream library from Node.js",
"_integrity": "sha1-Hsoc9xGu+BTAT2IlKjamL2yyO1c=", "main": "readable.js",
"_location": "/readable-stream",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "readable-stream@^2.3.0",
"name": "readable-stream",
"escapedName": "readable-stream",
"rawSpec": "^2.3.0",
"saveSpec": null,
"fetchSpec": "^2.3.0"
},
"_requiredBy": [
"/bl",
"/tar-stream"
],
"_resolved": "https://registry.npm.taobao.org/readable-stream/download/readable-stream-2.3.7.tgz",
"_shasum": "1eca1cf711aef814c04f62252a36a62f6cb23b57",
"_spec": "readable-stream@^2.3.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/tar-stream",
"browser": {
"util": false,
"./readable.js": "./readable-browser.js",
"./writable.js": "./writable-browser.js",
"./duplex.js": "./duplex-browser.js",
"./lib/internal/streams/stream.js": "./lib/internal/streams/stream-browser.js"
},
"bugs": {
"url": "https://github.com/nodejs/readable-stream/issues"
},
"bundleDependencies": false,
"dependencies": { "dependencies": {
"core-util-is": "~1.0.0", "core-util-is": "~1.0.0",
"inherits": "~2.0.3", "inherits": "~2.0.3",
...@@ -43,8 +12,6 @@ ...@@ -43,8 +12,6 @@
"string_decoder": "~1.1.1", "string_decoder": "~1.1.1",
"util-deprecate": "~1.0.1" "util-deprecate": "~1.0.1"
}, },
"deprecated": false,
"description": "Streams3, a user-land copy of the stream library from Node.js",
"devDependencies": { "devDependencies": {
"assert": "^1.4.0", "assert": "^1.4.0",
"babel-polyfill": "^6.9.1", "babel-polyfill": "^6.9.1",
...@@ -54,29 +21,32 @@ ...@@ -54,29 +21,32 @@
"tap": "^0.7.0", "tap": "^0.7.0",
"tape": "^4.8.0" "tape": "^4.8.0"
}, },
"homepage": "https://github.com/nodejs/readable-stream#readme", "scripts": {
"test": "tap test/parallel/*.js test/ours/*.js && node test/verify-dependencies.js",
"ci": "tap test/parallel/*.js test/ours/*.js --tap | tee test.tap && node test/verify-dependencies.js",
"cover": "nyc npm test",
"report": "nyc report --reporter=lcov"
},
"repository": {
"type": "git",
"url": "git://github.com/nodejs/readable-stream"
},
"keywords": [ "keywords": [
"readable", "readable",
"stream", "stream",
"pipe" "pipe"
], ],
"license": "MIT", "browser": {
"main": "readable.js", "util": false,
"name": "readable-stream", "./readable.js": "./readable-browser.js",
"./writable.js": "./writable-browser.js",
"./duplex.js": "./duplex-browser.js",
"./lib/internal/streams/stream.js": "./lib/internal/streams/stream-browser.js"
},
"nyc": { "nyc": {
"include": [ "include": [
"lib/**.js" "lib/**.js"
] ]
}, },
"repository": { "license": "MIT"
"type": "git",
"url": "git://github.com/nodejs/readable-stream.git"
},
"scripts": {
"ci": "tap test/parallel/*.js test/ours/*.js --tap | tee test.tap && node test/verify-dependencies.js",
"cover": "nyc npm test",
"report": "nyc report --reporter=lcov",
"test": "tap test/parallel/*.js test/ours/*.js && node test/verify-dependencies.js"
},
"version": "2.3.7"
} }
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
/* eslint-disable node/no-deprecated-api */ /* eslint-disable node/no-deprecated-api */
var buffer = require('buffer') var buffer = require('buffer')
var Buffer = buffer.Buffer var Buffer = buffer.Buffer
...@@ -21,8 +20,6 @@ function SafeBuffer (arg, encodingOrOffset, length) { ...@@ -21,8 +20,6 @@ function SafeBuffer (arg, encodingOrOffset, length) {
return Buffer(arg, encodingOrOffset, length) return Buffer(arg, encodingOrOffset, length)
} }
SafeBuffer.prototype = Object.create(Buffer.prototype)
// Copy static methods from Buffer // Copy static methods from Buffer
copyProps(Buffer, SafeBuffer) copyProps(Buffer, SafeBuffer)
......
{ {
"_from": "safe-buffer@^5.1.1", "name": "safe-buffer",
"_id": "safe-buffer@5.2.1", "description": "Safer Node.js Buffer API",
"_inBundle": false, "version": "5.1.2",
"_integrity": "sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY=",
"_location": "/safe-buffer",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "safe-buffer@^5.1.1",
"name": "safe-buffer",
"escapedName": "safe-buffer",
"rawSpec": "^5.1.1",
"saveSpec": null,
"fetchSpec": "^5.1.1"
},
"_requiredBy": [
"/bl"
],
"_resolved": "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.2.1.tgz?cache=0&sync_timestamp=1589129010497&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsafe-buffer%2Fdownload%2Fsafe-buffer-5.2.1.tgz",
"_shasum": "1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6",
"_spec": "safe-buffer@^5.1.1",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/bl",
"author": { "author": {
"name": "Feross Aboukhadijeh", "name": "Feross Aboukhadijeh",
"email": "feross@feross.org", "email": "feross@feross.org",
"url": "https://feross.org" "url": "http://feross.org"
}, },
"bugs": { "bugs": {
"url": "https://github.com/feross/safe-buffer/issues" "url": "https://github.com/feross/safe-buffer/issues"
}, },
"bundleDependencies": false,
"deprecated": false,
"description": "Safer Node.js Buffer API",
"devDependencies": { "devDependencies": {
"standard": "*", "standard": "*",
"tape": "^5.0.0" "tape": "^4.0.0"
}, },
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"homepage": "https://github.com/feross/safe-buffer", "homepage": "https://github.com/feross/safe-buffer",
"keywords": [ "keywords": [
"buffer", "buffer",
...@@ -63,14 +26,12 @@ ...@@ -63,14 +26,12 @@
], ],
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "index.js",
"name": "safe-buffer", "types": "index.d.ts",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/feross/safe-buffer.git" "url": "git://github.com/feross/safe-buffer.git"
}, },
"scripts": { "scripts": {
"test": "standard && tape test/*.js" "test": "standard && tape test/*.js"
}, }
"types": "index.d.ts",
"version": "5.2.1"
} }
{ {
"_from": "safer-buffer@>= 2.1.2 < 3", "name": "safer-buffer",
"_id": "safer-buffer@2.1.2", "version": "2.1.2",
"_inBundle": false, "description": "Modern Buffer API polyfill without footguns",
"_integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo=", "main": "safer.js",
"_location": "/safer-buffer", "scripts": {
"_phantomChildren": {}, "browserify-test": "browserify --external tape tests.js > browserify-tests.js && tape browserify-tests.js",
"_requested": { "test": "standard && tape tests.js"
"type": "range",
"registry": true,
"raw": "safer-buffer@>= 2.1.2 < 3",
"name": "safer-buffer",
"escapedName": "safer-buffer",
"rawSpec": ">= 2.1.2 < 3",
"saveSpec": null,
"fetchSpec": ">= 2.1.2 < 3"
}, },
"_requiredBy": [
"/body-parser/iconv-lite",
"/iconv-lite",
"/raw-body/iconv-lite"
],
"_resolved": "https://registry.npm.taobao.org/safer-buffer/download/safer-buffer-2.1.2.tgz",
"_shasum": "44fa161b0187b9549dd84bb91802f9bd8385cd6a",
"_spec": "safer-buffer@>= 2.1.2 < 3",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/iconv-lite",
"author": { "author": {
"name": "Nikita Skovoroda", "name": "Nikita Skovoroda",
"email": "chalkerx@gmail.com", "email": "chalkerx@gmail.com",
"url": "https://github.com/ChALkeR" "url": "https://github.com/ChALkeR"
}, },
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ChALkeR/safer-buffer.git"
},
"bugs": { "bugs": {
"url": "https://github.com/ChALkeR/safer-buffer/issues" "url": "https://github.com/ChALkeR/safer-buffer/issues"
}, },
"bundleDependencies": false,
"deprecated": false,
"description": "Modern Buffer API polyfill without footguns",
"devDependencies": { "devDependencies": {
"standard": "^11.0.1", "standard": "^11.0.1",
"tape": "^4.9.0" "tape": "^4.9.0"
...@@ -45,18 +30,5 @@ ...@@ -45,18 +30,5 @@
"tests.js", "tests.js",
"dangerous.js", "dangerous.js",
"safer.js" "safer.js"
], ]
"homepage": "https://github.com/ChALkeR/safer-buffer#readme",
"license": "MIT",
"main": "safer.js",
"name": "safer-buffer",
"repository": {
"type": "git",
"url": "git+https://github.com/ChALkeR/safer-buffer.git"
},
"scripts": {
"browserify-test": "browserify --external tape tests.js > browserify-tests.js && tape browserify-tests.js",
"test": "standard && tape tests.js"
},
"version": "2.1.2"
} }
{ {
"_from": "streamifier@^0.1.1", "name": "streamifier",
"_id": "streamifier@0.1.1", "version": "0.1.1",
"_inBundle": false,
"_integrity": "sha1-l+mNj6TRBdYqJpHR3AfoINuN/E8=",
"_location": "/streamifier",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "streamifier@^0.1.1",
"name": "streamifier",
"escapedName": "streamifier",
"rawSpec": "^0.1.1",
"saveSpec": null,
"fetchSpec": "^0.1.1"
},
"_requiredBy": [
"/compressing"
],
"_resolved": "https://registry.npm.taobao.org/streamifier/download/streamifier-0.1.1.tgz",
"_shasum": "97e98d8fa4d105d62a2691d1dc07e820db8dfc4f",
"_spec": "streamifier@^0.1.1",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/compressing",
"author": {
"name": "Gabriel Llamas",
"email": "gagle@outlook.com"
},
"bugs": {
"url": "https://github.com/gagle/node-streamifier/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Converts a Buffer/String into a readable stream", "description": "Converts a Buffer/String into a readable stream",
"engines": {
"node": ">=0.10"
},
"homepage": "https://github.com/gagle/node-streamifier#readme",
"keywords": [ "keywords": [
"string", "string",
"buffer", "buffer",
"readable", "readable",
"stream" "stream"
], ],
"license": "MIT", "author": "Gabriel Llamas <gagle@outlook.com>",
"main": "lib", "repository": "git://github.com/gagle/node-streamifier.git",
"name": "streamifier", "engines": {
"repository": { "node": ">=0.10"
"type": "git",
"url": "git://github.com/gagle/node-streamifier.git"
}, },
"version": "0.1.1" "license": "MIT",
} "main": "lib"
}
\ No newline at end of file
{ {
"_from": "string_decoder@~1.1.1", "name": "string_decoder",
"_id": "string_decoder@1.1.1", "version": "1.1.1",
"_inBundle": false, "description": "The string_decoder module from Node core",
"_integrity": "sha1-nPFhG6YmhdcDCunkujQUnDrwP8g=", "main": "lib/string_decoder.js",
"_location": "/string_decoder",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "string_decoder@~1.1.1",
"name": "string_decoder",
"escapedName": "string_decoder",
"rawSpec": "~1.1.1",
"saveSpec": null,
"fetchSpec": "~1.1.1"
},
"_requiredBy": [
"/readable-stream"
],
"_resolved": "https://registry.npm.taobao.org/string_decoder/download/string_decoder-1.1.1.tgz?cache=0&sync_timestamp=1565170823020&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstring_decoder%2Fdownload%2Fstring_decoder-1.1.1.tgz",
"_shasum": "9cf1611ba62685d7030ae9e4ba34149c3af03fc8",
"_spec": "string_decoder@~1.1.1",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/readable-stream",
"bugs": {
"url": "https://github.com/nodejs/string_decoder/issues"
},
"bundleDependencies": false,
"dependencies": { "dependencies": {
"safe-buffer": "~5.1.0" "safe-buffer": "~5.1.0"
}, },
"deprecated": false,
"description": "The string_decoder module from Node core",
"devDependencies": { "devDependencies": {
"babel-polyfill": "^6.23.0", "babel-polyfill": "^6.23.0",
"core-util-is": "^1.0.2", "core-util-is": "^1.0.2",
"inherits": "^2.0.3", "inherits": "^2.0.3",
"tap": "~0.4.8" "tap": "~0.4.8"
}, },
"scripts": {
"test": "tap test/parallel/*.js && node test/verify-dependencies",
"ci": "tap test/parallel/*.js test/ours/*.js --tap | tee test.tap && node test/verify-dependencies.js"
},
"repository": {
"type": "git",
"url": "git://github.com/nodejs/string_decoder.git"
},
"homepage": "https://github.com/nodejs/string_decoder", "homepage": "https://github.com/nodejs/string_decoder",
"keywords": [ "keywords": [
"string", "string",
...@@ -44,16 +27,5 @@ ...@@ -44,16 +27,5 @@
"browser", "browser",
"browserify" "browserify"
], ],
"license": "MIT", "license": "MIT"
"main": "lib/string_decoder.js",
"name": "string_decoder",
"repository": {
"type": "git",
"url": "git://github.com/nodejs/string_decoder.git"
},
"scripts": {
"ci": "tap test/parallel/*.js test/ours/*.js --tap | tee test.tap && node test/verify-dependencies.js",
"test": "tap test/parallel/*.js && node test/verify-dependencies"
},
"version": "1.1.1"
} }
{ {
"_from": "tar-stream@^1.5.2", "name": "tar-stream",
"_id": "tar-stream@1.6.2", "version": "1.6.2",
"_inBundle": false, "description": "tar-stream is a streaming tar parser and generator and nothing else. It is streams2 and operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.",
"_integrity": "sha1-jqVdqzeXIlPZqa+Q/c1VmuQ1xVU=", "author": "Mathias Buus <mathiasbuus@gmail.com>",
"_location": "/tar-stream", "engines": {
"_phantomChildren": {}, "node": ">= 0.8.0"
"_requested": {
"type": "range",
"registry": true,
"raw": "tar-stream@^1.5.2",
"name": "tar-stream",
"escapedName": "tar-stream",
"rawSpec": "^1.5.2",
"saveSpec": null,
"fetchSpec": "^1.5.2"
},
"_requiredBy": [
"/compressing"
],
"_resolved": "https://registry.npm.taobao.org/tar-stream/download/tar-stream-1.6.2.tgz?cache=0&sync_timestamp=1609236328737&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftar-stream%2Fdownload%2Ftar-stream-1.6.2.tgz",
"_shasum": "8ea55dab37972253d9a9af90fdcd559ae435c555",
"_spec": "tar-stream@^1.5.2",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/compressing",
"author": {
"name": "Mathias Buus",
"email": "mathiasbuus@gmail.com"
},
"bugs": {
"url": "https://github.com/mafintosh/tar-stream/issues"
}, },
"bundleDependencies": false,
"dependencies": { "dependencies": {
"bl": "^1.0.0", "bl": "^1.0.0",
"buffer-alloc": "^1.2.0", "buffer-alloc": "^1.2.0",
...@@ -39,24 +15,15 @@ ...@@ -39,24 +15,15 @@
"to-buffer": "^1.1.1", "to-buffer": "^1.1.1",
"xtend": "^4.0.0" "xtend": "^4.0.0"
}, },
"deprecated": false,
"description": "tar-stream is a streaming tar parser and generator and nothing else. It is streams2 and operates purely using streams which means you can easily extract/parse tarballs without ever hitting the file system.",
"devDependencies": { "devDependencies": {
"concat-stream": "^1.6.2", "concat-stream": "^1.6.2",
"standard": "^11.0.1", "standard": "^11.0.1",
"tape": "^4.9.0" "tape": "^4.9.0"
}, },
"directories": { "scripts": {
"test": "test" "test": "standard && tape test/extract.js test/pack.js",
}, "test-all": "standard && tape test/*.js"
"engines": {
"node": ">= 0.8.0"
}, },
"files": [
"*.js",
"LICENSE"
],
"homepage": "https://github.com/mafintosh/tar-stream",
"keywords": [ "keywords": [
"tar", "tar",
"tarball", "tarball",
...@@ -73,16 +40,21 @@ ...@@ -73,16 +40,21 @@
"extract", "extract",
"modify" "modify"
], ],
"license": "MIT", "bugs": {
"url": "https://github.com/mafintosh/tar-stream/issues"
},
"homepage": "https://github.com/mafintosh/tar-stream",
"main": "index.js", "main": "index.js",
"name": "tar-stream", "files": [
"*.js",
"LICENSE"
],
"directories": {
"test": "test"
},
"license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/mafintosh/tar-stream.git" "url": "git+https://github.com/mafintosh/tar-stream.git"
}, }
"scripts": {
"test": "standard && tape test/extract.js test/pack.js",
"test-all": "standard && tape test/*.js"
},
"version": "1.6.2"
} }
{ {
"_from": "to-buffer@^1.1.1", "name": "to-buffer",
"_id": "to-buffer@1.1.1", "version": "1.1.1",
"_inBundle": false,
"_integrity": "sha1-STvUj2LXxD/N7TE6A9ytsuEhOoA=",
"_location": "/to-buffer",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "to-buffer@^1.1.1",
"name": "to-buffer",
"escapedName": "to-buffer",
"rawSpec": "^1.1.1",
"saveSpec": null,
"fetchSpec": "^1.1.1"
},
"_requiredBy": [
"/tar-stream"
],
"_resolved": "https://registry.npm.taobao.org/to-buffer/download/to-buffer-1.1.1.tgz",
"_shasum": "493bd48f62d7c43fcded313a03dcadb2e1213a80",
"_spec": "to-buffer@^1.1.1",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/tar-stream",
"author": {
"name": "Mathias Buus",
"url": "@mafintosh"
},
"bugs": {
"url": "https://github.com/mafintosh/to-buffer/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back", "description": "Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back",
"main": "index.js",
"dependencies": {},
"devDependencies": { "devDependencies": {
"standard": "^6.0.5", "standard": "^6.0.5",
"tape": "^4.4.0" "tape": "^4.4.0"
}, },
"homepage": "https://github.com/mafintosh/to-buffer", "scripts": {
"license": "MIT", "test": "standard && tape test.js"
"main": "index.js", },
"name": "to-buffer",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/mafintosh/to-buffer.git" "url": "https://github.com/mafintosh/to-buffer.git"
}, },
"scripts": { "author": "Mathias Buus (@mafintosh)",
"test": "standard && tape test.js" "license": "MIT",
"bugs": {
"url": "https://github.com/mafintosh/to-buffer/issues"
}, },
"version": "1.1.1" "homepage": "https://github.com/mafintosh/to-buffer"
} }
{ {
"_from": "util-deprecate@~1.0.1", "name": "util-deprecate",
"_id": "util-deprecate@1.0.2", "version": "1.0.2",
"_inBundle": false, "description": "The Node.js `util.deprecate()` function with browser support",
"_integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "main": "node.js",
"_location": "/util-deprecate",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "util-deprecate@~1.0.1",
"name": "util-deprecate",
"escapedName": "util-deprecate",
"rawSpec": "~1.0.1",
"saveSpec": null,
"fetchSpec": "~1.0.1"
},
"_requiredBy": [
"/readable-stream"
],
"_resolved": "https://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz",
"_shasum": "450d4dc9fa70de732762fbd2d4a28981419a0ccf",
"_spec": "util-deprecate@~1.0.1",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/readable-stream",
"author": {
"name": "Nathan Rajlich",
"email": "nathan@tootallnate.net",
"url": "http://n8.io/"
},
"browser": "browser.js", "browser": "browser.js",
"bugs": { "scripts": {
"url": "https://github.com/TooTallNate/util-deprecate/issues" "test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/TooTallNate/util-deprecate.git"
}, },
"bundleDependencies": false,
"deprecated": false,
"description": "The Node.js `util.deprecate()` function with browser support",
"homepage": "https://github.com/TooTallNate/util-deprecate",
"keywords": [ "keywords": [
"util", "util",
"deprecate", "deprecate",
...@@ -42,15 +18,10 @@ ...@@ -42,15 +18,10 @@
"browser", "browser",
"node" "node"
], ],
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
"license": "MIT", "license": "MIT",
"main": "node.js", "bugs": {
"name": "util-deprecate", "url": "https://github.com/TooTallNate/util-deprecate/issues"
"repository": {
"type": "git",
"url": "git://github.com/TooTallNate/util-deprecate.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}, },
"version": "1.0.2" "homepage": "https://github.com/TooTallNate/util-deprecate"
} }
{ {
"_from": "wrappy@1", "name": "wrappy",
"_id": "wrappy@1.0.2", "version": "1.0.2",
"_inBundle": false, "description": "Callback wrapping utility",
"_integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "main": "wrappy.js",
"_location": "/wrappy", "files": [
"_phantomChildren": {}, "wrappy.js"
"_requested": {
"type": "range",
"registry": true,
"raw": "wrappy@1",
"name": "wrappy",
"escapedName": "wrappy",
"rawSpec": "1",
"saveSpec": null,
"fetchSpec": "1"
},
"_requiredBy": [
"/once"
], ],
"_resolved": "https://registry.nlark.com/wrappy/download/wrappy-1.0.2.tgz?cache=0&sync_timestamp=1619133505879&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fwrappy%2Fdownload%2Fwrappy-1.0.2.tgz", "directories": {
"_shasum": "b5243d8f3ec1aa35f1364605bc0d1036e30ab69f", "test": "test"
"_spec": "wrappy@1",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/once",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
"url": "http://blog.izs.me/"
},
"bugs": {
"url": "https://github.com/npm/wrappy/issues"
}, },
"bundleDependencies": false,
"dependencies": {}, "dependencies": {},
"deprecated": false,
"description": "Callback wrapping utility",
"devDependencies": { "devDependencies": {
"tap": "^2.3.1" "tap": "^2.3.1"
}, },
"directories": { "scripts": {
"test": "test" "test": "tap --coverage test/*.js"
}, },
"files": [
"wrappy.js"
],
"homepage": "https://github.com/npm/wrappy",
"license": "ISC",
"main": "wrappy.js",
"name": "wrappy",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/npm/wrappy.git" "url": "https://github.com/npm/wrappy"
}, },
"scripts": { "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"test": "tap --coverage test/*.js" "license": "ISC",
"bugs": {
"url": "https://github.com/npm/wrappy/issues"
}, },
"version": "1.0.2" "homepage": "https://github.com/npm/wrappy"
} }
{ {
"_from": "xtend@^4.0.0", "name": "xtend",
"_id": "xtend@4.0.2", "version": "4.0.2",
"_inBundle": false,
"_integrity": "sha1-u3J3n1+kZRhrH0OPZ0+jR/2121Q=",
"_location": "/xtend",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "xtend@^4.0.0",
"name": "xtend",
"escapedName": "xtend",
"rawSpec": "^4.0.0",
"saveSpec": null,
"fetchSpec": "^4.0.0"
},
"_requiredBy": [
"/tar-stream"
],
"_resolved": "https://registry.npm.taobao.org/xtend/download/xtend-4.0.2.tgz",
"_shasum": "bb72779f5fa465186b1f438f674fa347fdb5db54",
"_spec": "xtend@^4.0.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/tar-stream",
"author": {
"name": "Raynos",
"email": "raynos2@gmail.com"
},
"bugs": {
"url": "https://github.com/Raynos/xtend/issues",
"email": "raynos2@gmail.com"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Jake Verbaten"
},
{
"name": "Matt Esch"
}
],
"dependencies": {},
"deprecated": false,
"description": "extend like a boss", "description": "extend like a boss",
"devDependencies": {
"tape": "~1.1.0"
},
"engines": {
"node": ">=0.4"
},
"homepage": "https://github.com/Raynos/xtend",
"keywords": [ "keywords": [
"extend", "extend",
"merge", "merge",
...@@ -57,16 +10,30 @@ ...@@ -57,16 +10,30 @@
"object", "object",
"array" "array"
], ],
"license": "MIT", "author": "Raynos <raynos2@gmail.com>",
"repository": "git://github.com/Raynos/xtend.git",
"main": "immutable", "main": "immutable",
"name": "xtend",
"repository": {
"type": "git",
"url": "git://github.com/Raynos/xtend.git"
},
"scripts": { "scripts": {
"test": "node test" "test": "node test"
}, },
"dependencies": {},
"devDependencies": {
"tape": "~1.1.0"
},
"homepage": "https://github.com/Raynos/xtend",
"contributors": [
{
"name": "Jake Verbaten"
},
{
"name": "Matt Esch"
}
],
"bugs": {
"url": "https://github.com/Raynos/xtend/issues",
"email": "raynos2@gmail.com"
},
"license": "MIT",
"testling": { "testling": {
"files": "test.js", "files": "test.js",
"browsers": [ "browsers": [
...@@ -82,5 +49,7 @@ ...@@ -82,5 +49,7 @@
"iphone/6.0..latest" "iphone/6.0..latest"
] ]
}, },
"version": "4.0.2" "engines": {
"node": ">=0.4"
}
} }
{ {
"_from": "yauzl@^2.7.0", "name": "yauzl",
"_id": "yauzl@2.10.0", "version": "2.10.0",
"_inBundle": false, "description": "yet another unzip library for node",
"_integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", "main": "index.js",
"_location": "/yauzl", "scripts": {
"_phantomChildren": {}, "test": "node test/test.js",
"_requested": { "test-cov": "istanbul cover test/test.js",
"type": "range", "test-travis": "istanbul cover --report lcovonly test/test.js"
"registry": true,
"raw": "yauzl@^2.7.0",
"name": "yauzl",
"escapedName": "yauzl",
"rawSpec": "^2.7.0",
"saveSpec": null,
"fetchSpec": "^2.7.0"
}, },
"_requiredBy": [ "repository": {
"/compressing" "type": "git",
], "url": "https://github.com/thejoshwolfe/yauzl.git"
"_resolved": "https://registry.npm.taobao.org/yauzl/download/yauzl-2.10.0.tgz",
"_shasum": "c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9",
"_spec": "yauzl@^2.7.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/compressing",
"author": {
"name": "Josh Wolfe",
"email": "thejoshwolfe@gmail.com"
}, },
"keywords": [
"unzip",
"zip",
"stream",
"archive",
"file"
],
"author": "Josh Wolfe <thejoshwolfe@gmail.com>",
"license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/thejoshwolfe/yauzl/issues" "url": "https://github.com/thejoshwolfe/yauzl/issues"
}, },
"bundleDependencies": false, "homepage": "https://github.com/thejoshwolfe/yauzl",
"dependencies": { "dependencies": {
"buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0",
"fd-slicer": "~1.1.0" "buffer-crc32": "~0.2.3"
}, },
"deprecated": false,
"description": "yet another unzip library for node",
"devDependencies": { "devDependencies": {
"bl": "~1.0.0", "bl": "~1.0.0",
"istanbul": "~0.3.4", "istanbul": "~0.3.4",
...@@ -43,26 +36,5 @@ ...@@ -43,26 +36,5 @@
}, },
"files": [ "files": [
"index.js" "index.js"
], ]
"homepage": "https://github.com/thejoshwolfe/yauzl",
"keywords": [
"unzip",
"zip",
"stream",
"archive",
"file"
],
"license": "MIT",
"main": "index.js",
"name": "yauzl",
"repository": {
"type": "git",
"url": "git+https://github.com/thejoshwolfe/yauzl.git"
},
"scripts": {
"test": "node test/test.js",
"test-cov": "istanbul cover test/test.js",
"test-travis": "istanbul cover --report lcovonly test/test.js"
},
"version": "2.10.0"
} }
{ {
"_from": "yazl@^2.4.2", "name": "yazl",
"_id": "yazl@2.5.1", "version": "2.5.1",
"_inBundle": false, "description": "yet another zip library for node",
"_integrity": "sha1-o9ZdPdZZpbCTeFDoYJ8i//orXDU=", "main": "index.js",
"_location": "/yazl", "scripts": {
"_phantomChildren": {}, "test": "node test/test.js",
"_requested": { "test-cov": "istanbul cover test/test.js",
"type": "range", "test-travis": "istanbul cover --report lcovonly test/test.js"
"registry": true,
"raw": "yazl@^2.4.2",
"name": "yazl",
"escapedName": "yazl",
"rawSpec": "^2.4.2",
"saveSpec": null,
"fetchSpec": "^2.4.2"
}, },
"_requiredBy": [ "repository": {
"/compressing" "type": "git",
], "url": "https://github.com/thejoshwolfe/yazl.git"
"_resolved": "https://registry.npm.taobao.org/yazl/download/yazl-2.5.1.tgz",
"_shasum": "a3d65d3dd659a5b0937850e8609f22fffa2b5c35",
"_spec": "yazl@^2.4.2",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/compressing",
"author": {
"name": "Josh Wolfe",
"email": "thejoshwolfe@gmail.com"
}, },
"keywords": [
"zip",
"stream",
"archive",
"file"
],
"author": "Josh Wolfe <thejoshwolfe@gmail.com>",
"license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/thejoshwolfe/yazl/issues" "url": "https://github.com/thejoshwolfe/yazl/issues"
}, },
"bundleDependencies": false, "homepage": "https://github.com/thejoshwolfe/yazl",
"dependencies": { "dependencies": {
"buffer-crc32": "~0.2.3" "buffer-crc32": "~0.2.3"
}, },
"deprecated": false,
"description": "yet another zip library for node",
"devDependencies": { "devDependencies": {
"bl": "~0.9.3", "bl": "~0.9.3",
"istanbul": "^0.4.5", "istanbul": "^0.4.5",
...@@ -42,25 +34,5 @@ ...@@ -42,25 +34,5 @@
}, },
"files": [ "files": [
"index.js" "index.js"
], ]
"homepage": "https://github.com/thejoshwolfe/yazl",
"keywords": [
"zip",
"stream",
"archive",
"file"
],
"license": "MIT",
"main": "index.js",
"name": "yazl",
"repository": {
"type": "git",
"url": "git+https://github.com/thejoshwolfe/yazl.git"
},
"scripts": {
"test": "node test/test.js",
"test-cov": "istanbul cover test/test.js",
"test-travis": "istanbul cover --report lcovonly test/test.js"
},
"version": "2.5.1"
} }
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment