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 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "",
"_N$string": "",
"_fontSize": 20,
......@@ -1496,7 +1495,6 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "",
"_N$string": "",
"_fontSize": 20,
......@@ -1937,7 +1935,6 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "",
"_N$string": "",
"_fontSize": 20,
......@@ -2452,7 +2449,6 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "",
"_N$string": "",
"_fontSize": 20,
......@@ -2702,7 +2698,6 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "",
"_N$string": "",
"_fontSize": 20,
......@@ -2938,7 +2933,7 @@
"asset": {
"__uuid__": "dfda5cd6-ea60-4dcd-aec2-e7e4bb1b05e6"
},
"fileId": "c36MJ+olFFB6GMZb75Iq+4",
"fileId": "",
"sync": false
}
]
\ No newline at end of file
......@@ -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.setCurrentMode(this.lrc.PLAY_MODE.MODE1);
this.buttonGroupChange(this.modeNameMap[this.getCurrentMode()])
// 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: fw, height: fh} = cc.view.getFrameSize();
......@@ -263,6 +263,8 @@ cc.Class({
const actionbBtnRect = data.hotZoneItemArr.find(item => {
return +item.gIdx === 3;
});
if (lrcRect) {
this.setToRectArea(this.lrc.node, lrcRect, true);
......@@ -272,8 +274,14 @@ cc.Class({
// this.lrc.node.height = lrcArea.height;
// this.lrc.node.anchorX = 0;
// 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 {
this.lrc.node.active = false;
}
if(modeGroupRect){
......@@ -288,7 +296,14 @@ cc.Class({
b.getComponent(cc.Widget).enable = false;
b.getComponent(cc.Widget).enable = true;
})
this.btnGroup.zIndex = 99999;
if (this.btnGroup) {
this.btnGroup.zIndex = 99999;
} else {
console.log("!this.btnGroup");
}
} else {
this.btnGroup.active = false;
}
......@@ -301,7 +316,13 @@ cc.Class({
// const { width: bw, height: bh } = this.actionButton.node;
// this.actionButton.node.width = actionArea.width;
// 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 {
this.actionButton.node.active = false;
}
......@@ -327,7 +348,12 @@ cc.Class({
this.lrc.prepare(data);
// 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 cc.Event.EventCustom('resize', true))
});
......
......@@ -146,7 +146,7 @@ cc.Class({
// LIFE-CYCLE CALLBACKS:
onLoad () {
window['kk'] = this;
cc.director.on('STOP_ALL_AUDIO', () => {
cc.director.on('STOP_ALL_AUDIO_sb_karaoke_cocos', () => {
this.pause();
});
},
......@@ -995,9 +995,17 @@ cc.Class({
},
onDestroy() {
// audioEngine.uncache(this.audioUrl);
audioEngine.stop(this._currentAudioId);
this._audioSource.destroy();
this._audioACSource.destroy();
if (this._currentAudioId) {
audioEngine.stop(this._currentAudioId);
}
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({
getData((data) => {
console.log('data:', data);
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()
})
},
......@@ -118,14 +118,14 @@ cc.Class({
addPreloadImage() {
if (this.data.bgItem) {
this._imageResList.push({ url: this.data.bgItem.url });
this._imageResList.push({ url: this.data.bgItem.url || '' });
}
if (!this.data.hotZoneItemArr) {
return;
}
this.data.hotZoneItemArr.forEach((item) => {
if (item.pic_url) {
this._imageResList.push({ url: item.pic_url });
this._imageResList.push({ url: item.pic_url || '' });
}
})
},
......@@ -136,16 +136,16 @@ cc.Class({
return;
}
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) {
this._audioResList.push({url: this.data.lrcData.audio_url });
if (this.data.lrcData && this.data.lrcData.audio_url || '') {
this._audioResList.push({url: this.data.lrcData.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({
loadEnd() {
this.initView();
cc.director.emit('GAME_RESOURCE_LOADED');
cc.director.emit('GAME_RESOURCE_LOADED_sb_karaoke_cocos');
},
initView() {
......@@ -366,7 +366,7 @@ cc.Class({
initBottomPart() {
const bgBottom = cc.find('Canvas/bgBottom');
const script = bgBottom.getComponent('bgBottom');
const script = bgBottom.getComponent('bgBottom_sb_karaoke_cocos');
const picArr = [];
this.data.hotZoneItemArr.forEach((item) => {
if (item.gIdx == '0') {
......@@ -479,7 +479,7 @@ cc.Class({
if (animaNode.audioClip) {
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);
}
......
......@@ -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");
//Windows系统上'Windows_NT'
let sysType = os.type();
Date.prototype.Format = function (fmt) {
Date.prototype.Format = function(fmt) {
var o = {
"M+": this.getMonth() + 1,
"d+": this.getDate(),
"h+": this.getHours(),
"m+": this.getMinutes(),
"s+": this.getSeconds(),
"q+": Math.floor((this.getMonth() + 3) / 3),
"S": this.getMilliseconds()
"M+" : this.getMonth() + 1,
"d+" : this.getDate(),
"h+" : this.getHours(),
"m+" : this.getMinutes(),
"s+" : this.getSeconds(),
"q+" : Math.floor((this.getMonth() + 3) / 3),
"S" : this.getMilliseconds()
};
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)
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)));
return fmt;
}
function clean(zipPath) {
if (fs.existsSync(zipPath)) {
function clean(zipPath){
if(fs.existsSync(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 ls;
if (sysType === "Windows_NT") {
if(sysType==="Windows_NT"){
//ng build --prod --build--optimizer --base-href /ng-one/
ls = spawn("cmd.exe", ['/c', 'ng', 'build', '--prod', '--build--optimizer', '--base-href', '/template-base-href/']);
} else {
ls = spawn("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{
ls = spawn("ng", ['build', '--prod', '--build--optimizer', '--base-href', '/template-base-href/'] );
}
ls.stdout.on('data', (data) => {
......@@ -66,29 +66,29 @@ const runSpawn = async function () {
ls.on('close', (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 zipname = pkg.name+"_"+date.Format("yyyyMMdd hh-mm-ss");
let zipname = 'form';
let zipdir = path.resolve(__dirname, "../publish/" + zipname + ".zip");
let zipdir = path.resolve(__dirname,"../publish/"+zipname+".zip");
clean(zipdir); //删除原有的包
const tarStream = new compressing.zip.Stream();
fs.readdir(zippath, function (err, files) {
if (err) {
fs.readdir(zippath,function(err,files){
if(err){
console.log("======文件打开异常======");
console.log(err);
reject();
}
for (let i = 0; i < files.length; i++) {
tarStream.addEntry(zippath + "/" + files[i]);
for(let i=0;i<files.length;i++){
tarStream.addEntry(zippath+"/"+files[i]);
}
let writeStream = fs.createWriteStream(zipdir);
tarStream.pipe(writeStream);
writeStream.on('close', () => {
console.log(`模板 ${pkg.name} 打包已完成!`);
resolve();
console.log(`模板 ${pkg.name} 打包已完成!`);
resolve();
})
});
......@@ -104,7 +104,7 @@ const runSpawn = async function () {
// }
// projects = process.argv[2];
let exec = async function () {
let exec = async function(){
//压缩模板
await runSpawn();
}
......
This diff is collapsed.
{
"_from": "bl@^1.0.0",
"_id": "bl@1.2.3",
"_inBundle": false,
"_integrity": "sha1-Ho3YAULqyA1xWMnczAR/tiDgNec=",
"_location": "/bl",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "bl@^1.0.0",
"name": "bl",
"escapedName": "bl",
"rawSpec": "^1.0.0",
"saveSpec": null,
"fetchSpec": "^1.0.0"
"name": "bl",
"version": "1.2.3",
"description": "Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!",
"main": "bl.js",
"scripts": {
"test": "node test/test.js | faucet"
},
"_requiredBy": [
"/tar-stream"
],
"_resolved": "https://registry.npm.taobao.org/bl/download/bl-1.2.3.tgz",
"_shasum": "1e8dd80142eac80d7158c9dccc047fb620e035e7",
"_spec": "bl@^1.0.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/tar-stream",
"repository": {
"type": "git",
"url": "https://github.com/rvagg/bl.git"
},
"homepage": "https://github.com/rvagg/bl",
"authors": [
"Rod Vagg <rod@vagg.org> (https://github.com/rvagg)",
"Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)",
"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": [
"buffer",
"buffers",
......@@ -50,14 +23,13 @@
"awesomesauce"
],
"license": "MIT",
"main": "bl.js",
"name": "bl",
"repository": {
"type": "git",
"url": "git+https://github.com/rvagg/bl.git"
},
"scripts": {
"test": "node test/test.js | faucet"
"dependencies": {
"readable-stream": "^2.3.5",
"safe-buffer": "^5.1.1"
},
"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",
"_id": "buffer-alloc-unsafe@1.1.0",
"_inBundle": false,
"_integrity": "sha1-vX3CauKXLQ7aJTvgYdupkjScGfA=",
"_location": "/buffer-alloc-unsafe",
"_phantomChildren": {},
"_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"
"name": "buffer-alloc-unsafe",
"version": "1.1.0",
"license": "MIT",
"repository": "LinusU/buffer-alloc-unsafe",
"files": [
"index.js"
],
"_resolved": "https://registry.npm.taobao.org/buffer-alloc-unsafe/download/buffer-alloc-unsafe-1.1.0.tgz",
"_shasum": "bd7dc26ae2972d0eda253be061dba992349c19f0",
"_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"
"scripts": {
"test": "standard && node test"
},
"bundleDependencies": false,
"deprecated": false,
"description": "A [ponyfill](https://ponyfill.com) for `Buffer.allocUnsafe`.",
"devDependencies": {
"standard": "^7.1.2"
},
"files": [
"index.js"
],
"homepage": "https://github.com/LinusU/buffer-alloc-unsafe#readme",
"keywords": [
"allocUnsafe",
"allocate",
......@@ -43,15 +20,5 @@
"buffer",
"ponyfill",
"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",
"_id": "buffer-alloc@1.2.0",
"_inBundle": false,
"_integrity": "sha1-iQ3ZDZI6hz4I4Q5f1RpX5bfM4Ow=",
"_location": "/buffer-alloc",
"_phantomChildren": {},
"_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"
"name": "buffer-alloc",
"version": "1.2.0",
"license": "MIT",
"repository": "LinusU/buffer-alloc",
"files": [
"index.js"
],
"_resolved": "https://registry.npm.taobao.org/buffer-alloc/download/buffer-alloc-1.2.0.tgz",
"_shasum": "890dd90d923a873e08e10e5fd51a57e5b7cce0ec",
"_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"
"scripts": {
"test": "standard && node test"
},
"bundleDependencies": false,
"dependencies": {
"buffer-alloc-unsafe": "^1.1.0",
"buffer-fill": "^1.0.0"
},
"deprecated": false,
"description": "A [ponyfill](https://ponyfill.com) for `Buffer.alloc`.",
"devDependencies": {
"standard": "^7.1.2"
},
"files": [
"index.js"
],
"homepage": "https://github.com/LinusU/buffer-alloc#readme",
"keywords": [
"alloc",
"allocate",
"buffer alloc",
"buffer allocate",
"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",
"_id": "buffer-crc32@0.2.13",
"_inBundle": false,
"_integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=",
"_location": "/buffer-crc32",
"_phantomChildren": {},
"_requested": {
"type": "range",
"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"
"author": "Brian J. Brennan <brianloveswords@gmail.com>",
"name": "buffer-crc32",
"description": "A pure javascript CRC32 algorithm that plays nice with binary data",
"version": "0.2.13",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/brianloveswords/buffer-crc32/raw/master/LICENSE"
}
],
"_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": [
{
"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": {},
"deprecated": false,
"description": "A pure javascript CRC32 algorithm that plays nice with binary data",
"devDependencies": {
"tap": "~0.2.5"
},
"optionalDependencies": {},
"engines": {
"node": "*"
},
"license": "MIT",
"files": [
"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",
"_id": "buffer-fill@1.0.0",
"_inBundle": false,
"_integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=",
"_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"
},
"name": "buffer-fill",
"version": "1.0.0",
"license": "MIT",
"repository": "LinusU/buffer-fill",
"files": [
"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": {
"test": "standard && node test"
},
"version": "1.0.0"
"devDependencies": {
"buffer-alloc-unsafe": "^1.1.0",
"standard": "^7.1.2"
}
}
{
"_from": "compressing@1.5.1",
"_id": "compressing@1.5.1",
"_inBundle": false,
"_integrity": "sha1-0DGjMRuMLtZWGoQxZx1ahEVASC0=",
"_location": "/compressing",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "compressing@1.5.1",
"name": "compressing",
"escapedName": "compressing",
"rawSpec": "1.5.1",
"saveSpec": null,
"fetchSpec": "1.5.1"
"name": "compressing",
"version": "1.5.1",
"description": "Everything you need for compressing and uncompressing",
"main": "index.js",
"scripts": {
"ts-test": "tsc -p ./test/fixtures/types/tsconfig.json",
"test": "egg-bin test && npm run ts-test",
"cov": "egg-bin cov",
"lint": "eslint .",
"ci": "npm run lint && npm run ts-test && npm run cov"
},
"_requiredBy": [
"/"
],
"_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"
"repository": {
"type": "git",
"url": "git+https://github.com/node-modules/compressing.git"
},
"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": {
"url": "https://github.com/node-modules/compressing/issues"
},
"bundleDependencies": false,
"ci": {
"version": "4, 6, 8, 10, 12",
"license": {
"year": "2017",
"fullname": "node-modules and other contributors"
}
},
"homepage": "https://github.com/node-modules/compressing#readme",
"dependencies": {
"flushwritable": "^1.0.0",
"get-ready": "^1.0.0",
......@@ -48,8 +47,6 @@
"yauzl": "^2.7.0",
"yazl": "^2.4.2"
},
"deprecated": false,
"description": "Everything you need for compressing and uncompressing",
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.9",
......@@ -68,36 +65,11 @@
"engines": {
"node": ">= 4.0.0"
},
"files": [
"index.js",
"index.d.ts",
"lib"
],
"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"
"ci": {
"version": "4, 6, 8, 10, 12",
"license": {
"year": "2017",
"fullname": "node-modules and other contributors"
}
}
}
{
"_from": "core-util-is@~1.0.0",
"_id": "core-util-is@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,
"name": "core-util-is",
"version": "1.0.3",
"description": "The `util.is*` functions introduced in Node v0.12.",
"devDependencies": {
"tap": "^15.0.9"
},
"main": "lib/util.js",
"files": [
"lib"
],
"homepage": "https://github.com/isaacs/core-util-is#readme",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/core-util-is"
},
"keywords": [
"util",
"isBuffer",
......@@ -51,18 +21,18 @@
"isThat",
"polyfill"
],
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"license": "MIT",
"main": "lib/util.js",
"name": "core-util-is",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/core-util-is.git"
"bugs": {
"url": "https://github.com/isaacs/core-util-is/issues"
},
"scripts": {
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"test": "tap test.js",
"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",
"_id": "end-of-stream@1.4.4",
"_inBundle": false,
"_integrity": "sha1-WuZKX0UFe682JuwU2gyl5LJDHrA=",
"_location": "/end-of-stream",
"_phantomChildren": {},
"_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"
"name": "end-of-stream",
"version": "1.4.4",
"description": "Call a callback when a readable/writable/duplex stream has completed or failed.",
"repository": {
"type": "git",
"url": "git://github.com/mafintosh/end-of-stream.git"
},
"bundleDependencies": false,
"dependencies": {
"once": "^1.4.0"
},
"deprecated": false,
"description": "Call a callback when a readable/writable/duplex stream has completed or failed.",
"devDependencies": {
"tape": "^4.11.0"
"scripts": {
"test": "node test.js"
},
"files": [
"index.js"
],
"homepage": "https://github.com/mafintosh/end-of-stream",
"keywords": [
"stream",
"streams",
......@@ -52,15 +24,14 @@
"end",
"wait"
],
"license": "MIT",
"main": "index.js",
"name": "end-of-stream",
"repository": {
"type": "git",
"url": "git://github.com/mafintosh/end-of-stream.git"
},
"scripts": {
"test": "node test.js"
"bugs": {
"url": "https://github.com/mafintosh/end-of-stream/issues"
},
"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",
"_id": "fd-slicer@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,
"name": "fd-slicer",
"version": "1.1.0",
"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": {
"istanbul": "~0.3.3",
"mocha": "~2.0.1",
"stream-equal": "~0.1.5",
"streamsink": "~1.2.0"
},
"dependencies": {
"pend": "~1.2.0"
},
"directories": {
"test": "test"
},
"homepage": "https://github.com/andrewrk/node-fd-slicer#readme",
"keywords": [
"createReadStream",
"createWriteStream"
],
"license": "MIT",
"main": "index.js",
"name": "fd-slicer",
"repository": {
"type": "git",
"url": "git://github.com/andrewrk/node-fd-slicer.git"
},
"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"
"bugs": {
"url": "https://github.com/andrewrk/node-fd-slicer/issues"
},
"version": "1.1.0"
"keywords": [
"createReadStream",
"createWriteStream"
]
}
{
"_from": "flushwritable@^1.0.0",
"_id": "flushwritable@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,
"name": "flushwritable",
"version": "1.0.0",
"description": "A Writable stream that flushes before emitting finish",
"devDependencies": {
"mocha": "^2.0.1",
"should": "^4.3.0"
},
"main": "lib/FlushWritable.js",
"directories": {
"test": "test"
},
"homepage": "https://github.com/TomFrost/FlushWritable",
"scripts": {
"test": "mocha -R spec test"
},
"repository": {
"type": "git",
"url": "git://github.com/TomFrost/FlushWritable"
},
"keywords": [
"stream",
"streams",
......@@ -48,15 +21,14 @@
"transform",
"wrapper"
],
"author": "Tom Frost <tom@frosteddesign.com>",
"license": "MIT",
"main": "lib/FlushWritable.js",
"name": "flushwritable",
"repository": {
"type": "git",
"url": "git://github.com/TomFrost/FlushWritable.git"
},
"scripts": {
"test": "mocha -R spec test"
"bugs": {
"url": "https://github.com/TomFrost/FlushWritable/issues"
},
"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",
"_id": "fs-constants@1.0.0",
"_inBundle": false,
"_integrity": "sha1-a+Dem+mYzhavivwkSXue6bfM2a0=",
"_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"
},
"name": "fs-constants",
"version": "1.0.0",
"description": "Require constants across node and the browser",
"main": "index.js",
"browser": "browser.js",
"bugs": {
"url": "https://github.com/mafintosh/fs-constants/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Require constants across node and the browser",
"devDependencies": {},
"homepage": "https://github.com/mafintosh/fs-constants",
"license": "MIT",
"main": "index.js",
"name": "fs-constants",
"repository": {
"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",
"_id": "get-ready@1.0.0",
"_inBundle": false,
"_integrity": "sha1-+RgX8emt7P6hOlYq38jeiDqzR4I=",
"_location": "/get-ready",
"_phantomChildren": {},
"_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"
"name": "get-ready",
"version": "1.0.0",
"description": "mixin to add one-time ready event callback handler",
"main": "index.js",
"files": [
"index.js"
],
"_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": {},
"deprecated": false,
"description": "mixin to add one-time ready event callback handler",
"devDependencies": {
"eslint": "1",
"istanbul": "0",
......@@ -41,26 +14,23 @@
"should": "7",
"thunk-mocha": "0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/node-modules/ready#readme",
"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"
},
"repository": {
"type": "git",
"url": "git://github.com/node-modules/ready"
},
"keywords": [
"ready",
"once",
"event"
],
"author": "fengmk2 <m@fengmk2.com> (http://fengmk2.com)",
"license": "MIT",
"main": "index.js",
"name": "get-ready",
"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"
"bugs": {
"url": "https://github.com/node-modules/ready/issues"
}
}
## 0.5.2 / 2020-06-08
* 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
# 0.4.24 / 2018-08-22
* 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)
* 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)
* 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 the paths in the "browser" field in package.json (#174 by @LMLB)
* 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)
## 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)
* 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
## 0.4.18 / 2017-06-13
# 0.4.18 / 2017-06-13
* 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)
## 0.4.16 / 2017-04-22
# 0.4.16 / 2017-04-22
* Added support for React Native (#150)
* Changed iso8859-1 encoding to usine internal 'binary' encoding, as it's the same thing (#147 by @mscdex)
......@@ -75,12 +53,12 @@
* 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)
## 0.4.14 / 2016-11-20
# 0.4.14 / 2016-11-20
* Preparation for v1.0
* Added Node v6 and latest Node versions to Travis CI test rig
......@@ -90,12 +68,12 @@
* 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.
## 0.4.12 / 2015-09-26
# 0.4.12 / 2015-09-26
* Node v4 support:
* Added CESU-8 decoding (#106)
......@@ -103,18 +81,18 @@
* 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.
## 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
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
addBOM: true. Added docs to Readme.
......@@ -126,12 +104,12 @@
* 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)
## 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.
reason: Packages needed for testing are hard to get on Travis CI.
......@@ -139,40 +117,40 @@
props (#89).
## 0.4.6 / 2015-01-12
# 0.4.6 / 2015-01-12
* fix rare aliases of single-byte encodings (thanks @mscdex)
* 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)
* 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)
* 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
## 0.4.2 / 2014-06-12
# 0.4.2 / 2014-06-12
* 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
## 0.4.0 / 2014-06-10
# 0.4.0 / 2014-06-10
* code is rewritten from scratch
* 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).
* Used in popular projects like [Express.js (body_parser)](https://github.com/expressjs/body-parser),
......@@ -12,11 +12,7 @@
* React Native is supported (need to explicitly `npm install` two more modules: `buffer` and `stream`).
* License: MIT.
[![NPM Stats](https://nodei.co/npm/iconv-lite.png)](https://npmjs.org/package/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/)
[![NPM Stats](https://nodei.co/npm/iconv-lite.png?downloads=true&downloadRank=true)](https://npmjs.org/packages/iconv-lite/)
## Usage
### Basic API
......@@ -98,7 +94,7 @@ iconv.undoExtendNodeEncodings();
## Supported encodings
* 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,
IBM/DOS codepages, Macintosh family, KOI8 family, all others supported by iconv library.
Aliases like 'latin1', 'us-ascii' also supported.
......@@ -137,12 +133,6 @@ smart about endianness in the following ways:
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.
## 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
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 @@
// We support Browserify by skipping automatic module discovery and requiring modules directly.
var modules = [
require("./internal"),
require("./utf32"),
require("./utf16"),
require("./utf7"),
require("./sbcs-codec"),
......@@ -14,7 +13,7 @@ var modules = [
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++) {
var module = modules[i];
for (var enc in module)
......
......@@ -22,11 +22,6 @@ module.exports = {
"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.
"ascii8bit": "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 @@
*--------------------------------------------------------------------------------------------*/
declare module 'iconv-lite' {
// Basic API
export function decode(buffer: Buffer, encoding: string, options?: Options): string;
export function encode(content: string, encoding: string, options?: Options): Buffer;
export function encodingExists(encoding: string): boolean;
// Stream API
export function decodeStream(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 {
......@@ -29,13 +22,3 @@ export interface Options {
addBOM?: boolean;
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",
"escapedName": "iconv-lite",
"rawSpec": "^0.5.0",
"saveSpec": null,
"fetchSpec": "^0.5.0"
},
"_requiredBy": [
"/compressing"
],
"_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",
"_spec": "iconv-lite@^0.5.0",
"_where": "/Users/zhy/h5Workspace/h5Template/sb_karaoke_cocos/node_modules/compressing",
"author": {
"name": "Alexander Shtuchkin",
"email": "ashtuchkin@gmail.com"
},
"browser": {
"./lib/extend-node": false,
"./lib/streams": false
},
"bugs": {
"url": "https://github.com/ashtuchkin/iconv-lite/issues"
},
"bundleDependencies": false,
"dependencies": {
"safer-buffer": ">= 2.1.2 < 3"
},
"deprecated": false,
"description": "Convert character encodings in pure javascript.",
"devDependencies": {
"async": "*",
"c8": "*",
"errto": "*",
"iconv": "2",
"mocha": "^3.1.0",
"request": "~2.87.0",
"semver": "6.1.2",
"unorm": "*"
},
"engines": {
"node": ">=0.10.0"
},
"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"
"description": "Convert character encodings in pure javascript.",
"version": "0.4.24",
"license": "MIT",
"keywords": [
"iconv",
"convert",
"charset",
"icu"
],
"author": "Alexander Shtuchkin <ashtuchkin@gmail.com>",
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"homepage": "https://github.com/ashtuchkin/iconv-lite",
"bugs": "https://github.com/ashtuchkin/iconv-lite/issues",
"repository": {
"type": "git",
"url": "git://github.com/ashtuchkin/iconv-lite.git"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"coverage": "istanbul cover _mocha -- --grep .",
"coverage-open": "open coverage/lcov-report/index.html",
"test": "mocha --reporter spec --grep ."
},
"browser": {
"./lib/extend-node": false,
"./lib/streams": false
},
"devDependencies": {
"mocha": "^3.1.0",
"request": "~2.87.0",
"unorm": "*",
"errto": "*",
"async": "*",
"istanbul": "*",
"semver": "*",
"iconv": "*"
},
"dependencies": {
"safer-buffer": ">= 2.1.2 < 3"
}
}
{
"_from": "inherits@~2.0.3",
"_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,
"name": "inherits",
"description": "Browser-friendly inheritance fully compatible with standard node.js inherits()",
"devDependencies": {
"tap": "^14.2.4"
},
"files": [
"inherits.js",
"inherits_browser.js"
],
"homepage": "https://github.com/isaacs/inherits#readme",
"version": "2.0.4",
"keywords": [
"inheritance",
"class",
......@@ -47,15 +12,18 @@
"browser",
"browserify"
],
"license": "ISC",
"main": "./inherits.js",
"name": "inherits",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/inherits.git"
},
"browser": "./inherits_browser.js",
"repository": "git://github.com/isaacs/inherits",
"license": "ISC",
"scripts": {
"test": "tap"
},
"version": "2.0.4"
"devDependencies": {
"tap": "^14.2.4"
},
"files": [
"inherits.js",
"inherits_browser.js"
]
}
{
"_from": "isarray@~1.0.0",
"_id": "isarray@1.0.0",
"_inBundle": false,
"_integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
"_location": "/isarray",
"_phantomChildren": {},
"_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"
"name": "isarray",
"description": "Array#isArray for older browsers",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "git://github.com/juliangruber/isarray.git"
},
"bundleDependencies": false,
"homepage": "https://github.com/juliangruber/isarray",
"main": "index.js",
"dependencies": {},
"deprecated": false,
"description": "Array#isArray for older browsers",
"devDependencies": {
"tape": "~2.13.4"
},
"homepage": "https://github.com/juliangruber/isarray",
"keywords": [
"browser",
"isarray",
"array"
],
"license": "MIT",
"main": "index.js",
"name": "isarray",
"repository": {
"type": "git",
"url": "git://github.com/juliangruber/isarray.git"
},
"scripts": {
"test": "tape test.js"
"author": {
"name": "Julian Gruber",
"email": "mail@juliangruber.com",
"url": "http://juliangruber.com"
},
"license": "MIT",
"testling": {
"files": "test.js",
"browsers": [
......@@ -69,5 +39,7 @@
"android-browser/4.2..latest"
]
},
"version": "1.0.0"
"scripts": {
"test": "tape test.js"
}
}
{
"_from": "minimist@^1.2.5",
"_id": "minimist@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,
"name": "minimist",
"version": "1.2.5",
"description": "parse argument options",
"main": "index.js",
"devDependencies": {
"covert": "^1.0.0",
"tap": "~0.4.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": {
"coverage": "covert test/*.js",
"test": "tap test/*.js"
"test": "tap test/*.js",
"coverage": "covert test/*.js"
},
"testling": {
"files": "test/*.js",
......@@ -69,5 +25,21 @@
"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",
"_id": "mkdirp@0.5.5",
"_inBundle": false,
"_integrity": "sha1-2Rzv1i0UNsoPQWIOJRKI1CAJne8=",
"_location": "/mkdirp",
"_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"
"name": "mkdirp",
"description": "Recursively mkdir, like `mkdir -p`",
"version": "0.5.5",
"publishConfig": {
"tag": "legacy"
},
"_requiredBy": [
"/compressing"
"author": "James Halliday <mail@substack.net> (http://substack.net)",
"main": "index.js",
"keywords": [
"mkdir",
"directory"
],
"_resolved": "https://registry.npmmirror.com/mkdirp/download/mkdirp-0.5.5.tgz",
"_shasum": "d91cefd62d1436ca0f41620e251288d420099def",
"_spec": "mkdirp@^0.5.1",
"_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"
"repository": {
"type": "git",
"url": "https://github.com/substack/node-mkdirp.git"
},
"bugs": {
"url": "https://github.com/substack/node-mkdirp/issues"
"scripts": {
"test": "tap test/*.js"
},
"bundleDependencies": false,
"dependencies": {
"minimist": "^1.2.5"
},
"deprecated": false,
"description": "Recursively mkdir, like `mkdir -p`",
"devDependencies": {
"mock-fs": "^3.7.0",
"tap": "^5.4.2"
},
"bin": "bin/cmd.js",
"license": "MIT",
"files": [
"bin",
"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",
"_id": "once@1.4.0",
"_inBundle": false,
"_integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
"_location": "/once",
"_phantomChildren": {},
"_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"
"name": "once",
"version": "1.4.0",
"description": "Run a function exactly one time",
"main": "once.js",
"directories": {
"test": "test"
},
"bundleDependencies": false,
"dependencies": {
"wrappy": "1"
},
"deprecated": false,
"description": "Run a function exactly one time",
"devDependencies": {
"tap": "^7.0.1"
},
"directories": {
"test": "test"
"scripts": {
"test": "tap test/*.js"
},
"files": [
"once.js"
],
"homepage": "https://github.com/isaacs/once#readme",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/once"
},
"keywords": [
"once",
"function",
"one",
"single"
],
"license": "ISC",
"main": "once.js",
"name": "once",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/once.git"
},
"scripts": {
"test": "tap test/*.js"
},
"version": "1.4.0"
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"license": "ISC"
}
{
"_from": "pend@~1.2.0",
"_id": "pend@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,
"name": "pend",
"version": "1.2.0",
"description": "dead-simple optimistic async helper",
"homepage": "https://github.com/andrewrk/node-pend#readme",
"license": "MIT",
"main": "index.js",
"name": "pend",
"scripts": {
"test": "node test.js"
},
"author": "Andrew Kelley <superjoe30@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/andrewrk/node-pend.git"
},
"scripts": {
"test": "node test.js"
},
"version": "1.2.0"
"bugs": {
"url": "https://github.com/andrewrk/node-pend/issues"
}
}
{
"_from": "process-nextick-args@~2.0.0",
"_id": "process-nextick-args@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,
"name": "process-nextick-args",
"version": "2.0.1",
"description": "process.nextTick but always with args",
"devDependencies": {
"tap": "~0.2.6"
},
"main": "index.js",
"files": [
"index.js"
],
"homepage": "https://github.com/calvinmetcalf/process-nextick-args",
"license": "MIT",
"main": "index.js",
"name": "process-nextick-args",
"scripts": {
"test": "node test.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/calvinmetcalf/process-nextick-args.git"
"url": "https://github.com/calvinmetcalf/process-nextick-args.git"
},
"scripts": {
"test": "node test.js"
"author": "",
"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",
"_id": "pump@3.0.0",
"_inBundle": false,
"_integrity": "sha1-tKIRaBW94vTh6mAjVOjHVWUQemQ=",
"_location": "/pump",
"_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"
},
"name": "pump",
"version": "3.0.0",
"repository": "git://github.com/mafintosh/pump.git",
"license": "MIT",
"description": "pipe streams together and close all of them if one of them closes",
"browser": {
"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": [
"streams",
"pipe",
"destroy",
"callback"
],
"license": "MIT",
"name": "pump",
"repository": {
"type": "git",
"url": "git://github.com/mafintosh/pump.git"
"author": "Mathias Buus Madsen <mathiasbuus@gmail.com>",
"dependencies": {
"end-of-stream": "^1.1.0",
"once": "^1.3.1"
},
"scripts": {
"test": "node test-browser.js && node test-node.js"
},
"version": "3.0.0"
}
}
{
"_from": "readable-stream@^2.3.0",
"_id": "readable-stream@2.3.7",
"_inBundle": false,
"_integrity": "sha1-Hsoc9xGu+BTAT2IlKjamL2yyO1c=",
"_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,
"name": "readable-stream",
"version": "2.3.7",
"description": "Streams3, a user-land copy of the stream library from Node.js",
"main": "readable.js",
"dependencies": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
......@@ -43,8 +12,6 @@
"string_decoder": "~1.1.1",
"util-deprecate": "~1.0.1"
},
"deprecated": false,
"description": "Streams3, a user-land copy of the stream library from Node.js",
"devDependencies": {
"assert": "^1.4.0",
"babel-polyfill": "^6.9.1",
......@@ -54,29 +21,32 @@
"tap": "^0.7.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": [
"readable",
"stream",
"pipe"
],
"license": "MIT",
"main": "readable.js",
"name": "readable-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"
},
"nyc": {
"include": [
"lib/**.js"
]
},
"repository": {
"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"
"license": "MIT"
}
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
/* eslint-disable node/no-deprecated-api */
var buffer = require('buffer')
var Buffer = buffer.Buffer
......@@ -21,8 +20,6 @@ function SafeBuffer (arg, encodingOrOffset, length) {
return Buffer(arg, encodingOrOffset, length)
}
SafeBuffer.prototype = Object.create(Buffer.prototype)
// Copy static methods from Buffer
copyProps(Buffer, SafeBuffer)
......
{
"_from": "safe-buffer@^5.1.1",
"_id": "safe-buffer@5.2.1",
"_inBundle": false,
"_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",
"name": "safe-buffer",
"description": "Safer Node.js Buffer API",
"version": "5.1.2",
"author": {
"name": "Feross Aboukhadijeh",
"email": "feross@feross.org",
"url": "https://feross.org"
"url": "http://feross.org"
},
"bugs": {
"url": "https://github.com/feross/safe-buffer/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Safer Node.js Buffer API",
"devDependencies": {
"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",
"keywords": [
"buffer",
......@@ -63,14 +26,12 @@
],
"license": "MIT",
"main": "index.js",
"name": "safe-buffer",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "git://github.com/feross/safe-buffer.git"
},
"scripts": {
"test": "standard && tape test/*.js"
},
"types": "index.d.ts",
"version": "5.2.1"
}
}
{
"_from": "safer-buffer@>= 2.1.2 < 3",
"_id": "safer-buffer@2.1.2",
"_inBundle": false,
"_integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo=",
"_location": "/safer-buffer",
"_phantomChildren": {},
"_requested": {
"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"
"name": "safer-buffer",
"version": "2.1.2",
"description": "Modern Buffer API polyfill without footguns",
"main": "safer.js",
"scripts": {
"browserify-test": "browserify --external tape tests.js > browserify-tests.js && tape browserify-tests.js",
"test": "standard && tape tests.js"
},
"_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": {
"name": "Nikita Skovoroda",
"email": "chalkerx@gmail.com",
"url": "https://github.com/ChALkeR"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ChALkeR/safer-buffer.git"
},
"bugs": {
"url": "https://github.com/ChALkeR/safer-buffer/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Modern Buffer API polyfill without footguns",
"devDependencies": {
"standard": "^11.0.1",
"tape": "^4.9.0"
......@@ -45,18 +30,5 @@
"tests.js",
"dangerous.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",
"_id": "streamifier@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,
"name": "streamifier",
"version": "0.1.1",
"description": "Converts a Buffer/String into a readable stream",
"engines": {
"node": ">=0.10"
},
"homepage": "https://github.com/gagle/node-streamifier#readme",
"keywords": [
"string",
"buffer",
"readable",
"stream"
],
"license": "MIT",
"main": "lib",
"name": "streamifier",
"repository": {
"type": "git",
"url": "git://github.com/gagle/node-streamifier.git"
"author": "Gabriel Llamas <gagle@outlook.com>",
"repository": "git://github.com/gagle/node-streamifier.git",
"engines": {
"node": ">=0.10"
},
"version": "0.1.1"
}
"license": "MIT",
"main": "lib"
}
\ No newline at end of file
{
"_from": "string_decoder@~1.1.1",
"_id": "string_decoder@1.1.1",
"_inBundle": false,
"_integrity": "sha1-nPFhG6YmhdcDCunkujQUnDrwP8g=",
"_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,
"name": "string_decoder",
"version": "1.1.1",
"description": "The string_decoder module from Node core",
"main": "lib/string_decoder.js",
"dependencies": {
"safe-buffer": "~5.1.0"
},
"deprecated": false,
"description": "The string_decoder module from Node core",
"devDependencies": {
"babel-polyfill": "^6.23.0",
"core-util-is": "^1.0.2",
"inherits": "^2.0.3",
"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",
"keywords": [
"string",
......@@ -44,16 +27,5 @@
"browser",
"browserify"
],
"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"
"license": "MIT"
}
{
"_from": "tar-stream@^1.5.2",
"_id": "tar-stream@1.6.2",
"_inBundle": false,
"_integrity": "sha1-jqVdqzeXIlPZqa+Q/c1VmuQ1xVU=",
"_location": "/tar-stream",
"_phantomChildren": {},
"_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"
"name": "tar-stream",
"version": "1.6.2",
"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.",
"author": "Mathias Buus <mathiasbuus@gmail.com>",
"engines": {
"node": ">= 0.8.0"
},
"bundleDependencies": false,
"dependencies": {
"bl": "^1.0.0",
"buffer-alloc": "^1.2.0",
......@@ -39,24 +15,15 @@
"to-buffer": "^1.1.1",
"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": {
"concat-stream": "^1.6.2",
"standard": "^11.0.1",
"tape": "^4.9.0"
},
"directories": {
"test": "test"
},
"engines": {
"node": ">= 0.8.0"
"scripts": {
"test": "standard && tape test/extract.js test/pack.js",
"test-all": "standard && tape test/*.js"
},
"files": [
"*.js",
"LICENSE"
],
"homepage": "https://github.com/mafintosh/tar-stream",
"keywords": [
"tar",
"tarball",
......@@ -73,16 +40,21 @@
"extract",
"modify"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/mafintosh/tar-stream/issues"
},
"homepage": "https://github.com/mafintosh/tar-stream",
"main": "index.js",
"name": "tar-stream",
"files": [
"*.js",
"LICENSE"
],
"directories": {
"test": "test"
},
"license": "MIT",
"repository": {
"type": "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",
"_id": "to-buffer@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,
"name": "to-buffer",
"version": "1.1.1",
"description": "Pass in a string, get a buffer back. Pass in a buffer, get the same buffer back",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"standard": "^6.0.5",
"tape": "^4.4.0"
},
"homepage": "https://github.com/mafintosh/to-buffer",
"license": "MIT",
"main": "index.js",
"name": "to-buffer",
"scripts": {
"test": "standard && tape test.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mafintosh/to-buffer.git"
"url": "https://github.com/mafintosh/to-buffer.git"
},
"scripts": {
"test": "standard && tape test.js"
"author": "Mathias Buus (@mafintosh)",
"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",
"_id": "util-deprecate@1.0.2",
"_inBundle": false,
"_integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
"_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/"
},
"name": "util-deprecate",
"version": "1.0.2",
"description": "The Node.js `util.deprecate()` function with browser support",
"main": "node.js",
"browser": "browser.js",
"bugs": {
"url": "https://github.com/TooTallNate/util-deprecate/issues"
"scripts": {
"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": [
"util",
"deprecate",
......@@ -42,15 +18,10 @@
"browser",
"node"
],
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
"license": "MIT",
"main": "node.js",
"name": "util-deprecate",
"repository": {
"type": "git",
"url": "git://github.com/TooTallNate/util-deprecate.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"bugs": {
"url": "https://github.com/TooTallNate/util-deprecate/issues"
},
"version": "1.0.2"
"homepage": "https://github.com/TooTallNate/util-deprecate"
}
{
"_from": "wrappy@1",
"_id": "wrappy@1.0.2",
"_inBundle": false,
"_integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
"_location": "/wrappy",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "wrappy@1",
"name": "wrappy",
"escapedName": "wrappy",
"rawSpec": "1",
"saveSpec": null,
"fetchSpec": "1"
},
"_requiredBy": [
"/once"
"name": "wrappy",
"version": "1.0.2",
"description": "Callback wrapping utility",
"main": "wrappy.js",
"files": [
"wrappy.js"
],
"_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",
"_shasum": "b5243d8f3ec1aa35f1364605bc0d1036e30ab69f",
"_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"
"directories": {
"test": "test"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Callback wrapping utility",
"devDependencies": {
"tap": "^2.3.1"
},
"directories": {
"test": "test"
"scripts": {
"test": "tap --coverage test/*.js"
},
"files": [
"wrappy.js"
],
"homepage": "https://github.com/npm/wrappy",
"license": "ISC",
"main": "wrappy.js",
"name": "wrappy",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/wrappy.git"
"url": "https://github.com/npm/wrappy"
},
"scripts": {
"test": "tap --coverage test/*.js"
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"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",
"_id": "xtend@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,
"name": "xtend",
"version": "4.0.2",
"description": "extend like a boss",
"devDependencies": {
"tape": "~1.1.0"
},
"engines": {
"node": ">=0.4"
},
"homepage": "https://github.com/Raynos/xtend",
"keywords": [
"extend",
"merge",
......@@ -57,16 +10,30 @@
"object",
"array"
],
"license": "MIT",
"author": "Raynos <raynos2@gmail.com>",
"repository": "git://github.com/Raynos/xtend.git",
"main": "immutable",
"name": "xtend",
"repository": {
"type": "git",
"url": "git://github.com/Raynos/xtend.git"
},
"scripts": {
"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": {
"files": "test.js",
"browsers": [
......@@ -82,5 +49,7 @@
"iphone/6.0..latest"
]
},
"version": "4.0.2"
"engines": {
"node": ">=0.4"
}
}
{
"_from": "yauzl@^2.7.0",
"_id": "yauzl@2.10.0",
"_inBundle": false,
"_integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=",
"_location": "/yauzl",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "yauzl@^2.7.0",
"name": "yauzl",
"escapedName": "yauzl",
"rawSpec": "^2.7.0",
"saveSpec": null,
"fetchSpec": "^2.7.0"
"name": "yauzl",
"version": "2.10.0",
"description": "yet another unzip library for node",
"main": "index.js",
"scripts": {
"test": "node test/test.js",
"test-cov": "istanbul cover test/test.js",
"test-travis": "istanbul cover --report lcovonly test/test.js"
},
"_requiredBy": [
"/compressing"
],
"_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"
"repository": {
"type": "git",
"url": "https://github.com/thejoshwolfe/yauzl.git"
},
"keywords": [
"unzip",
"zip",
"stream",
"archive",
"file"
],
"author": "Josh Wolfe <thejoshwolfe@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/thejoshwolfe/yauzl/issues"
},
"bundleDependencies": false,
"homepage": "https://github.com/thejoshwolfe/yauzl",
"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": {
"bl": "~1.0.0",
"istanbul": "~0.3.4",
......@@ -43,26 +36,5 @@
},
"files": [
"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",
"_id": "yazl@2.5.1",
"_inBundle": false,
"_integrity": "sha1-o9ZdPdZZpbCTeFDoYJ8i//orXDU=",
"_location": "/yazl",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "yazl@^2.4.2",
"name": "yazl",
"escapedName": "yazl",
"rawSpec": "^2.4.2",
"saveSpec": null,
"fetchSpec": "^2.4.2"
"name": "yazl",
"version": "2.5.1",
"description": "yet another zip library for node",
"main": "index.js",
"scripts": {
"test": "node test/test.js",
"test-cov": "istanbul cover test/test.js",
"test-travis": "istanbul cover --report lcovonly test/test.js"
},
"_requiredBy": [
"/compressing"
],
"_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"
"repository": {
"type": "git",
"url": "https://github.com/thejoshwolfe/yazl.git"
},
"keywords": [
"zip",
"stream",
"archive",
"file"
],
"author": "Josh Wolfe <thejoshwolfe@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/thejoshwolfe/yazl/issues"
},
"bundleDependencies": false,
"homepage": "https://github.com/thejoshwolfe/yazl",
"dependencies": {
"buffer-crc32": "~0.2.3"
},
"deprecated": false,
"description": "yet another zip library for node",
"devDependencies": {
"bl": "~0.9.3",
"istanbul": "^0.4.5",
......@@ -42,25 +34,5 @@
},
"files": [
"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