node_modules, clean up package.json
This commit is contained in:
parent
c9f5ac8e76
commit
5f466137ad
@ -43,7 +43,6 @@ const debug = require("gulp-debug");
|
||||
const glob = require("glob");
|
||||
const jsonTransform = require("gulp-json-transform");
|
||||
const fs = require("fs");
|
||||
const del = require("del");
|
||||
const through = require("through2");
|
||||
const File = require("vinyl");
|
||||
const Stream = require("stream").Stream;
|
||||
@ -154,10 +153,6 @@ function concatStreams (/*streams...*/) {
|
||||
}
|
||||
|
||||
|
||||
gulp.task("clean", function () {
|
||||
return del("build/ext");
|
||||
});
|
||||
|
||||
|
||||
gulp.task("dist-prod", ["clean", "compile-prod"], function () {
|
||||
return vfs.src(paths.dist, {base: ".", stripBOM: false})
|
||||
|
15
node_modules/abbrev/LICENSE
generated
vendored
15
node_modules/abbrev/LICENSE
generated
vendored
@ -1,15 +0,0 @@
|
||||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
23
node_modules/abbrev/README.md
generated
vendored
23
node_modules/abbrev/README.md
generated
vendored
@ -1,23 +0,0 @@
|
||||
# abbrev-js
|
||||
|
||||
Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev).
|
||||
|
||||
Usage:
|
||||
|
||||
var abbrev = require("abbrev");
|
||||
abbrev("foo", "fool", "folding", "flop");
|
||||
|
||||
// returns:
|
||||
{ fl: 'flop'
|
||||
, flo: 'flop'
|
||||
, flop: 'flop'
|
||||
, fol: 'folding'
|
||||
, fold: 'folding'
|
||||
, foldi: 'folding'
|
||||
, foldin: 'folding'
|
||||
, folding: 'folding'
|
||||
, foo: 'foo'
|
||||
, fool: 'fool'
|
||||
}
|
||||
|
||||
This is handy for command-line scripts, or other cases where you want to be able to accept shorthands.
|
62
node_modules/abbrev/abbrev.js
generated
vendored
62
node_modules/abbrev/abbrev.js
generated
vendored
@ -1,62 +0,0 @@
|
||||
|
||||
module.exports = exports = abbrev.abbrev = abbrev
|
||||
|
||||
abbrev.monkeyPatch = monkeyPatch
|
||||
|
||||
function monkeyPatch () {
|
||||
Object.defineProperty(Array.prototype, 'abbrev', {
|
||||
value: function () { return abbrev(this) },
|
||||
enumerable: false, configurable: true, writable: true
|
||||
})
|
||||
|
||||
Object.defineProperty(Object.prototype, 'abbrev', {
|
||||
value: function () { return abbrev(Object.keys(this)) },
|
||||
enumerable: false, configurable: true, writable: true
|
||||
})
|
||||
}
|
||||
|
||||
function abbrev (list) {
|
||||
if (arguments.length !== 1 || !Array.isArray(list)) {
|
||||
list = Array.prototype.slice.call(arguments, 0)
|
||||
}
|
||||
for (var i = 0, l = list.length, args = [] ; i < l ; i ++) {
|
||||
args[i] = typeof list[i] === "string" ? list[i] : String(list[i])
|
||||
}
|
||||
|
||||
// sort them lexicographically, so that they're next to their nearest kin
|
||||
args = args.sort(lexSort)
|
||||
|
||||
// walk through each, seeing how much it has in common with the next and previous
|
||||
var abbrevs = {}
|
||||
, prev = ""
|
||||
for (var i = 0, l = args.length ; i < l ; i ++) {
|
||||
var current = args[i]
|
||||
, next = args[i + 1] || ""
|
||||
, nextMatches = true
|
||||
, prevMatches = true
|
||||
if (current === next) continue
|
||||
for (var j = 0, cl = current.length ; j < cl ; j ++) {
|
||||
var curChar = current.charAt(j)
|
||||
nextMatches = nextMatches && curChar === next.charAt(j)
|
||||
prevMatches = prevMatches && curChar === prev.charAt(j)
|
||||
if (!nextMatches && !prevMatches) {
|
||||
j ++
|
||||
break
|
||||
}
|
||||
}
|
||||
prev = current
|
||||
if (j === cl) {
|
||||
abbrevs[current] = current
|
||||
continue
|
||||
}
|
||||
for (var a = current.substr(0, j) ; j <= cl ; j ++) {
|
||||
abbrevs[a] = current
|
||||
a += current.charAt(j)
|
||||
}
|
||||
}
|
||||
return abbrevs
|
||||
}
|
||||
|
||||
function lexSort (a, b) {
|
||||
return a === b ? 0 : a > b ? 1 : -1
|
||||
}
|
18
node_modules/abbrev/package.json
generated
vendored
18
node_modules/abbrev/package.json
generated
vendored
@ -1,18 +0,0 @@
|
||||
{
|
||||
"name": "abbrev",
|
||||
"version": "1.0.9",
|
||||
"description": "Like ruby's abbrev module, but in js",
|
||||
"author": "Isaac Z. Schlueter <i@izs.me>",
|
||||
"main": "abbrev.js",
|
||||
"scripts": {
|
||||
"test": "tap test.js --cov"
|
||||
},
|
||||
"repository": "http://github.com/isaacs/abbrev-js",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"tap": "^5.7.2"
|
||||
},
|
||||
"files": [
|
||||
"abbrev.js"
|
||||
]
|
||||
}
|
64
node_modules/adm-zip/README.md
generated
vendored
64
node_modules/adm-zip/README.md
generated
vendored
@ -1,64 +0,0 @@
|
||||
# ADM-ZIP for NodeJS
|
||||
|
||||
ADM-ZIP is a pure JavaScript implementation for zip data compression for [NodeJS](http://nodejs.org/).
|
||||
|
||||
# Installation
|
||||
|
||||
With [npm](http://npmjs.org) do:
|
||||
|
||||
$ npm install adm-zip
|
||||
|
||||
## What is it good for?
|
||||
The library allows you to:
|
||||
|
||||
* decompress zip files directly to disk or in memory buffers
|
||||
* compress files and store them to disk in .zip format or in compressed buffers
|
||||
* update content of/add new/delete files from an existing .zip
|
||||
|
||||
# Dependencies
|
||||
There are no other nodeJS libraries that ADM-ZIP is dependent of
|
||||
|
||||
# Examples
|
||||
|
||||
## Basic usage
|
||||
```javascript
|
||||
|
||||
var AdmZip = require('adm-zip');
|
||||
|
||||
// reading archives
|
||||
var zip = new AdmZip("./my_file.zip");
|
||||
var zipEntries = zip.getEntries(); // an array of ZipEntry records
|
||||
|
||||
zipEntries.forEach(function(zipEntry) {
|
||||
console.log(zipEntry.toString()); // outputs zip entries information
|
||||
if (zipEntry.entryName == "my_file.txt") {
|
||||
console.log(zipEntry.data.toString('utf8'));
|
||||
}
|
||||
});
|
||||
// outputs the content of some_folder/my_file.txt
|
||||
console.log(zip.readAsText("some_folder/my_file.txt"));
|
||||
// extracts the specified file to the specified location
|
||||
zip.extractEntryTo(/*entry name*/"some_folder/my_file.txt", /*target path*/"/home/me/tempfolder", /*maintainEntryPath*/false, /*overwrite*/true);
|
||||
// extracts everything
|
||||
zip.extractAllTo(/*target path*/"/home/me/zipcontent/", /*overwrite*/true);
|
||||
|
||||
|
||||
// creating archives
|
||||
var zip = new AdmZip();
|
||||
|
||||
// add file directly
|
||||
zip.addFile("test.txt", new Buffer("inner content of the file"), "entry comment goes here");
|
||||
// add local file
|
||||
zip.addLocalFile("/home/me/some_picture.png");
|
||||
// get everything as a buffer
|
||||
var willSendthis = zip.toBuffer();
|
||||
// or write everything to disk
|
||||
zip.writeZip(/*target file name*/"/home/me/files.zip");
|
||||
|
||||
|
||||
// ... more examples in the wiki
|
||||
```
|
||||
|
||||
For more detailed information please check out the [wiki](https://github.com/cthackers/adm-zip/wiki).
|
||||
|
||||
[![build status](https://secure.travis-ci.org/cthackers/adm-zip.png)](http://travis-ci.org/cthackers/adm-zip)
|
475
node_modules/adm-zip/adm-zip.js
generated
vendored
475
node_modules/adm-zip/adm-zip.js
generated
vendored
@ -1,475 +0,0 @@
|
||||
var fs = require("fs"),
|
||||
pth = require("path");
|
||||
|
||||
fs.existsSync = fs.existsSync || pth.existsSync;
|
||||
|
||||
var ZipEntry = require("./zipEntry"),
|
||||
ZipFile = require("./zipFile"),
|
||||
Utils = require("./util");
|
||||
|
||||
module.exports = function(/*String*/input) {
|
||||
var _zip = undefined,
|
||||
_filename = "";
|
||||
|
||||
if (input && typeof input === "string") { // load zip file
|
||||
if (fs.existsSync(input)) {
|
||||
_filename = input;
|
||||
_zip = new ZipFile(input, Utils.Constants.FILE);
|
||||
} else {
|
||||
throw Utils.Errors.INVALID_FILENAME;
|
||||
}
|
||||
} else if(input && Buffer.isBuffer(input)) { // load buffer
|
||||
_zip = new ZipFile(input, Utils.Constants.BUFFER);
|
||||
} else { // create new zip file
|
||||
_zip = new ZipFile(null, Utils.Constants.NONE);
|
||||
}
|
||||
|
||||
function getEntry(/*Object*/entry) {
|
||||
if (entry && _zip) {
|
||||
var item;
|
||||
// If entry was given as a file name
|
||||
if (typeof entry === "string")
|
||||
item = _zip.getEntry(entry);
|
||||
// if entry was given as a ZipEntry object
|
||||
if (typeof entry === "object" && entry.entryName != undefined && entry.header != undefined)
|
||||
item = _zip.getEntry(entry.entryName);
|
||||
|
||||
if (item) {
|
||||
return item;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
/**
|
||||
* Extracts the given entry from the archive and returns the content as a Buffer object
|
||||
* @param entry ZipEntry object or String with the full path of the entry
|
||||
*
|
||||
* @return Buffer or Null in case of error
|
||||
*/
|
||||
readFile : function(/*Object*/entry) {
|
||||
var item = getEntry(entry);
|
||||
return item && item.getData() || null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Asynchronous readFile
|
||||
* @param entry ZipEntry object or String with the full path of the entry
|
||||
* @param callback
|
||||
*
|
||||
* @return Buffer or Null in case of error
|
||||
*/
|
||||
readFileAsync : function(/*Object*/entry, /*Function*/callback) {
|
||||
var item = getEntry(entry);
|
||||
if (item) {
|
||||
item.getDataAsync(callback);
|
||||
} else {
|
||||
callback(null,"getEntry failed for:" + entry)
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Extracts the given entry from the archive and returns the content as plain text in the given encoding
|
||||
* @param entry ZipEntry object or String with the full path of the entry
|
||||
* @param encoding Optional. If no encoding is specified utf8 is used
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
readAsText : function(/*Object*/entry, /*String - Optional*/encoding) {
|
||||
var item = getEntry(entry);
|
||||
if (item) {
|
||||
var data = item.getData();
|
||||
if (data && data.length) {
|
||||
return data.toString(encoding || "utf8");
|
||||
}
|
||||
}
|
||||
return "";
|
||||
},
|
||||
|
||||
/**
|
||||
* Asynchronous readAsText
|
||||
* @param entry ZipEntry object or String with the full path of the entry
|
||||
* @param callback
|
||||
* @param encoding Optional. If no encoding is specified utf8 is used
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
readAsTextAsync : function(/*Object*/entry, /*Function*/callback, /*String - Optional*/encoding) {
|
||||
var item = getEntry(entry);
|
||||
if (item) {
|
||||
item.getDataAsync(function(data) {
|
||||
if (data && data.length) {
|
||||
callback(data.toString(encoding || "utf8"));
|
||||
} else {
|
||||
callback("");
|
||||
}
|
||||
})
|
||||
} else {
|
||||
callback("");
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Remove the entry from the file or the entry and all it's nested directories and files if the given entry is a directory
|
||||
*
|
||||
* @param entry
|
||||
*/
|
||||
deleteFile : function(/*Object*/entry) { // @TODO: test deleteFile
|
||||
var item = getEntry(entry);
|
||||
if (item) {
|
||||
_zip.deleteEntry(item.entryName);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds a comment to the zip. The zip must be rewritten after adding the comment.
|
||||
*
|
||||
* @param comment
|
||||
*/
|
||||
addZipComment : function(/*String*/comment) { // @TODO: test addZipComment
|
||||
_zip.comment = comment;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the zip comment
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
getZipComment : function() {
|
||||
return _zip.comment || '';
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds a comment to a specified zipEntry. The zip must be rewritten after adding the comment
|
||||
* The comment cannot exceed 65535 characters in length
|
||||
*
|
||||
* @param entry
|
||||
* @param comment
|
||||
*/
|
||||
addZipEntryComment : function(/*Object*/entry,/*String*/comment) {
|
||||
var item = getEntry(entry);
|
||||
if (item) {
|
||||
item.comment = comment;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the comment of the specified entry
|
||||
*
|
||||
* @param entry
|
||||
* @return String
|
||||
*/
|
||||
getZipEntryComment : function(/*Object*/entry) {
|
||||
var item = getEntry(entry);
|
||||
if (item) {
|
||||
return item.comment || '';
|
||||
}
|
||||
return ''
|
||||
},
|
||||
|
||||
/**
|
||||
* Updates the content of an existing entry inside the archive. The zip must be rewritten after updating the content
|
||||
*
|
||||
* @param entry
|
||||
* @param content
|
||||
*/
|
||||
updateFile : function(/*Object*/entry, /*Buffer*/content) {
|
||||
var item = getEntry(entry);
|
||||
if (item) {
|
||||
item.setData(content);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds a file from the disk to the archive
|
||||
*
|
||||
* @param localPath
|
||||
*/
|
||||
addLocalFile : function(/*String*/localPath, /*String*/zipPath, /*String*/zipName) {
|
||||
if (fs.existsSync(localPath)) {
|
||||
if(zipPath){
|
||||
zipPath=zipPath.split("\\").join("/");
|
||||
if(zipPath.charAt(zipPath.length - 1) != "/"){
|
||||
zipPath += "/";
|
||||
}
|
||||
}else{
|
||||
zipPath="";
|
||||
}
|
||||
var p = localPath.split("\\").join("/").split("/").pop();
|
||||
|
||||
if(zipName){
|
||||
this.addFile(zipPath+zipName, fs.readFileSync(localPath), "", 0)
|
||||
}else{
|
||||
this.addFile(zipPath+p, fs.readFileSync(localPath), "", 0)
|
||||
}
|
||||
} else {
|
||||
throw Utils.Errors.FILE_NOT_FOUND.replace("%s", localPath);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds a local directory and all its nested files and directories to the archive
|
||||
*
|
||||
* @param localPath
|
||||
* @param zipPath optional path inside zip
|
||||
* @param filter optional RegExp or Function if files match will
|
||||
* be included.
|
||||
*/
|
||||
addLocalFolder : function(/*String*/localPath, /*String*/zipPath, /*RegExp|Function*/filter) {
|
||||
if (filter === undefined) {
|
||||
filter = function() { return true; };
|
||||
} else if (filter instanceof RegExp) {
|
||||
filter = function(filter) {
|
||||
return function(filename) {
|
||||
return filter.test(filename);
|
||||
}
|
||||
}(filter);
|
||||
}
|
||||
|
||||
if(zipPath){
|
||||
zipPath=zipPath.split("\\").join("/");
|
||||
if(zipPath.charAt(zipPath.length - 1) != "/"){
|
||||
zipPath += "/";
|
||||
}
|
||||
}else{
|
||||
zipPath="";
|
||||
}
|
||||
localPath = localPath.split("\\").join("/"); //windows fix
|
||||
localPath = pth.normalize(localPath);
|
||||
if (localPath.charAt(localPath.length - 1) != "/")
|
||||
localPath += "/";
|
||||
|
||||
if (fs.existsSync(localPath)) {
|
||||
|
||||
var items = Utils.findFiles(localPath),
|
||||
self = this;
|
||||
|
||||
if (items.length) {
|
||||
items.forEach(function(path) {
|
||||
var p = path.split("\\").join("/").replace( new RegExp(localPath, 'i'), ""); //windows fix
|
||||
if (filter(p)) {
|
||||
if (p.charAt(p.length - 1) !== "/") {
|
||||
self.addFile(zipPath+p, fs.readFileSync(path), "", 0)
|
||||
} else {
|
||||
self.addFile(zipPath+p, new Buffer(0), "", 0)
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
throw Utils.Errors.FILE_NOT_FOUND.replace("%s", localPath);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Allows you to create a entry (file or directory) in the zip file.
|
||||
* If you want to create a directory the entryName must end in / and a null buffer should be provided.
|
||||
* Comment and attributes are optional
|
||||
*
|
||||
* @param entryName
|
||||
* @param content
|
||||
* @param comment
|
||||
* @param attr
|
||||
*/
|
||||
addFile : function(/*String*/entryName, /*Buffer*/content, /*String*/comment, /*Number*/attr) {
|
||||
var entry = new ZipEntry();
|
||||
entry.entryName = entryName;
|
||||
entry.comment = comment || "";
|
||||
entry.attr = attr || 438; //0666;
|
||||
if (entry.isDirectory && content.length) {
|
||||
// throw Utils.Errors.DIRECTORY_CONTENT_ERROR;
|
||||
}
|
||||
entry.setData(content);
|
||||
_zip.setEntry(entry);
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns an array of ZipEntry objects representing the files and folders inside the archive
|
||||
*
|
||||
* @return Array
|
||||
*/
|
||||
getEntries : function() {
|
||||
if (_zip) {
|
||||
return _zip.entries;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns a ZipEntry object representing the file or folder specified by ``name``.
|
||||
*
|
||||
* @param name
|
||||
* @return ZipEntry
|
||||
*/
|
||||
getEntry : function(/*String*/name) {
|
||||
return getEntry(name);
|
||||
},
|
||||
|
||||
/**
|
||||
* Extracts the given entry to the given targetPath
|
||||
* If the entry is a directory inside the archive, the entire directory and it's subdirectories will be extracted
|
||||
*
|
||||
* @param entry ZipEntry object or String with the full path of the entry
|
||||
* @param targetPath Target folder where to write the file
|
||||
* @param maintainEntryPath If maintainEntryPath is true and the entry is inside a folder, the entry folder
|
||||
* will be created in targetPath as well. Default is TRUE
|
||||
* @param overwrite If the file already exists at the target path, the file will be overwriten if this is true.
|
||||
* Default is FALSE
|
||||
*
|
||||
* @return Boolean
|
||||
*/
|
||||
extractEntryTo : function(/*Object*/entry, /*String*/targetPath, /*Boolean*/maintainEntryPath, /*Boolean*/overwrite) {
|
||||
overwrite = overwrite || false;
|
||||
maintainEntryPath = typeof maintainEntryPath == "undefined" ? true : maintainEntryPath;
|
||||
|
||||
var item = getEntry(entry);
|
||||
if (!item) {
|
||||
throw Utils.Errors.NO_ENTRY;
|
||||
}
|
||||
|
||||
var target = pth.resolve(targetPath, maintainEntryPath ? item.entryName : pth.basename(item.entryName));
|
||||
|
||||
if (item.isDirectory) {
|
||||
target = pth.resolve(target, "..");
|
||||
var children = _zip.getEntryChildren(item);
|
||||
children.forEach(function(child) {
|
||||
if (child.isDirectory) return;
|
||||
var content = child.getData();
|
||||
if (!content) {
|
||||
throw Utils.Errors.CANT_EXTRACT_FILE;
|
||||
}
|
||||
Utils.writeFileTo(pth.resolve(targetPath, maintainEntryPath ? child.entryName : child.entryName.substr(item.entryName.length)), content, overwrite);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
var content = item.getData();
|
||||
if (!content) throw Utils.Errors.CANT_EXTRACT_FILE;
|
||||
|
||||
if (fs.existsSync(target) && !overwrite) {
|
||||
throw Utils.Errors.CANT_OVERRIDE;
|
||||
}
|
||||
Utils.writeFileTo(target, content, overwrite);
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Extracts the entire archive to the given location
|
||||
*
|
||||
* @param targetPath Target location
|
||||
* @param overwrite If the file already exists at the target path, the file will be overwriten if this is true.
|
||||
* Default is FALSE
|
||||
*/
|
||||
extractAllTo : function(/*String*/targetPath, /*Boolean*/overwrite) {
|
||||
overwrite = overwrite || false;
|
||||
if (!_zip) {
|
||||
throw Utils.Errors.NO_ZIP;
|
||||
}
|
||||
|
||||
_zip.entries.forEach(function(entry) {
|
||||
if (entry.isDirectory) {
|
||||
Utils.makeDir(pth.resolve(targetPath, entry.entryName.toString()));
|
||||
return;
|
||||
}
|
||||
var content = entry.getData();
|
||||
if (!content) {
|
||||
throw Utils.Errors.CANT_EXTRACT_FILE + "2";
|
||||
}
|
||||
Utils.writeFileTo(pth.resolve(targetPath, entry.entryName.toString()), content, overwrite);
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Asynchronous extractAllTo
|
||||
*
|
||||
* @param targetPath Target location
|
||||
* @param overwrite If the file already exists at the target path, the file will be overwriten if this is true.
|
||||
* Default is FALSE
|
||||
* @param callback
|
||||
*/
|
||||
extractAllToAsync : function(/*String*/targetPath, /*Boolean*/overwrite, /*Function*/callback) {
|
||||
overwrite = overwrite || false;
|
||||
if (!_zip) {
|
||||
callback(new Error(Utils.Errors.NO_ZIP));
|
||||
return;
|
||||
}
|
||||
|
||||
var entries = _zip.entries;
|
||||
var i = entries.length;
|
||||
entries.forEach(function(entry) {
|
||||
if(i <= 0) return; // Had an error already
|
||||
|
||||
if (entry.isDirectory) {
|
||||
Utils.makeDir(pth.resolve(targetPath, entry.entryName.toString()));
|
||||
if(--i == 0)
|
||||
callback(undefined);
|
||||
return;
|
||||
}
|
||||
entry.getDataAsync(function(content) {
|
||||
if(i <= 0) return;
|
||||
if (!content) {
|
||||
i = 0;
|
||||
callback(new Error(Utils.Errors.CANT_EXTRACT_FILE + "2"));
|
||||
return;
|
||||
}
|
||||
Utils.writeFileToAsync(pth.resolve(targetPath, entry.entryName.toString()), content, overwrite, function(succ) {
|
||||
if(i <= 0) return;
|
||||
|
||||
if(!succ) {
|
||||
i = 0;
|
||||
callback(new Error('Unable to write'));
|
||||
return;
|
||||
}
|
||||
|
||||
if(--i == 0)
|
||||
callback(undefined);
|
||||
});
|
||||
|
||||
});
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* Writes the newly created zip file to disk at the specified location or if a zip was opened and no ``targetFileName`` is provided, it will overwrite the opened zip
|
||||
*
|
||||
* @param targetFileName
|
||||
* @param callback
|
||||
*/
|
||||
writeZip : function(/*String*/targetFileName, /*Function*/callback) {
|
||||
if (arguments.length == 1) {
|
||||
if (typeof targetFileName == "function") {
|
||||
callback = targetFileName;
|
||||
targetFileName = "";
|
||||
}
|
||||
}
|
||||
|
||||
if (!targetFileName && _filename) {
|
||||
targetFileName = _filename;
|
||||
}
|
||||
if (!targetFileName) return;
|
||||
|
||||
var zipData = _zip.compressToBuffer();
|
||||
if (zipData) {
|
||||
var ok = Utils.writeFileTo(targetFileName, zipData, true);
|
||||
if (typeof callback == 'function') callback(!ok? new Error("failed"): null, "");
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the content of the entire zip file as a Buffer object
|
||||
*
|
||||
* @return Buffer
|
||||
*/
|
||||
toBuffer : function(/*Function*/onSuccess,/*Function*/onFail,/*Function*/onItemStart,/*Function*/onItemEnd) {
|
||||
this.valueOf = 2;
|
||||
if (typeof onSuccess == "function") {
|
||||
_zip.toAsyncBuffer(onSuccess,onFail,onItemStart,onItemEnd);
|
||||
return null;
|
||||
}
|
||||
return _zip.compressToBuffer()
|
||||
}
|
||||
}
|
||||
};
|
261
node_modules/adm-zip/headers/entryHeader.js
generated
vendored
261
node_modules/adm-zip/headers/entryHeader.js
generated
vendored
@ -1,261 +0,0 @@
|
||||
var Utils = require("../util"),
|
||||
Constants = Utils.Constants;
|
||||
|
||||
/* The central directory file header */
|
||||
module.exports = function () {
|
||||
var _verMade = 0x0A,
|
||||
_version = 0x0A,
|
||||
_flags = 0,
|
||||
_method = 0,
|
||||
_time = 0,
|
||||
_crc = 0,
|
||||
_compressedSize = 0,
|
||||
_size = 0,
|
||||
_fnameLen = 0,
|
||||
_extraLen = 0,
|
||||
|
||||
_comLen = 0,
|
||||
_diskStart = 0,
|
||||
_inattr = 0,
|
||||
_attr = 0,
|
||||
_offset = 0;
|
||||
|
||||
var _dataHeader = {};
|
||||
|
||||
function setTime(val) {
|
||||
var val = new Date(val);
|
||||
_time = (val.getFullYear() - 1980 & 0x7f) << 25 // b09-16 years from 1980
|
||||
| (val.getMonth() + 1) << 21 // b05-08 month
|
||||
| val.getDay() << 16 // b00-04 hour
|
||||
|
||||
// 2 bytes time
|
||||
| val.getHours() << 11 // b11-15 hour
|
||||
| val.getMinutes() << 5 // b05-10 minute
|
||||
| val.getSeconds() >> 1; // b00-04 seconds divided by 2
|
||||
}
|
||||
|
||||
setTime(+new Date());
|
||||
|
||||
return {
|
||||
get made () { return _verMade; },
|
||||
set made (val) { _verMade = val; },
|
||||
|
||||
get version () { return _version; },
|
||||
set version (val) { _version = val },
|
||||
|
||||
get flags () { return _flags },
|
||||
set flags (val) { _flags = val; },
|
||||
|
||||
get method () { return _method; },
|
||||
set method (val) { _method = val; },
|
||||
|
||||
get time () { return new Date(
|
||||
((_time >> 25) & 0x7f) + 1980,
|
||||
((_time >> 21) & 0x0f) - 1,
|
||||
(_time >> 16) & 0x1f,
|
||||
(_time >> 11) & 0x1f,
|
||||
(_time >> 5) & 0x3f,
|
||||
(_time & 0x1f) << 1
|
||||
);
|
||||
},
|
||||
set time (val) {
|
||||
setTime(val);
|
||||
},
|
||||
|
||||
get crc () { return _crc; },
|
||||
set crc (val) { _crc = val; },
|
||||
|
||||
get compressedSize () { return _compressedSize; },
|
||||
set compressedSize (val) { _compressedSize = val; },
|
||||
|
||||
get size () { return _size; },
|
||||
set size (val) { _size = val; },
|
||||
|
||||
get fileNameLength () { return _fnameLen; },
|
||||
set fileNameLength (val) { _fnameLen = val; },
|
||||
|
||||
get extraLength () { return _extraLen },
|
||||
set extraLength (val) { _extraLen = val; },
|
||||
|
||||
get commentLength () { return _comLen },
|
||||
set commentLength (val) { _comLen = val },
|
||||
|
||||
get diskNumStart () { return _diskStart },
|
||||
set diskNumStart (val) { _diskStart = val },
|
||||
|
||||
get inAttr () { return _inattr },
|
||||
set inAttr (val) { _inattr = val },
|
||||
|
||||
get attr () { return _attr },
|
||||
set attr (val) { _attr = val },
|
||||
|
||||
get offset () { return _offset },
|
||||
set offset (val) { _offset = val },
|
||||
|
||||
get encripted () { return (_flags & 1) == 1 },
|
||||
|
||||
get entryHeaderSize () {
|
||||
return Constants.CENHDR + _fnameLen + _extraLen + _comLen;
|
||||
},
|
||||
|
||||
get realDataOffset () {
|
||||
return _offset + Constants.LOCHDR + _dataHeader.fnameLen + _dataHeader.extraLen;
|
||||
},
|
||||
|
||||
get dataHeader () {
|
||||
return _dataHeader;
|
||||
},
|
||||
|
||||
loadDataHeaderFromBinary : function(/*Buffer*/input) {
|
||||
var data = input.slice(_offset, _offset + Constants.LOCHDR);
|
||||
// 30 bytes and should start with "PK\003\004"
|
||||
if (data.readUInt32LE(0) != Constants.LOCSIG) {
|
||||
throw Utils.Errors.INVALID_LOC;
|
||||
}
|
||||
_dataHeader = {
|
||||
// version needed to extract
|
||||
version : data.readUInt16LE(Constants.LOCVER),
|
||||
// general purpose bit flag
|
||||
flags : data.readUInt16LE(Constants.LOCFLG),
|
||||
// compression method
|
||||
method : data.readUInt16LE(Constants.LOCHOW),
|
||||
// modification time (2 bytes time, 2 bytes date)
|
||||
time : data.readUInt32LE(Constants.LOCTIM),
|
||||
// uncompressed file crc-32 value
|
||||
crc : data.readUInt32LE(Constants.LOCCRC),
|
||||
// compressed size
|
||||
compressedSize : data.readUInt32LE(Constants.LOCSIZ),
|
||||
// uncompressed size
|
||||
size : data.readUInt32LE(Constants.LOCLEN),
|
||||
// filename length
|
||||
fnameLen : data.readUInt16LE(Constants.LOCNAM),
|
||||
// extra field length
|
||||
extraLen : data.readUInt16LE(Constants.LOCEXT)
|
||||
}
|
||||
},
|
||||
|
||||
loadFromBinary : function(/*Buffer*/data) {
|
||||
// data should be 46 bytes and start with "PK 01 02"
|
||||
if (data.length != Constants.CENHDR || data.readUInt32LE(0) != Constants.CENSIG) {
|
||||
throw Utils.Errors.INVALID_CEN;
|
||||
}
|
||||
// version made by
|
||||
_verMade = data.readUInt16LE(Constants.CENVEM);
|
||||
// version needed to extract
|
||||
_version = data.readUInt16LE(Constants.CENVER);
|
||||
// encrypt, decrypt flags
|
||||
_flags = data.readUInt16LE(Constants.CENFLG);
|
||||
// compression method
|
||||
_method = data.readUInt16LE(Constants.CENHOW);
|
||||
// modification time (2 bytes time, 2 bytes date)
|
||||
_time = data.readUInt32LE(Constants.CENTIM);
|
||||
// uncompressed file crc-32 value
|
||||
_crc = data.readUInt32LE(Constants.CENCRC);
|
||||
// compressed size
|
||||
_compressedSize = data.readUInt32LE(Constants.CENSIZ);
|
||||
// uncompressed size
|
||||
_size = data.readUInt32LE(Constants.CENLEN);
|
||||
// filename length
|
||||
_fnameLen = data.readUInt16LE(Constants.CENNAM);
|
||||
// extra field length
|
||||
_extraLen = data.readUInt16LE(Constants.CENEXT);
|
||||
// file comment length
|
||||
_comLen = data.readUInt16LE(Constants.CENCOM);
|
||||
// volume number start
|
||||
_diskStart = data.readUInt16LE(Constants.CENDSK);
|
||||
// internal file attributes
|
||||
_inattr = data.readUInt16LE(Constants.CENATT);
|
||||
// external file attributes
|
||||
_attr = data.readUInt32LE(Constants.CENATX);
|
||||
// LOC header offset
|
||||
_offset = data.readUInt32LE(Constants.CENOFF);
|
||||
},
|
||||
|
||||
dataHeaderToBinary : function() {
|
||||
// LOC header size (30 bytes)
|
||||
var data = new Buffer(Constants.LOCHDR);
|
||||
// "PK\003\004"
|
||||
data.writeUInt32LE(Constants.LOCSIG, 0);
|
||||
// version needed to extract
|
||||
data.writeUInt16LE(_version, Constants.LOCVER);
|
||||
// general purpose bit flag
|
||||
data.writeUInt16LE(_flags, Constants.LOCFLG);
|
||||
// compression method
|
||||
data.writeUInt16LE(_method, Constants.LOCHOW);
|
||||
// modification time (2 bytes time, 2 bytes date)
|
||||
data.writeUInt32LE(_time, Constants.LOCTIM);
|
||||
// uncompressed file crc-32 value
|
||||
data.writeUInt32LE(_crc, Constants.LOCCRC);
|
||||
// compressed size
|
||||
data.writeUInt32LE(_compressedSize, Constants.LOCSIZ);
|
||||
// uncompressed size
|
||||
data.writeUInt32LE(_size, Constants.LOCLEN);
|
||||
// filename length
|
||||
data.writeUInt16LE(_fnameLen, Constants.LOCNAM);
|
||||
// extra field length
|
||||
data.writeUInt16LE(_extraLen, Constants.LOCEXT);
|
||||
return data;
|
||||
},
|
||||
|
||||
entryHeaderToBinary : function() {
|
||||
// CEN header size (46 bytes)
|
||||
var data = new Buffer(Constants.CENHDR + _fnameLen + _extraLen + _comLen);
|
||||
// "PK\001\002"
|
||||
data.writeUInt32LE(Constants.CENSIG, 0);
|
||||
// version made by
|
||||
data.writeUInt16LE(_verMade, Constants.CENVEM);
|
||||
// version needed to extract
|
||||
data.writeUInt16LE(_version, Constants.CENVER);
|
||||
// encrypt, decrypt flags
|
||||
data.writeUInt16LE(_flags, Constants.CENFLG);
|
||||
// compression method
|
||||
data.writeUInt16LE(_method, Constants.CENHOW);
|
||||
// modification time (2 bytes time, 2 bytes date)
|
||||
data.writeUInt32LE(_time, Constants.CENTIM);
|
||||
// uncompressed file crc-32 value
|
||||
data.writeInt32LE(_crc, Constants.CENCRC, true);
|
||||
// compressed size
|
||||
data.writeUInt32LE(_compressedSize, Constants.CENSIZ);
|
||||
// uncompressed size
|
||||
data.writeUInt32LE(_size, Constants.CENLEN);
|
||||
// filename length
|
||||
data.writeUInt16LE(_fnameLen, Constants.CENNAM);
|
||||
// extra field length
|
||||
data.writeUInt16LE(_extraLen, Constants.CENEXT);
|
||||
// file comment length
|
||||
data.writeUInt16LE(_comLen, Constants.CENCOM);
|
||||
// volume number start
|
||||
data.writeUInt16LE(_diskStart, Constants.CENDSK);
|
||||
// internal file attributes
|
||||
data.writeUInt16LE(_inattr, Constants.CENATT);
|
||||
// external file attributes
|
||||
data.writeUInt32LE(_attr, Constants.CENATX);
|
||||
// LOC header offset
|
||||
data.writeUInt32LE(_offset, Constants.CENOFF);
|
||||
// fill all with
|
||||
data.fill(0x00, Constants.CENHDR);
|
||||
return data;
|
||||
},
|
||||
|
||||
toString : function() {
|
||||
return '{\n' +
|
||||
'\t"made" : ' + _verMade + ",\n" +
|
||||
'\t"version" : ' + _version + ",\n" +
|
||||
'\t"flags" : ' + _flags + ",\n" +
|
||||
'\t"method" : ' + Utils.methodToString(_method) + ",\n" +
|
||||
'\t"time" : ' + _time + ",\n" +
|
||||
'\t"crc" : 0x' + _crc.toString(16).toUpperCase() + ",\n" +
|
||||
'\t"compressedSize" : ' + _compressedSize + " bytes,\n" +
|
||||
'\t"size" : ' + _size + " bytes,\n" +
|
||||
'\t"fileNameLength" : ' + _fnameLen + ",\n" +
|
||||
'\t"extraLength" : ' + _extraLen + " bytes,\n" +
|
||||
'\t"commentLength" : ' + _comLen + " bytes,\n" +
|
||||
'\t"diskNumStart" : ' + _diskStart + ",\n" +
|
||||
'\t"inAttr" : ' + _inattr + ",\n" +
|
||||
'\t"attr" : ' + _attr + ",\n" +
|
||||
'\t"offset" : ' + _offset + ",\n" +
|
||||
'\t"entryHeaderSize" : ' + (Constants.CENHDR + _fnameLen + _extraLen + _comLen) + " bytes\n" +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
};
|
2
node_modules/adm-zip/headers/index.js
generated
vendored
2
node_modules/adm-zip/headers/index.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
exports.EntryHeader = require("./entryHeader");
|
||||
exports.MainHeader = require("./mainHeader");
|
80
node_modules/adm-zip/headers/mainHeader.js
generated
vendored
80
node_modules/adm-zip/headers/mainHeader.js
generated
vendored
@ -1,80 +0,0 @@
|
||||
var Utils = require("../util"),
|
||||
Constants = Utils.Constants;
|
||||
|
||||
/* The entries in the end of central directory */
|
||||
module.exports = function () {
|
||||
var _volumeEntries = 0,
|
||||
_totalEntries = 0,
|
||||
_size = 0,
|
||||
_offset = 0,
|
||||
_commentLength = 0;
|
||||
|
||||
return {
|
||||
get diskEntries () { return _volumeEntries },
|
||||
set diskEntries (/*Number*/val) { _volumeEntries = _totalEntries = val; },
|
||||
|
||||
get totalEntries () { return _totalEntries },
|
||||
set totalEntries (/*Number*/val) { _totalEntries = _volumeEntries = val; },
|
||||
|
||||
get size () { return _size },
|
||||
set size (/*Number*/val) { _size = val; },
|
||||
|
||||
get offset () { return _offset },
|
||||
set offset (/*Number*/val) { _offset = val; },
|
||||
|
||||
get commentLength () { return _commentLength },
|
||||
set commentLength (/*Number*/val) { _commentLength = val; },
|
||||
|
||||
get mainHeaderSize () {
|
||||
return Constants.ENDHDR + _commentLength;
|
||||
},
|
||||
|
||||
loadFromBinary : function(/*Buffer*/data) {
|
||||
// data should be 22 bytes and start with "PK 05 06"
|
||||
if (data.length != Constants.ENDHDR || data.readUInt32LE(0) != Constants.ENDSIG)
|
||||
throw Utils.Errors.INVALID_END;
|
||||
|
||||
// number of entries on this volume
|
||||
_volumeEntries = data.readUInt16LE(Constants.ENDSUB);
|
||||
// total number of entries
|
||||
_totalEntries = data.readUInt16LE(Constants.ENDTOT);
|
||||
// central directory size in bytes
|
||||
_size = data.readUInt32LE(Constants.ENDSIZ);
|
||||
// offset of first CEN header
|
||||
_offset = data.readUInt32LE(Constants.ENDOFF);
|
||||
// zip file comment length
|
||||
_commentLength = data.readUInt16LE(Constants.ENDCOM);
|
||||
},
|
||||
|
||||
toBinary : function() {
|
||||
var b = new Buffer(Constants.ENDHDR + _commentLength);
|
||||
// "PK 05 06" signature
|
||||
b.writeUInt32LE(Constants.ENDSIG, 0);
|
||||
b.writeUInt32LE(0, 4);
|
||||
// number of entries on this volume
|
||||
b.writeUInt16LE(_volumeEntries, Constants.ENDSUB);
|
||||
// total number of entries
|
||||
b.writeUInt16LE(_totalEntries, Constants.ENDTOT);
|
||||
// central directory size in bytes
|
||||
b.writeUInt32LE(_size, Constants.ENDSIZ);
|
||||
// offset of first CEN header
|
||||
b.writeUInt32LE(_offset, Constants.ENDOFF);
|
||||
// zip file comment length
|
||||
b.writeUInt16LE(_commentLength, Constants.ENDCOM);
|
||||
// fill comment memory with spaces so no garbage is left there
|
||||
b.fill(" ", Constants.ENDHDR);
|
||||
|
||||
return b;
|
||||
},
|
||||
|
||||
toString : function() {
|
||||
return '{\n' +
|
||||
'\t"diskEntries" : ' + _volumeEntries + ",\n" +
|
||||
'\t"totalEntries" : ' + _totalEntries + ",\n" +
|
||||
'\t"size" : ' + _size + " bytes,\n" +
|
||||
'\t"offset" : 0x' + _offset.toString(16).toUpperCase() + ",\n" +
|
||||
'\t"commentLength" : 0x' + _commentLength + "\n" +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
};
|
1578
node_modules/adm-zip/methods/deflater.js
generated
vendored
1578
node_modules/adm-zip/methods/deflater.js
generated
vendored
File diff suppressed because it is too large
Load Diff
2
node_modules/adm-zip/methods/index.js
generated
vendored
2
node_modules/adm-zip/methods/index.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
exports.Deflater = require("./deflater");
|
||||
exports.Inflater = require("./inflater");
|
448
node_modules/adm-zip/methods/inflater.js
generated
vendored
448
node_modules/adm-zip/methods/inflater.js
generated
vendored
@ -1,448 +0,0 @@
|
||||
var Buffer = require("buffer").Buffer;
|
||||
|
||||
function JSInflater(/*Buffer*/input) {
|
||||
|
||||
var WSIZE = 0x8000,
|
||||
slide = new Buffer(0x10000),
|
||||
windowPos = 0,
|
||||
fixedTableList = null,
|
||||
fixedTableDist,
|
||||
fixedLookup,
|
||||
bitBuf = 0,
|
||||
bitLen = 0,
|
||||
method = -1,
|
||||
eof = false,
|
||||
copyLen = 0,
|
||||
copyDist = 0,
|
||||
tblList, tblDist, bitList, bitdist,
|
||||
|
||||
inputPosition = 0,
|
||||
|
||||
MASK_BITS = [0x0000, 0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff, 0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff],
|
||||
LENS = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0],
|
||||
LEXT = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 99, 99],
|
||||
DISTS = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577],
|
||||
DEXT = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13],
|
||||
BITORDER = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
||||
|
||||
function HuffTable(clen, cnum, cval, blist, elist, lookupm) {
|
||||
|
||||
this.status = 0;
|
||||
this.root = null;
|
||||
this.maxbit = 0;
|
||||
|
||||
var el, f, tail,
|
||||
offsets = [],
|
||||
countTbl = [],
|
||||
sTbl = [],
|
||||
values = [],
|
||||
tentry = {extra: 0, bitcnt: 0, lbase: 0, next: null};
|
||||
|
||||
tail = this.root = null;
|
||||
for(var i = 0; i < 0x11; i++) { countTbl[i] = 0; sTbl[i] = 0; offsets[i] = 0; }
|
||||
for(i = 0; i < 0x120; i++) values[i] = 0;
|
||||
|
||||
el = cnum > 256 ? clen[256] : 16;
|
||||
|
||||
var pidx = -1;
|
||||
while (++pidx < cnum) countTbl[clen[pidx]]++;
|
||||
|
||||
if(countTbl[0] == cnum) return;
|
||||
|
||||
for(var j = 1; j <= 16; j++) if(countTbl[j] != 0) break;
|
||||
var bitLen = j;
|
||||
for(i = 16; i != 0; i--) if(countTbl[i] != 0) break;
|
||||
var maxLen = i;
|
||||
|
||||
lookupm < j && (lookupm = j);
|
||||
|
||||
var dCodes = 1 << j;
|
||||
for(; j < i; j++, dCodes <<= 1)
|
||||
if((dCodes -= countTbl[j]) < 0) {
|
||||
this.status = 2;
|
||||
this.maxbit = lookupm;
|
||||
return;
|
||||
}
|
||||
|
||||
if((dCodes -= countTbl[i]) < 0) {
|
||||
this.status = 2;
|
||||
this.maxbit = lookupm;
|
||||
return;
|
||||
}
|
||||
|
||||
countTbl[i] += dCodes;
|
||||
offsets[1] = j = 0;
|
||||
pidx = 1;
|
||||
var xp = 2;
|
||||
while(--i > 0) offsets[xp++] = (j += countTbl[pidx++]);
|
||||
pidx = 0;
|
||||
i = 0;
|
||||
do {
|
||||
(j = clen[pidx++]) && (values[offsets[j]++] = i);
|
||||
} while(++i < cnum);
|
||||
cnum = offsets[maxLen];
|
||||
offsets[0] = i = 0;
|
||||
pidx = 0;
|
||||
|
||||
var level = -1,
|
||||
w = sTbl[0] = 0,
|
||||
cnode = null,
|
||||
tblCnt = 0,
|
||||
tblStack = [];
|
||||
|
||||
for(; bitLen <= maxLen; bitLen++) {
|
||||
var kccnt = countTbl[bitLen];
|
||||
while(kccnt-- > 0) {
|
||||
while(bitLen > w + sTbl[1 + level]) {
|
||||
w += sTbl[1 + level];
|
||||
level++;
|
||||
tblCnt = (tblCnt = maxLen - w) > lookupm ? lookupm : tblCnt;
|
||||
if((f = 1 << (j = bitLen - w)) > kccnt + 1) {
|
||||
f -= kccnt + 1;
|
||||
xp = bitLen;
|
||||
while(++j < tblCnt) {
|
||||
if((f <<= 1) <= countTbl[++xp]) break;
|
||||
f -= countTbl[xp];
|
||||
}
|
||||
}
|
||||
if(w + j > el && w < el) j = el - w;
|
||||
tblCnt = 1 << j;
|
||||
sTbl[1 + level] = j;
|
||||
cnode = [];
|
||||
while (cnode.length < tblCnt) cnode.push({extra: 0, bitcnt: 0, lbase: 0, next: null});
|
||||
if (tail == null) {
|
||||
tail = this.root = {next:null, list:null};
|
||||
} else {
|
||||
tail = tail.next = {next:null, list:null}
|
||||
}
|
||||
tail.next = null;
|
||||
tail.list = cnode;
|
||||
|
||||
tblStack[level] = cnode;
|
||||
|
||||
if(level > 0) {
|
||||
offsets[level] = i;
|
||||
tentry.bitcnt = sTbl[level];
|
||||
tentry.extra = 16 + j;
|
||||
tentry.next = cnode;
|
||||
j = (i & ((1 << w) - 1)) >> (w - sTbl[level]);
|
||||
|
||||
tblStack[level-1][j].extra = tentry.extra;
|
||||
tblStack[level-1][j].bitcnt = tentry.bitcnt;
|
||||
tblStack[level-1][j].lbase = tentry.lbase;
|
||||
tblStack[level-1][j].next = tentry.next;
|
||||
}
|
||||
}
|
||||
tentry.bitcnt = bitLen - w;
|
||||
if(pidx >= cnum)
|
||||
tentry.extra = 99;
|
||||
else if(values[pidx] < cval) {
|
||||
tentry.extra = (values[pidx] < 256 ? 16 : 15);
|
||||
tentry.lbase = values[pidx++];
|
||||
} else {
|
||||
tentry.extra = elist[values[pidx] - cval];
|
||||
tentry.lbase = blist[values[pidx++] - cval];
|
||||
}
|
||||
|
||||
f = 1 << (bitLen - w);
|
||||
for(j = i >> w; j < tblCnt; j += f) {
|
||||
cnode[j].extra = tentry.extra;
|
||||
cnode[j].bitcnt = tentry.bitcnt;
|
||||
cnode[j].lbase = tentry.lbase;
|
||||
cnode[j].next = tentry.next;
|
||||
}
|
||||
for(j = 1 << (bitLen - 1); (i & j) != 0; j >>= 1)
|
||||
i ^= j;
|
||||
i ^= j;
|
||||
while((i & ((1 << w) - 1)) != offsets[level]) {
|
||||
w -= sTbl[level];
|
||||
level--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.maxbit = sTbl[1];
|
||||
this.status = ((dCodes != 0 && maxLen != 1) ? 1 : 0);
|
||||
}
|
||||
|
||||
function addBits(n) {
|
||||
while(bitLen < n) {
|
||||
bitBuf |= input[inputPosition++] << bitLen;
|
||||
bitLen += 8;
|
||||
}
|
||||
return bitBuf;
|
||||
}
|
||||
|
||||
function cutBits(n) {
|
||||
bitLen -= n;
|
||||
return bitBuf >>= n;
|
||||
}
|
||||
|
||||
function maskBits(n) {
|
||||
while(bitLen < n) {
|
||||
bitBuf |= input[inputPosition++] << bitLen;
|
||||
bitLen += 8;
|
||||
}
|
||||
var res = bitBuf & MASK_BITS[n];
|
||||
bitBuf >>= n;
|
||||
bitLen -= n;
|
||||
return res;
|
||||
}
|
||||
|
||||
function codes(buff, off, size) {
|
||||
var e, t;
|
||||
if(size == 0) return 0;
|
||||
|
||||
var n = 0;
|
||||
for(;;) {
|
||||
t = tblList.list[addBits(bitList) & MASK_BITS[bitList]];
|
||||
e = t.extra;
|
||||
while(e > 16) {
|
||||
if(e == 99) return -1;
|
||||
cutBits(t.bitcnt);
|
||||
e -= 16;
|
||||
t = t.next[addBits(e) & MASK_BITS[e]];
|
||||
e = t.extra;
|
||||
}
|
||||
cutBits(t.bitcnt);
|
||||
if(e == 16) {
|
||||
windowPos &= WSIZE - 1;
|
||||
buff[off + n++] = slide[windowPos++] = t.lbase;
|
||||
if(n == size) return size;
|
||||
continue;
|
||||
}
|
||||
if(e == 15) break;
|
||||
|
||||
copyLen = t.lbase + maskBits(e);
|
||||
t = tblDist.list[addBits(bitdist) & MASK_BITS[bitdist]];
|
||||
e = t.extra;
|
||||
|
||||
while(e > 16) {
|
||||
if(e == 99) return -1;
|
||||
cutBits(t.bitcnt);
|
||||
e -= 16;
|
||||
t = t.next[addBits(e) & MASK_BITS[e]];
|
||||
e = t.extra
|
||||
}
|
||||
cutBits(t.bitcnt);
|
||||
copyDist = windowPos - t.lbase - maskBits(e);
|
||||
|
||||
while(copyLen > 0 && n < size) {
|
||||
copyLen--;
|
||||
copyDist &= WSIZE - 1;
|
||||
windowPos &= WSIZE - 1;
|
||||
buff[off + n++] = slide[windowPos++] = slide[copyDist++];
|
||||
}
|
||||
|
||||
if(n == size) return size;
|
||||
}
|
||||
|
||||
method = -1; // done
|
||||
return n;
|
||||
}
|
||||
|
||||
function stored(buff, off, size) {
|
||||
cutBits(bitLen & 7);
|
||||
var n = maskBits(0x10);
|
||||
if(n != ((~maskBits(0x10)) & 0xffff)) return -1;
|
||||
copyLen = n;
|
||||
|
||||
n = 0;
|
||||
while(copyLen > 0 && n < size) {
|
||||
copyLen--;
|
||||
windowPos &= WSIZE - 1;
|
||||
buff[off + n++] = slide[windowPos++] = maskBits(8);
|
||||
}
|
||||
|
||||
if(copyLen == 0) method = -1;
|
||||
return n;
|
||||
}
|
||||
|
||||
function fixed(buff, off, size) {
|
||||
var fixed_bd = 0;
|
||||
if(fixedTableList == null) {
|
||||
var lengths = [];
|
||||
|
||||
for(var symbol = 0; symbol < 144; symbol++) lengths[symbol] = 8;
|
||||
for(; symbol < 256; symbol++) lengths[symbol] = 9;
|
||||
for(; symbol < 280; symbol++) lengths[symbol] = 7;
|
||||
for(; symbol < 288; symbol++) lengths[symbol] = 8;
|
||||
|
||||
fixedLookup = 7;
|
||||
|
||||
var htbl = new HuffTable(lengths, 288, 257, LENS, LEXT, fixedLookup);
|
||||
|
||||
if(htbl.status != 0) return -1;
|
||||
|
||||
fixedTableList = htbl.root;
|
||||
fixedLookup = htbl.maxbit;
|
||||
|
||||
for(symbol = 0; symbol < 30; symbol++) lengths[symbol] = 5;
|
||||
fixed_bd = 5;
|
||||
|
||||
htbl = new HuffTable(lengths, 30, 0, DISTS, DEXT, fixed_bd);
|
||||
if(htbl.status > 1) {
|
||||
fixedTableList = null;
|
||||
return -1;
|
||||
}
|
||||
fixedTableDist = htbl.root;
|
||||
fixed_bd = htbl.maxbit;
|
||||
}
|
||||
|
||||
tblList = fixedTableList;
|
||||
tblDist = fixedTableDist;
|
||||
bitList = fixedLookup;
|
||||
bitdist = fixed_bd;
|
||||
return codes(buff, off, size);
|
||||
}
|
||||
|
||||
function dynamic(buff, off, size) {
|
||||
var ll = new Array(0x023C);
|
||||
|
||||
for (var m = 0; m < 0x023C; m++) ll[m] = 0;
|
||||
|
||||
var llencnt = 257 + maskBits(5),
|
||||
dcodescnt = 1 + maskBits(5),
|
||||
bitlencnt = 4 + maskBits(4);
|
||||
|
||||
if(llencnt > 286 || dcodescnt > 30) return -1;
|
||||
|
||||
for(var j = 0; j < bitlencnt; j++) ll[BITORDER[j]] = maskBits(3);
|
||||
for(; j < 19; j++) ll[BITORDER[j]] = 0;
|
||||
|
||||
// build decoding table for trees--single level, 7 bit lookup
|
||||
bitList = 7;
|
||||
var hufTable = new HuffTable(ll, 19, 19, null, null, bitList);
|
||||
if(hufTable.status != 0)
|
||||
return -1; // incomplete code set
|
||||
|
||||
tblList = hufTable.root;
|
||||
bitList = hufTable.maxbit;
|
||||
var lencnt = llencnt + dcodescnt,
|
||||
i = 0,
|
||||
lastLen = 0;
|
||||
while(i < lencnt) {
|
||||
var hufLcode = tblList.list[addBits(bitList) & MASK_BITS[bitList]];
|
||||
j = hufLcode.bitcnt;
|
||||
cutBits(j);
|
||||
j = hufLcode.lbase;
|
||||
if(j < 16)
|
||||
ll[i++] = lastLen = j;
|
||||
else if(j == 16) {
|
||||
j = 3 + maskBits(2);
|
||||
if(i + j > lencnt) return -1;
|
||||
while(j-- > 0) ll[i++] = lastLen;
|
||||
} else if(j == 17) {
|
||||
j = 3 + maskBits(3);
|
||||
if(i + j > lencnt) return -1;
|
||||
while(j-- > 0) ll[i++] = 0;
|
||||
lastLen = 0;
|
||||
} else {
|
||||
j = 11 + maskBits(7);
|
||||
if(i + j > lencnt) return -1;
|
||||
while(j-- > 0) ll[i++] = 0;
|
||||
lastLen = 0;
|
||||
}
|
||||
}
|
||||
bitList = 9;
|
||||
hufTable = new HuffTable(ll, llencnt, 257, LENS, LEXT, bitList);
|
||||
bitList == 0 && (hufTable.status = 1);
|
||||
|
||||
if (hufTable.status != 0) return -1;
|
||||
|
||||
tblList = hufTable.root;
|
||||
bitList = hufTable.maxbit;
|
||||
|
||||
for(i = 0; i < dcodescnt; i++) ll[i] = ll[i + llencnt];
|
||||
bitdist = 6;
|
||||
hufTable = new HuffTable(ll, dcodescnt, 0, DISTS, DEXT, bitdist);
|
||||
tblDist = hufTable.root;
|
||||
bitdist = hufTable.maxbit;
|
||||
|
||||
if((bitdist == 0 && llencnt > 257) || hufTable.status != 0) return -1;
|
||||
|
||||
return codes(buff, off, size);
|
||||
}
|
||||
|
||||
return {
|
||||
inflate : function(/*Buffer*/outputBuffer) {
|
||||
tblList = null;
|
||||
|
||||
var size = outputBuffer.length,
|
||||
offset = 0, i;
|
||||
|
||||
while(offset < size) {
|
||||
if(eof && method == -1) return;
|
||||
if(copyLen > 0) {
|
||||
if(method != 0) {
|
||||
while(copyLen > 0 && offset < size) {
|
||||
copyLen--;
|
||||
copyDist &= WSIZE - 1;
|
||||
windowPos &= WSIZE - 1;
|
||||
outputBuffer[offset++] = (slide[windowPos++] = slide[copyDist++]);
|
||||
}
|
||||
} else {
|
||||
while(copyLen > 0 && offset < size) {
|
||||
copyLen--;
|
||||
windowPos &= WSIZE - 1;
|
||||
outputBuffer[offset++] = (slide[windowPos++] = maskBits(8));
|
||||
}
|
||||
copyLen == 0 && (method = -1); // done
|
||||
}
|
||||
if (offset == size) return;
|
||||
}
|
||||
|
||||
if(method == -1) {
|
||||
if(eof) break;
|
||||
eof = maskBits(1) != 0;
|
||||
method = maskBits(2);
|
||||
tblList = null;
|
||||
copyLen = 0;
|
||||
}
|
||||
switch(method) {
|
||||
case 0: i = stored(outputBuffer, offset, size - offset); break;
|
||||
case 1: i = tblList != null ? codes(outputBuffer, offset, size - offset) : fixed(outputBuffer, offset, size - offset); break;
|
||||
case 2: i = tblList != null ? codes(outputBuffer, offset, size - offset) : dynamic(outputBuffer, offset, size - offset); break;
|
||||
default: i = -1; break;
|
||||
}
|
||||
|
||||
if(i == -1) return;
|
||||
offset += i;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = function(/*Buffer*/inbuf) {
|
||||
var zlib = require("zlib");
|
||||
return {
|
||||
inflateAsync : function(/*Function*/callback) {
|
||||
var tmp = zlib.createInflateRaw(),
|
||||
parts = [], total = 0;
|
||||
tmp.on('data', function(data) {
|
||||
parts.push(data);
|
||||
total += data.length;
|
||||
});
|
||||
tmp.on('end', function() {
|
||||
var buf = new Buffer(total), written = 0;
|
||||
buf.fill(0);
|
||||
|
||||
for (var i = 0; i < parts.length; i++) {
|
||||
var part = parts[i];
|
||||
part.copy(buf, written);
|
||||
written += part.length;
|
||||
}
|
||||
callback && callback(buf);
|
||||
});
|
||||
tmp.end(inbuf)
|
||||
},
|
||||
|
||||
inflate : function(/*Buffer*/outputBuffer) {
|
||||
var x = {
|
||||
x: new JSInflater(inbuf)
|
||||
};
|
||||
x.x.inflate(outputBuffer);
|
||||
delete(x.x);
|
||||
}
|
||||
}
|
||||
};
|
39
node_modules/adm-zip/package.json
generated
vendored
39
node_modules/adm-zip/package.json
generated
vendored
@ -1,39 +0,0 @@
|
||||
{
|
||||
"name": "adm-zip",
|
||||
"version": "0.4.7",
|
||||
"description": "A Javascript implementation of zip for nodejs. Allows user to create or extract zip files both in memory or to/from disk",
|
||||
"keywords": [
|
||||
"zip",
|
||||
"methods",
|
||||
"archive",
|
||||
"unzip"
|
||||
],
|
||||
"homepage": "http://github.com/cthackers/adm-zip",
|
||||
"author": "Nasca Iacob <sy@another-d-mention.ro> (https://github.com/cthackers)",
|
||||
"bugs": {
|
||||
"email": "sy@another-d-mention.ro",
|
||||
"url": "https://github.com/cthackers/adm-zip/issues"
|
||||
},
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://raw.github.com/cthackers/adm-zip/master/MIT-LICENSE.txt"
|
||||
}
|
||||
],
|
||||
"files": [
|
||||
"adm-zip.js",
|
||||
"headers",
|
||||
"methods",
|
||||
"util",
|
||||
"zipEntry.js",
|
||||
"zipFile.js"
|
||||
],
|
||||
"main": "adm-zip.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cthackers/adm-zip.git"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.3.0"
|
||||
}
|
||||
}
|
115
node_modules/adm-zip/util/constants.js
generated
vendored
115
node_modules/adm-zip/util/constants.js
generated
vendored
@ -1,115 +0,0 @@
|
||||
module.exports = {
|
||||
/* The local file header */
|
||||
LOCHDR : 30, // LOC header size
|
||||
LOCSIG : 0x04034b50, // "PK\003\004"
|
||||
LOCVER : 4, // version needed to extract
|
||||
LOCFLG : 6, // general purpose bit flag
|
||||
LOCHOW : 8, // compression method
|
||||
LOCTIM : 10, // modification time (2 bytes time, 2 bytes date)
|
||||
LOCCRC : 14, // uncompressed file crc-32 value
|
||||
LOCSIZ : 18, // compressed size
|
||||
LOCLEN : 22, // uncompressed size
|
||||
LOCNAM : 26, // filename length
|
||||
LOCEXT : 28, // extra field length
|
||||
|
||||
/* The Data descriptor */
|
||||
EXTSIG : 0x08074b50, // "PK\007\008"
|
||||
EXTHDR : 16, // EXT header size
|
||||
EXTCRC : 4, // uncompressed file crc-32 value
|
||||
EXTSIZ : 8, // compressed size
|
||||
EXTLEN : 12, // uncompressed size
|
||||
|
||||
/* The central directory file header */
|
||||
CENHDR : 46, // CEN header size
|
||||
CENSIG : 0x02014b50, // "PK\001\002"
|
||||
CENVEM : 4, // version made by
|
||||
CENVER : 6, // version needed to extract
|
||||
CENFLG : 8, // encrypt, decrypt flags
|
||||
CENHOW : 10, // compression method
|
||||
CENTIM : 12, // modification time (2 bytes time, 2 bytes date)
|
||||
CENCRC : 16, // uncompressed file crc-32 value
|
||||
CENSIZ : 20, // compressed size
|
||||
CENLEN : 24, // uncompressed size
|
||||
CENNAM : 28, // filename length
|
||||
CENEXT : 30, // extra field length
|
||||
CENCOM : 32, // file comment length
|
||||
CENDSK : 34, // volume number start
|
||||
CENATT : 36, // internal file attributes
|
||||
CENATX : 38, // external file attributes (host system dependent)
|
||||
CENOFF : 42, // LOC header offset
|
||||
|
||||
/* The entries in the end of central directory */
|
||||
ENDHDR : 22, // END header size
|
||||
ENDSIG : 0x06054b50, // "PK\005\006"
|
||||
ENDSUB : 8, // number of entries on this disk
|
||||
ENDTOT : 10, // total number of entries
|
||||
ENDSIZ : 12, // central directory size in bytes
|
||||
ENDOFF : 16, // offset of first CEN header
|
||||
ENDCOM : 20, // zip file comment length
|
||||
|
||||
/* Compression methods */
|
||||
STORED : 0, // no compression
|
||||
SHRUNK : 1, // shrunk
|
||||
REDUCED1 : 2, // reduced with compression factor 1
|
||||
REDUCED2 : 3, // reduced with compression factor 2
|
||||
REDUCED3 : 4, // reduced with compression factor 3
|
||||
REDUCED4 : 5, // reduced with compression factor 4
|
||||
IMPLODED : 6, // imploded
|
||||
// 7 reserved
|
||||
DEFLATED : 8, // deflated
|
||||
ENHANCED_DEFLATED: 9, // enhanced deflated
|
||||
PKWARE : 10,// PKWare DCL imploded
|
||||
// 11 reserved
|
||||
BZIP2 : 12, // compressed using BZIP2
|
||||
// 13 reserved
|
||||
LZMA : 14, // LZMA
|
||||
// 15-17 reserved
|
||||
IBM_TERSE : 18, // compressed using IBM TERSE
|
||||
IBM_LZ77 : 19, //IBM LZ77 z
|
||||
|
||||
/* General purpose bit flag */
|
||||
FLG_ENC : 0, // encripted file
|
||||
FLG_COMP1 : 1, // compression option
|
||||
FLG_COMP2 : 2, // compression option
|
||||
FLG_DESC : 4, // data descriptor
|
||||
FLG_ENH : 8, // enhanced deflation
|
||||
FLG_STR : 16, // strong encryption
|
||||
FLG_LNG : 1024, // language encoding
|
||||
FLG_MSK : 4096, // mask header values
|
||||
|
||||
/* Load type */
|
||||
FILE : 0,
|
||||
BUFFER : 1,
|
||||
NONE : 2,
|
||||
|
||||
/* 4.5 Extensible data fields */
|
||||
EF_ID : 0,
|
||||
EF_SIZE : 2,
|
||||
|
||||
/* Header IDs */
|
||||
ID_ZIP64 : 0x0001,
|
||||
ID_AVINFO : 0x0007,
|
||||
ID_PFS : 0x0008,
|
||||
ID_OS2 : 0x0009,
|
||||
ID_NTFS : 0x000a,
|
||||
ID_OPENVMS : 0x000c,
|
||||
ID_UNIX : 0x000d,
|
||||
ID_FORK : 0x000e,
|
||||
ID_PATCH : 0x000f,
|
||||
ID_X509_PKCS7 : 0x0014,
|
||||
ID_X509_CERTID_F : 0x0015,
|
||||
ID_X509_CERTID_C : 0x0016,
|
||||
ID_STRONGENC : 0x0017,
|
||||
ID_RECORD_MGT : 0x0018,
|
||||
ID_X509_PKCS7_RL : 0x0019,
|
||||
ID_IBM1 : 0x0065,
|
||||
ID_IBM2 : 0x0066,
|
||||
ID_POSZIP : 0x4690,
|
||||
|
||||
EF_ZIP64_OR_32 : 0xffffffff,
|
||||
EF_ZIP64_OR_16 : 0xffff,
|
||||
EF_ZIP64_SUNCOMP : 0,
|
||||
EF_ZIP64_SCOMP : 8,
|
||||
EF_ZIP64_RHO : 16,
|
||||
EF_ZIP64_DSN : 24
|
||||
};
|
35
node_modules/adm-zip/util/errors.js
generated
vendored
35
node_modules/adm-zip/util/errors.js
generated
vendored
@ -1,35 +0,0 @@
|
||||
module.exports = {
|
||||
/* Header error messages */
|
||||
"INVALID_LOC" : "Invalid LOC header (bad signature)",
|
||||
"INVALID_CEN" : "Invalid CEN header (bad signature)",
|
||||
"INVALID_END" : "Invalid END header (bad signature)",
|
||||
|
||||
/* ZipEntry error messages*/
|
||||
"NO_DATA" : "Nothing to decompress",
|
||||
"BAD_CRC" : "CRC32 checksum failed",
|
||||
"FILE_IN_THE_WAY" : "There is a file in the way: %s",
|
||||
"UNKNOWN_METHOD" : "Invalid/unsupported compression method",
|
||||
|
||||
/* Inflater error messages */
|
||||
"AVAIL_DATA" : "inflate::Available inflate data did not terminate",
|
||||
"INVALID_DISTANCE" : "inflate::Invalid literal/length or distance code in fixed or dynamic block",
|
||||
"TO_MANY_CODES" : "inflate::Dynamic block code description: too many length or distance codes",
|
||||
"INVALID_REPEAT_LEN" : "inflate::Dynamic block code description: repeat more than specified lengths",
|
||||
"INVALID_REPEAT_FIRST" : "inflate::Dynamic block code description: repeat lengths with no first length",
|
||||
"INCOMPLETE_CODES" : "inflate::Dynamic block code description: code lengths codes incomplete",
|
||||
"INVALID_DYN_DISTANCE": "inflate::Dynamic block code description: invalid distance code lengths",
|
||||
"INVALID_CODES_LEN": "inflate::Dynamic block code description: invalid literal/length code lengths",
|
||||
"INVALID_STORE_BLOCK" : "inflate::Stored block length did not match one's complement",
|
||||
"INVALID_BLOCK_TYPE" : "inflate::Invalid block type (type == 3)",
|
||||
|
||||
/* ADM-ZIP error messages */
|
||||
"CANT_EXTRACT_FILE" : "Could not extract the file",
|
||||
"CANT_OVERRIDE" : "Target file already exists",
|
||||
"NO_ZIP" : "No zip file was loaded",
|
||||
"NO_ENTRY" : "Entry doesn't exist",
|
||||
"DIRECTORY_CONTENT_ERROR" : "A directory cannot have content",
|
||||
"FILE_NOT_FOUND" : "File not found: %s",
|
||||
"NOT_IMPLEMENTED" : "Not implemented",
|
||||
"INVALID_FILENAME" : "Invalid filename",
|
||||
"INVALID_FORMAT" : "Invalid or unsupported zip format. No END header found"
|
||||
};
|
84
node_modules/adm-zip/util/fattr.js
generated
vendored
84
node_modules/adm-zip/util/fattr.js
generated
vendored
@ -1,84 +0,0 @@
|
||||
var fs = require("fs"),
|
||||
pth = require("path");
|
||||
|
||||
fs.existsSync = fs.existsSync || pth.existsSync;
|
||||
|
||||
module.exports = function(/*String*/path) {
|
||||
|
||||
var _path = path || "",
|
||||
_permissions = 0,
|
||||
_obj = newAttr(),
|
||||
_stat = null;
|
||||
|
||||
function newAttr() {
|
||||
return {
|
||||
directory : false,
|
||||
readonly : false,
|
||||
hidden : false,
|
||||
executable : false,
|
||||
mtime : 0,
|
||||
atime : 0
|
||||
}
|
||||
}
|
||||
|
||||
if (_path && fs.existsSync(_path)) {
|
||||
_stat = fs.statSync(_path);
|
||||
_obj.directory = _stat.isDirectory();
|
||||
_obj.mtime = _stat.mtime;
|
||||
_obj.atime = _stat.atime;
|
||||
_obj.executable = !!(1 & parseInt ((_stat.mode & parseInt ("777", 8)).toString (8)[0]));
|
||||
_obj.readonly = !!(2 & parseInt ((_stat.mode & parseInt ("777", 8)).toString (8)[0]));
|
||||
_obj.hidden = pth.basename(_path)[0] === ".";
|
||||
} else {
|
||||
console.warn("Invalid path: " + _path)
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
get directory () {
|
||||
return _obj.directory;
|
||||
},
|
||||
|
||||
get readOnly () {
|
||||
return _obj.readonly;
|
||||
},
|
||||
|
||||
get hidden () {
|
||||
return _obj.hidden;
|
||||
},
|
||||
|
||||
get mtime () {
|
||||
return _obj.mtime;
|
||||
},
|
||||
|
||||
get atime () {
|
||||
return _obj.atime;
|
||||
},
|
||||
|
||||
|
||||
get executable () {
|
||||
return _obj.executable;
|
||||
},
|
||||
|
||||
decodeAttributes : function(val) {
|
||||
|
||||
},
|
||||
|
||||
encodeAttributes : function (val) {
|
||||
|
||||
},
|
||||
|
||||
toString : function() {
|
||||
return '{\n' +
|
||||
'\t"path" : "' + _path + ",\n" +
|
||||
'\t"isDirectory" : ' + _obj.directory + ",\n" +
|
||||
'\t"isReadOnly" : ' + _obj.readonly + ",\n" +
|
||||
'\t"isHidden" : ' + _obj.hidden + ",\n" +
|
||||
'\t"isExecutable" : ' + _obj.executable + ",\n" +
|
||||
'\t"mTime" : ' + _obj.mtime + "\n" +
|
||||
'\t"aTime" : ' + _obj.atime + "\n" +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
||||
};
|
4
node_modules/adm-zip/util/index.js
generated
vendored
4
node_modules/adm-zip/util/index.js
generated
vendored
@ -1,4 +0,0 @@
|
||||
module.exports = require("./utils");
|
||||
module.exports.Constants = require("./constants");
|
||||
module.exports.Errors = require("./errors");
|
||||
module.exports.FileAttr = require("./fattr");
|
199
node_modules/adm-zip/util/utils.js
generated
vendored
199
node_modules/adm-zip/util/utils.js
generated
vendored
@ -1,199 +0,0 @@
|
||||
var fs = require("fs"),
|
||||
pth = require('path');
|
||||
|
||||
fs.existsSync = fs.existsSync || pth.existsSync;
|
||||
|
||||
module.exports = (function() {
|
||||
|
||||
var crcTable = [],
|
||||
Constants = require('./constants'),
|
||||
Errors = require('./errors'),
|
||||
|
||||
PATH_SEPARATOR = pth.normalize("/");
|
||||
|
||||
|
||||
function mkdirSync(/*String*/path) {
|
||||
var resolvedPath = path.split(PATH_SEPARATOR)[0];
|
||||
path.split(PATH_SEPARATOR).forEach(function(name) {
|
||||
if (!name || name.substr(-1,1) == ":") return;
|
||||
resolvedPath += PATH_SEPARATOR + name;
|
||||
var stat;
|
||||
try {
|
||||
stat = fs.statSync(resolvedPath);
|
||||
} catch (e) {
|
||||
fs.mkdirSync(resolvedPath);
|
||||
}
|
||||
if (stat && stat.isFile())
|
||||
throw Errors.FILE_IN_THE_WAY.replace("%s", resolvedPath);
|
||||
});
|
||||
}
|
||||
|
||||
function findSync(/*String*/root, /*RegExp*/pattern, /*Boolean*/recoursive) {
|
||||
if (typeof pattern === 'boolean') {
|
||||
recoursive = pattern;
|
||||
pattern = undefined;
|
||||
}
|
||||
var files = [];
|
||||
fs.readdirSync(root).forEach(function(file) {
|
||||
var path = pth.join(root, file);
|
||||
|
||||
if (fs.statSync(path).isDirectory() && recoursive)
|
||||
files = files.concat(findSync(path, pattern, recoursive));
|
||||
|
||||
if (!pattern || pattern.test(path)) {
|
||||
files.push(pth.normalize(path) + (fs.statSync(path).isDirectory() ? PATH_SEPARATOR : ""));
|
||||
}
|
||||
|
||||
});
|
||||
return files;
|
||||
}
|
||||
|
||||
return {
|
||||
makeDir : function(/*String*/path) {
|
||||
mkdirSync(path);
|
||||
},
|
||||
|
||||
crc32 : function(buf) {
|
||||
var b = new Buffer(4);
|
||||
if (!crcTable.length) {
|
||||
for (var n = 0; n < 256; n++) {
|
||||
var c = n;
|
||||
for (var k = 8; --k >= 0;) //
|
||||
if ((c & 1) != 0) { c = 0xedb88320 ^ (c >>> 1); } else { c = c >>> 1; }
|
||||
if (c < 0) {
|
||||
b.writeInt32LE(c, 0);
|
||||
c = b.readUInt32LE(0);
|
||||
}
|
||||
crcTable[n] = c;
|
||||
}
|
||||
}
|
||||
var crc = 0, off = 0, len = buf.length, c1 = ~crc;
|
||||
while(--len >= 0) c1 = crcTable[(c1 ^ buf[off++]) & 0xff] ^ (c1 >>> 8);
|
||||
crc = ~c1;
|
||||
b.writeInt32LE(crc & 0xffffffff, 0);
|
||||
return b.readUInt32LE(0);
|
||||
},
|
||||
|
||||
methodToString : function(/*Number*/method) {
|
||||
switch (method) {
|
||||
case Constants.STORED:
|
||||
return 'STORED (' + method + ')';
|
||||
case Constants.DEFLATED:
|
||||
return 'DEFLATED (' + method + ')';
|
||||
default:
|
||||
return 'UNSUPPORTED (' + method + ')';
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
writeFileTo : function(/*String*/path, /*Buffer*/content, /*Boolean*/overwrite, /*Number*/attr) {
|
||||
if (fs.existsSync(path)) {
|
||||
if (!overwrite)
|
||||
return false; // cannot overwite
|
||||
|
||||
var stat = fs.statSync(path);
|
||||
if (stat.isDirectory()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
var folder = pth.dirname(path);
|
||||
if (!fs.existsSync(folder)) {
|
||||
mkdirSync(folder);
|
||||
}
|
||||
|
||||
var fd;
|
||||
try {
|
||||
fd = fs.openSync(path, 'w', 438); // 0666
|
||||
} catch(e) {
|
||||
fs.chmodSync(path, 438);
|
||||
fd = fs.openSync(path, 'w', 438);
|
||||
}
|
||||
if (fd) {
|
||||
fs.writeSync(fd, content, 0, content.length, 0);
|
||||
fs.closeSync(fd);
|
||||
}
|
||||
fs.chmodSync(path, attr || 438);
|
||||
return true;
|
||||
},
|
||||
|
||||
writeFileToAsync : function(/*String*/path, /*Buffer*/content, /*Boolean*/overwrite, /*Number*/attr, /*Function*/callback) {
|
||||
if(typeof attr === 'function') {
|
||||
callback = attr;
|
||||
attr = undefined;
|
||||
}
|
||||
|
||||
fs.exists(path, function(exists) {
|
||||
if(exists && !overwrite)
|
||||
return callback(false);
|
||||
|
||||
fs.stat(path, function(err, stat) {
|
||||
if(exists &&stat.isDirectory()) {
|
||||
return callback(false);
|
||||
}
|
||||
|
||||
var folder = pth.dirname(path);
|
||||
fs.exists(folder, function(exists) {
|
||||
if(!exists)
|
||||
mkdirSync(folder);
|
||||
|
||||
fs.open(path, 'w', 438, function(err, fd) {
|
||||
if(err) {
|
||||
fs.chmod(path, 438, function(err) {
|
||||
fs.open(path, 'w', 438, function(err, fd) {
|
||||
fs.write(fd, content, 0, content.length, 0, function(err, written, buffer) {
|
||||
fs.close(fd, function(err) {
|
||||
fs.chmod(path, attr || 438, function() {
|
||||
callback(true);
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
})
|
||||
} else {
|
||||
if(fd) {
|
||||
fs.write(fd, content, 0, content.length, 0, function(err, written, buffer) {
|
||||
fs.close(fd, function(err) {
|
||||
fs.chmod(path, attr || 438, function() {
|
||||
callback(true);
|
||||
})
|
||||
});
|
||||
});
|
||||
} else {
|
||||
fs.chmod(path, attr || 438, function() {
|
||||
callback(true);
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
findFiles : function(/*String*/path) {
|
||||
return findSync(path, true);
|
||||
},
|
||||
|
||||
getAttributes : function(/*String*/path) {
|
||||
|
||||
},
|
||||
|
||||
setAttributes : function(/*String*/path) {
|
||||
|
||||
},
|
||||
|
||||
toBuffer : function(input) {
|
||||
if (Buffer.isBuffer(input)) {
|
||||
return input;
|
||||
} else {
|
||||
if (input.length == 0) {
|
||||
return new Buffer(0)
|
||||
}
|
||||
return new Buffer(input, 'utf8');
|
||||
}
|
||||
},
|
||||
|
||||
Constants : Constants,
|
||||
Errors : Errors
|
||||
}
|
||||
})();
|
284
node_modules/adm-zip/zipEntry.js
generated
vendored
284
node_modules/adm-zip/zipEntry.js
generated
vendored
@ -1,284 +0,0 @@
|
||||
var Utils = require("./util"),
|
||||
Headers = require("./headers"),
|
||||
Constants = Utils.Constants,
|
||||
Methods = require("./methods");
|
||||
|
||||
module.exports = function (/*Buffer*/input) {
|
||||
|
||||
var _entryHeader = new Headers.EntryHeader(),
|
||||
_entryName = new Buffer(0),
|
||||
_comment = new Buffer(0),
|
||||
_isDirectory = false,
|
||||
uncompressedData = null,
|
||||
_extra = new Buffer(0);
|
||||
|
||||
function getCompressedDataFromZip() {
|
||||
if (!input || !Buffer.isBuffer(input)) {
|
||||
return new Buffer(0);
|
||||
}
|
||||
_entryHeader.loadDataHeaderFromBinary(input);
|
||||
return input.slice(_entryHeader.realDataOffset, _entryHeader.realDataOffset + _entryHeader.compressedSize)
|
||||
}
|
||||
|
||||
function crc32OK(data) {
|
||||
// if bit 3 (0x08) of the general-purpose flags field is set, then the CRC-32 and file sizes are not known when the header is written
|
||||
if (_entryHeader.flags & 0x8 != 0x8) {
|
||||
if (Utils.crc32(data) != _entryHeader.crc) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
// @TODO: load and check data descriptor header
|
||||
// The fields in the local header are filled with zero, and the CRC-32 and size are appended in a 12-byte structure
|
||||
// (optionally preceded by a 4-byte signature) immediately after the compressed data:
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function decompress(/*Boolean*/async, /*Function*/callback, /*String*/pass) {
|
||||
if(typeof callback === 'undefined' && typeof async === 'string') {
|
||||
pass=async;
|
||||
async=void 0;
|
||||
}
|
||||
if (_isDirectory) {
|
||||
if (async && callback) {
|
||||
callback(new Buffer(0), Utils.Errors.DIRECTORY_CONTENT_ERROR); //si added error.
|
||||
}
|
||||
return new Buffer(0);
|
||||
}
|
||||
|
||||
var compressedData = getCompressedDataFromZip();
|
||||
|
||||
if (compressedData.length == 0) {
|
||||
if (async && callback) callback(compressedData, Utils.Errors.NO_DATA);//si added error.
|
||||
return compressedData;
|
||||
}
|
||||
|
||||
var data = new Buffer(_entryHeader.size);
|
||||
data.fill(0);
|
||||
|
||||
switch (_entryHeader.method) {
|
||||
case Utils.Constants.STORED:
|
||||
compressedData.copy(data);
|
||||
if (!crc32OK(data)) {
|
||||
if (async && callback) callback(data, Utils.Errors.BAD_CRC);//si added error
|
||||
return Utils.Errors.BAD_CRC;
|
||||
} else {//si added otherwise did not seem to return data.
|
||||
if (async && callback) callback(data);
|
||||
return data;
|
||||
}
|
||||
break;
|
||||
case Utils.Constants.DEFLATED:
|
||||
var inflater = new Methods.Inflater(compressedData);
|
||||
if (!async) {
|
||||
inflater.inflate(data);
|
||||
if (!crc32OK(data)) {
|
||||
console.warn(Utils.Errors.BAD_CRC + " " + _entryName.toString())
|
||||
}
|
||||
return data;
|
||||
} else {
|
||||
inflater.inflateAsync(function(result) {
|
||||
result.copy(data, 0);
|
||||
if (!crc32OK(data)) {
|
||||
if (callback) callback(data, Utils.Errors.BAD_CRC); //si added error
|
||||
} else { //si added otherwise did not seem to return data.
|
||||
if (callback) callback(data);
|
||||
}
|
||||
})
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (async && callback) callback(new Buffer(0), Utils.Errors.UNKNOWN_METHOD);
|
||||
return Utils.Errors.UNKNOWN_METHOD;
|
||||
}
|
||||
}
|
||||
|
||||
function compress(/*Boolean*/async, /*Function*/callback) {
|
||||
if ((!uncompressedData || !uncompressedData.length) && Buffer.isBuffer(input)) {
|
||||
// no data set or the data wasn't changed to require recompression
|
||||
if (async && callback) callback(getCompressedDataFromZip());
|
||||
return getCompressedDataFromZip();
|
||||
}
|
||||
|
||||
if (uncompressedData.length && !_isDirectory) {
|
||||
var compressedData;
|
||||
// Local file header
|
||||
switch (_entryHeader.method) {
|
||||
case Utils.Constants.STORED:
|
||||
_entryHeader.compressedSize = _entryHeader.size;
|
||||
|
||||
compressedData = new Buffer(uncompressedData.length);
|
||||
uncompressedData.copy(compressedData);
|
||||
|
||||
if (async && callback) callback(compressedData);
|
||||
return compressedData;
|
||||
|
||||
break;
|
||||
default:
|
||||
case Utils.Constants.DEFLATED:
|
||||
|
||||
var deflater = new Methods.Deflater(uncompressedData);
|
||||
if (!async) {
|
||||
var deflated = deflater.deflate();
|
||||
_entryHeader.compressedSize = deflated.length;
|
||||
return deflated;
|
||||
} else {
|
||||
deflater.deflateAsync(function(data) {
|
||||
compressedData = new Buffer(data.length);
|
||||
_entryHeader.compressedSize = data.length;
|
||||
data.copy(compressedData);
|
||||
callback && callback(compressedData);
|
||||
})
|
||||
}
|
||||
deflater = null;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (async && callback) {
|
||||
callback(new Buffer(0));
|
||||
} else {
|
||||
return new Buffer(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function readUInt64LE(buffer, offset) {
|
||||
return (buffer.readUInt32LE(offset + 4) << 4) + buffer.readUInt32LE(offset);
|
||||
}
|
||||
|
||||
function parseExtra(data) {
|
||||
var offset = 0;
|
||||
var signature, size, part;
|
||||
while(offset<data.length) {
|
||||
signature = data.readUInt16LE(offset);
|
||||
offset += 2;
|
||||
size = data.readUInt16LE(offset);
|
||||
offset += 2;
|
||||
part = data.slice(offset, offset+size);
|
||||
offset += size;
|
||||
if(Constants.ID_ZIP64 === signature) {
|
||||
parseZip64ExtendedInformation(part);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Override header field values with values from the ZIP64 extra field
|
||||
function parseZip64ExtendedInformation(data) {
|
||||
var size, compressedSize, offset, diskNumStart;
|
||||
|
||||
if(data.length >= Constants.EF_ZIP64_SCOMP) {
|
||||
size = readUInt64LE(data, Constants.EF_ZIP64_SUNCOMP);
|
||||
if(_entryHeader.size === Constants.EF_ZIP64_OR_32) {
|
||||
_entryHeader.size = size;
|
||||
}
|
||||
}
|
||||
if(data.length >= Constants.EF_ZIP64_RHO) {
|
||||
compressedSize = readUInt64LE(data, Constants.EF_ZIP64_SCOMP);
|
||||
if(_entryHeader.compressedSize === Constants.EF_ZIP64_OR_32) {
|
||||
_entryHeader.compressedSize = compressedSize;
|
||||
}
|
||||
}
|
||||
if(data.length >= Constants.EF_ZIP64_DSN) {
|
||||
offset = readUInt64LE(data, Constants.EF_ZIP64_RHO);
|
||||
if(_entryHeader.offset === Constants.EF_ZIP64_OR_32) {
|
||||
_entryHeader.offset = offset;
|
||||
}
|
||||
}
|
||||
if(data.length >= Constants.EF_ZIP64_DSN+4) {
|
||||
diskNumStart = data.readUInt32LE(Constants.EF_ZIP64_DSN);
|
||||
if(_entryHeader.diskNumStart === Constants.EF_ZIP64_OR_16) {
|
||||
_entryHeader.diskNumStart = diskNumStart;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return {
|
||||
get entryName () { return _entryName.toString(); },
|
||||
get rawEntryName() { return _entryName; },
|
||||
set entryName (val) {
|
||||
_entryName = Utils.toBuffer(val);
|
||||
var lastChar = _entryName[_entryName.length - 1];
|
||||
_isDirectory = (lastChar == 47) || (lastChar == 92);
|
||||
_entryHeader.fileNameLength = _entryName.length;
|
||||
},
|
||||
|
||||
get extra () { return _extra; },
|
||||
set extra (val) {
|
||||
_extra = val;
|
||||
_entryHeader.extraLength = val.length;
|
||||
parseExtra(val);
|
||||
},
|
||||
|
||||
get comment () { return _comment.toString(); },
|
||||
set comment (val) {
|
||||
_comment = Utils.toBuffer(val);
|
||||
_entryHeader.commentLength = _comment.length;
|
||||
},
|
||||
|
||||
get name () { var n = _entryName.toString(); return _isDirectory ? n.substr(n.length - 1).split("/").pop() : n.split("/").pop(); },
|
||||
get isDirectory () { return _isDirectory },
|
||||
|
||||
getCompressedData : function() {
|
||||
return compress(false, null)
|
||||
},
|
||||
|
||||
getCompressedDataAsync : function(/*Function*/callback) {
|
||||
compress(true, callback)
|
||||
},
|
||||
|
||||
setData : function(value) {
|
||||
uncompressedData = Utils.toBuffer(value);
|
||||
if (!_isDirectory && uncompressedData.length) {
|
||||
_entryHeader.size = uncompressedData.length;
|
||||
_entryHeader.method = Utils.Constants.DEFLATED;
|
||||
_entryHeader.crc = Utils.crc32(value);
|
||||
} else { // folders and blank files should be stored
|
||||
_entryHeader.method = Utils.Constants.STORED;
|
||||
}
|
||||
},
|
||||
|
||||
getData : function(pass) {
|
||||
return decompress(false, null, pass);
|
||||
},
|
||||
|
||||
getDataAsync : function(/*Function*/callback, pass) {
|
||||
decompress(true, callback, pass)
|
||||
},
|
||||
|
||||
set attr(attr) { _entryHeader.attr = attr; },
|
||||
get attr() { return _entryHeader.attr; },
|
||||
|
||||
set header(/*Buffer*/data) {
|
||||
_entryHeader.loadFromBinary(data);
|
||||
},
|
||||
|
||||
get header() {
|
||||
return _entryHeader;
|
||||
},
|
||||
|
||||
packHeader : function() {
|
||||
var header = _entryHeader.entryHeaderToBinary();
|
||||
// add
|
||||
_entryName.copy(header, Utils.Constants.CENHDR);
|
||||
if (_entryHeader.extraLength) {
|
||||
_extra.copy(header, Utils.Constants.CENHDR + _entryName.length)
|
||||
}
|
||||
if (_entryHeader.commentLength) {
|
||||
_comment.copy(header, Utils.Constants.CENHDR + _entryName.length + _entryHeader.extraLength, _comment.length);
|
||||
}
|
||||
return header;
|
||||
},
|
||||
|
||||
toString : function() {
|
||||
return '{\n' +
|
||||
'\t"entryName" : "' + _entryName.toString() + "\",\n" +
|
||||
'\t"name" : "' + _entryName.toString().split("/").pop() + "\",\n" +
|
||||
'\t"comment" : "' + _comment.toString() + "\",\n" +
|
||||
'\t"isDirectory" : ' + _isDirectory + ",\n" +
|
||||
'\t"header" : ' + _entryHeader.toString().replace(/\t/mg, "\t\t") + ",\n" +
|
||||
'\t"compressedData" : <' + (input && input.length + " bytes buffer" || "null") + ">\n" +
|
||||
'\t"data" : <' + (uncompressedData && uncompressedData.length + " bytes buffer" || "null") + ">\n" +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
};
|
311
node_modules/adm-zip/zipFile.js
generated
vendored
311
node_modules/adm-zip/zipFile.js
generated
vendored
@ -1,311 +0,0 @@
|
||||
var ZipEntry = require("./zipEntry"),
|
||||
Headers = require("./headers"),
|
||||
Utils = require("./util");
|
||||
|
||||
module.exports = function(/*String|Buffer*/input, /*Number*/inputType) {
|
||||
var entryList = [],
|
||||
entryTable = {},
|
||||
_comment = new Buffer(0),
|
||||
filename = "",
|
||||
fs = require("fs"),
|
||||
inBuffer = null,
|
||||
mainHeader = new Headers.MainHeader();
|
||||
|
||||
if (inputType == Utils.Constants.FILE) {
|
||||
// is a filename
|
||||
filename = input;
|
||||
inBuffer = fs.readFileSync(filename);
|
||||
readMainHeader();
|
||||
} else if (inputType == Utils.Constants.BUFFER) {
|
||||
// is a memory buffer
|
||||
inBuffer = input;
|
||||
readMainHeader();
|
||||
} else {
|
||||
// none. is a new file
|
||||
}
|
||||
|
||||
function readEntries() {
|
||||
entryTable = {};
|
||||
entryList = new Array(mainHeader.diskEntries); // total number of entries
|
||||
var index = mainHeader.offset; // offset of first CEN header
|
||||
for(var i = 0; i < entryList.length; i++) {
|
||||
|
||||
var tmp = index,
|
||||
entry = new ZipEntry(inBuffer);
|
||||
entry.header = inBuffer.slice(tmp, tmp += Utils.Constants.CENHDR);
|
||||
|
||||
entry.entryName = inBuffer.slice(tmp, tmp += entry.header.fileNameLength);
|
||||
|
||||
if (entry.header.extraLength) {
|
||||
entry.extra = inBuffer.slice(tmp, tmp += entry.header.extraLength);
|
||||
}
|
||||
|
||||
if (entry.header.commentLength)
|
||||
entry.comment = inBuffer.slice(tmp, tmp + entry.header.commentLength);
|
||||
|
||||
index += entry.header.entryHeaderSize;
|
||||
|
||||
entryList[i] = entry;
|
||||
entryTable[entry.entryName] = entry;
|
||||
}
|
||||
}
|
||||
|
||||
function readMainHeader() {
|
||||
var i = inBuffer.length - Utils.Constants.ENDHDR, // END header size
|
||||
n = Math.max(0, i - 0xFFFF), // 0xFFFF is the max zip file comment length
|
||||
endOffset = -1; // Start offset of the END header
|
||||
|
||||
for (i; i >= n; i--) {
|
||||
if (inBuffer[i] != 0x50) continue; // quick check that the byte is 'P'
|
||||
if (inBuffer.readUInt32LE(i) == Utils.Constants.ENDSIG) { // "PK\005\006"
|
||||
endOffset = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!~endOffset)
|
||||
throw Utils.Errors.INVALID_FORMAT;
|
||||
|
||||
mainHeader.loadFromBinary(inBuffer.slice(endOffset, endOffset + Utils.Constants.ENDHDR));
|
||||
if (mainHeader.commentLength) {
|
||||
_comment = inBuffer.slice(endOffset + Utils.Constants.ENDHDR);
|
||||
}
|
||||
readEntries();
|
||||
}
|
||||
|
||||
return {
|
||||
/**
|
||||
* Returns an array of ZipEntry objects existent in the current opened archive
|
||||
* @return Array
|
||||
*/
|
||||
get entries () {
|
||||
return entryList;
|
||||
},
|
||||
|
||||
/**
|
||||
* Archive comment
|
||||
* @return {String}
|
||||
*/
|
||||
get comment () { return _comment.toString(); },
|
||||
set comment(val) {
|
||||
mainHeader.commentLength = val.length;
|
||||
_comment = val;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns a reference to the entry with the given name or null if entry is inexistent
|
||||
*
|
||||
* @param entryName
|
||||
* @return ZipEntry
|
||||
*/
|
||||
getEntry : function(/*String*/entryName) {
|
||||
return entryTable[entryName] || null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds the given entry to the entry list
|
||||
*
|
||||
* @param entry
|
||||
*/
|
||||
setEntry : function(/*ZipEntry*/entry) {
|
||||
entryList.push(entry);
|
||||
entryTable[entry.entryName] = entry;
|
||||
mainHeader.totalEntries = entryList.length;
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes the entry with the given name from the entry list.
|
||||
*
|
||||
* If the entry is a directory, then all nested files and directories will be removed
|
||||
* @param entryName
|
||||
*/
|
||||
deleteEntry : function(/*String*/entryName) {
|
||||
var entry = entryTable[entryName];
|
||||
if (entry && entry.isDirectory) {
|
||||
var _self = this;
|
||||
this.getEntryChildren(entry).forEach(function(child) {
|
||||
if (child.entryName != entryName) {
|
||||
_self.deleteEntry(child.entryName)
|
||||
}
|
||||
})
|
||||
}
|
||||
entryList.splice(entryList.indexOf(entry), 1);
|
||||
delete(entryTable[entryName]);
|
||||
mainHeader.totalEntries = entryList.length;
|
||||
},
|
||||
|
||||
/**
|
||||
* Iterates and returns all nested files and directories of the given entry
|
||||
*
|
||||
* @param entry
|
||||
* @return Array
|
||||
*/
|
||||
getEntryChildren : function(/*ZipEntry*/entry) {
|
||||
if (entry.isDirectory) {
|
||||
var list = [],
|
||||
name = entry.entryName,
|
||||
len = name.length;
|
||||
|
||||
entryList.forEach(function(zipEntry) {
|
||||
if (zipEntry.entryName.substr(0, len) == name) {
|
||||
list.push(zipEntry);
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
return []
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the zip file
|
||||
*
|
||||
* @return Buffer
|
||||
*/
|
||||
compressToBuffer : function() {
|
||||
if (entryList.length > 1) {
|
||||
entryList.sort(function(a, b) {
|
||||
var nameA = a.entryName.toLowerCase();
|
||||
var nameB = b.entryName.toLowerCase();
|
||||
if (nameA < nameB) {return -1}
|
||||
if (nameA > nameB) {return 1}
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
|
||||
var totalSize = 0,
|
||||
dataBlock = [],
|
||||
entryHeaders = [],
|
||||
dindex = 0;
|
||||
|
||||
mainHeader.size = 0;
|
||||
mainHeader.offset = 0;
|
||||
|
||||
entryList.forEach(function(entry) {
|
||||
entry.header.offset = dindex;
|
||||
|
||||
// compress data and set local and entry header accordingly. Reason why is called first
|
||||
var compressedData = entry.getCompressedData();
|
||||
// data header
|
||||
var dataHeader = entry.header.dataHeaderToBinary();
|
||||
var postHeader = new Buffer(entry.entryName + entry.extra.toString());
|
||||
var dataLength = dataHeader.length + postHeader.length + compressedData.length;
|
||||
|
||||
dindex += dataLength;
|
||||
|
||||
dataBlock.push(dataHeader);
|
||||
dataBlock.push(postHeader);
|
||||
dataBlock.push(compressedData);
|
||||
|
||||
var entryHeader = entry.packHeader();
|
||||
entryHeaders.push(entryHeader);
|
||||
mainHeader.size += entryHeader.length;
|
||||
totalSize += (dataLength + entryHeader.length);
|
||||
});
|
||||
|
||||
totalSize += mainHeader.mainHeaderSize; // also includes zip file comment length
|
||||
// point to end of data and begining of central directory first record
|
||||
mainHeader.offset = dindex;
|
||||
|
||||
dindex = 0;
|
||||
var outBuffer = new Buffer(totalSize);
|
||||
dataBlock.forEach(function(content) {
|
||||
content.copy(outBuffer, dindex); // write data blocks
|
||||
dindex += content.length;
|
||||
});
|
||||
entryHeaders.forEach(function(content) {
|
||||
content.copy(outBuffer, dindex); // write central directory entries
|
||||
dindex += content.length;
|
||||
});
|
||||
|
||||
var mh = mainHeader.toBinary();
|
||||
if (_comment) {
|
||||
_comment.copy(mh, Utils.Constants.ENDHDR); // add zip file comment
|
||||
}
|
||||
|
||||
mh.copy(outBuffer, dindex); // write main header
|
||||
|
||||
return outBuffer
|
||||
},
|
||||
|
||||
toAsyncBuffer : function(/*Function*/onSuccess,/*Function*/onFail,/*Function*/onItemStart,/*Function*/onItemEnd) {
|
||||
if (entryList.length > 1) {
|
||||
entryList.sort(function(a, b) {
|
||||
var nameA = a.entryName.toLowerCase();
|
||||
var nameB = b.entryName.toLowerCase();
|
||||
if (nameA > nameB) {return -1}
|
||||
if (nameA < nameB) {return 1}
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
|
||||
var totalSize = 0,
|
||||
dataBlock = [],
|
||||
entryHeaders = [],
|
||||
dindex = 0;
|
||||
|
||||
mainHeader.size = 0;
|
||||
mainHeader.offset = 0;
|
||||
|
||||
var compress=function(entryList){
|
||||
var self=arguments.callee;
|
||||
var entry;
|
||||
if(entryList.length){
|
||||
var entry=entryList.pop();
|
||||
var name=entry.entryName + entry.extra.toString();
|
||||
if(onItemStart)onItemStart(name);
|
||||
entry.getCompressedDataAsync(function(compressedData){
|
||||
if(onItemEnd)onItemEnd(name);
|
||||
|
||||
entry.header.offset = dindex;
|
||||
// data header
|
||||
var dataHeader = entry.header.dataHeaderToBinary();
|
||||
var postHeader = new Buffer(name);
|
||||
var dataLength = dataHeader.length + postHeader.length + compressedData.length;
|
||||
|
||||
dindex += dataLength;
|
||||
|
||||
dataBlock.push(dataHeader);
|
||||
dataBlock.push(postHeader);
|
||||
dataBlock.push(compressedData);
|
||||
|
||||
var entryHeader = entry.packHeader();
|
||||
entryHeaders.push(entryHeader);
|
||||
mainHeader.size += entryHeader.length;
|
||||
totalSize += (dataLength + entryHeader.length);
|
||||
|
||||
if(entryList.length){
|
||||
self(entryList);
|
||||
}else{
|
||||
|
||||
|
||||
totalSize += mainHeader.mainHeaderSize; // also includes zip file comment length
|
||||
// point to end of data and begining of central directory first record
|
||||
mainHeader.offset = dindex;
|
||||
|
||||
dindex = 0;
|
||||
var outBuffer = new Buffer(totalSize);
|
||||
dataBlock.forEach(function(content) {
|
||||
content.copy(outBuffer, dindex); // write data blocks
|
||||
dindex += content.length;
|
||||
});
|
||||
entryHeaders.forEach(function(content) {
|
||||
content.copy(outBuffer, dindex); // write central directory entries
|
||||
dindex += content.length;
|
||||
});
|
||||
|
||||
var mh = mainHeader.toBinary();
|
||||
if (_comment) {
|
||||
_comment.copy(mh, Utils.Constants.ENDHDR); // add zip file comment
|
||||
}
|
||||
|
||||
mh.copy(outBuffer, dindex); // write main header
|
||||
|
||||
onSuccess(outBuffer);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
compress(entryList);
|
||||
}
|
||||
}
|
||||
};
|
561
node_modules/babel-runtime/node_modules/core-js/CHANGELOG.md
generated
vendored
561
node_modules/babel-runtime/node_modules/core-js/CHANGELOG.md
generated
vendored
@ -1,561 +0,0 @@
|
||||
## Changelog
|
||||
##### 2.4.1 - 2016.07.18
|
||||
- fixed `script` tag for some parsers, [#204](https://github.com/zloirock/core-js/issues/204), [#216](https://github.com/zloirock/core-js/issues/216)
|
||||
- removed some unused variables, [#217](https://github.com/zloirock/core-js/issues/217), [#218](https://github.com/zloirock/core-js/issues/218)
|
||||
- fixed MS Edge `Reflect.construct` and `Reflect.apply` - they should not allow primitive as `argumentsList` argument
|
||||
|
||||
##### 1.2.7 [LEGACY] - 2016.07.18
|
||||
- some fixes for issues like [#159](https://github.com/zloirock/core-js/issues/159), [#186](https://github.com/zloirock/core-js/issues/186), [#194](https://github.com/zloirock/core-js/issues/194), [#207](https://github.com/zloirock/core-js/issues/207)
|
||||
|
||||
##### 2.4.0 - 2016.05.08
|
||||
- Added `Observable`, [stage 1 proposal](https://github.com/zenparsing/es-observable)
|
||||
- Fixed behavior `Object.{getOwnPropertySymbols, getOwnPropertyDescriptor}` and `Object#propertyIsEnumerable` on `Object.prototype`
|
||||
- `Reflect.construct` and `Reflect.apply` should throw an error if `argumentsList` argument is not an object, [#194](https://github.com/zloirock/core-js/issues/194)
|
||||
|
||||
##### 2.3.0 - 2016.04.24
|
||||
- Added `asap` for enqueuing microtasks, [stage 0 proposal](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask)
|
||||
- Added well-known symbol `Symbol.asyncIterator` for [stage 2 async iteration proposal](https://github.com/tc39/proposal-async-iteration)
|
||||
- Added well-known symbol `Symbol.observable` for [stage 1 observables proposal](https://github.com/zenparsing/es-observable)
|
||||
- `String#{padStart, padEnd}` returns original string if filler is empty string, [TC39 meeting notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-03/march-29.md#stringprototypepadstartpadend)
|
||||
- `Object.values` and `Object.entries` moved to stage 4 from 3, [TC39 meeting notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-03/march-29.md#objectvalues--objectentries)
|
||||
- `System.global` moved to stage 2 from 1, [TC39 meeting notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-03/march-29.md#systemglobal)
|
||||
- `Map#toJSON` and `Set#toJSON` rejected and will be removed from the next major release, [TC39 meeting notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-03/march-31.md#mapprototypetojsonsetprototypetojson)
|
||||
- `Error.isError` withdrawn and will be removed from the next major release, [TC39 meeting notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-03/march-29.md#erroriserror)
|
||||
- Added fallback for `Function#name` on non-extensible functions and functions with broken `toString` conversion, [#193](https://github.com/zloirock/core-js/issues/193)
|
||||
|
||||
##### 2.2.2 - 2016.04.06
|
||||
- Added conversion `-0` to `+0` to `Array#{indexOf, lastIndexOf}`, [ES2016 fix](https://github.com/tc39/ecma262/pull/316)
|
||||
- Added fixes for some `Math` methods in Tor Browser
|
||||
- `Array.{from, of}` no longer calls prototype setters
|
||||
- Added workaround over Chrome DevTools strange behavior, [#186](https://github.com/zloirock/core-js/issues/186)
|
||||
|
||||
##### 2.2.1 - 2016.03.19
|
||||
- Fixed `Object.getOwnPropertyNames(window)` `2.1+` versions bug, [#181](https://github.com/zloirock/core-js/issues/181)
|
||||
|
||||
##### 2.2.0 - 2016.03.15
|
||||
- Added `String#matchAll`, [proposal](https://github.com/tc39/String.prototype.matchAll)
|
||||
- Added `Object#__(define|lookup)[GS]etter__`, [annex B ES2017](https://github.com/tc39/ecma262/pull/381)
|
||||
- Added `@@toPrimitive` methods to `Date` and `Symbol`
|
||||
- Fixed `%TypedArray%#slice` in Edge ~ 13 (throws with `@@species` and wrapped / inherited constructor)
|
||||
- Some other minor fixes
|
||||
|
||||
##### 2.1.5 - 2016.03.12
|
||||
- Improved support NodeJS domains in `Promise#then`, [#180](https://github.com/zloirock/core-js/issues/180)
|
||||
- Added fallback for `Date#toJSON` bug in Qt Script, [#173](https://github.com/zloirock/core-js/issues/173#issuecomment-193972502)
|
||||
|
||||
##### 2.1.4 - 2016.03.08
|
||||
- Added fallback for `Symbol` polyfill in Qt Script, [#173](https://github.com/zloirock/core-js/issues/173)
|
||||
- Added one more fallback for IE11 `Script Access Denied` error with iframes, [#165](https://github.com/zloirock/core-js/issues/165)
|
||||
|
||||
##### 2.1.3 - 2016.02.29
|
||||
- Added fallback for [`es6-promise` package bug](https://github.com/stefanpenner/es6-promise/issues/169), [#176](https://github.com/zloirock/core-js/issues/176)
|
||||
|
||||
##### 2.1.2 - 2016.02.29
|
||||
- Some minor `Promise` fixes:
|
||||
- Browsers `rejectionhandled` event better HTML spec complaint
|
||||
- Errors in unhandled rejection handlers should not cause any problems
|
||||
- Fixed typo in feature detection
|
||||
|
||||
##### 2.1.1 - 2016.02.22
|
||||
- Some `Promise` improvements:
|
||||
- Feature detection:
|
||||
- **Added detection unhandled rejection tracking support - now it's available everywhere**, [#140](https://github.com/zloirock/core-js/issues/140)
|
||||
- Added detection `@@species` pattern support for completely correct subclassing
|
||||
- Removed usage `Object.setPrototypeOf` from feature detection and noisy console message about it in FF
|
||||
- `Promise.all` fixed for some very specific cases
|
||||
|
||||
##### 2.1.0 - 2016.02.09
|
||||
- **API**:
|
||||
- ES5 polyfills are split and logic, used in other polyfills, moved to internal modules
|
||||
- **All entry point works in ES3 environment like IE8- without `core-js/(library/)es5`**
|
||||
- **Added all missed single entry points for ES5 polyfills**
|
||||
- Separated ES5 polyfills moved to the ES6 namespace. Why?
|
||||
- Mainly, for prevent duplication features in different namespaces - logic of most required ES5 polyfills changed in ES6+:
|
||||
- Already added changes for: `Object` statics - should accept primitives, new whitespaces lists in `String#trim`, `parse(Int|float)`, `RegExp#toString` logic, `String#split`, etc
|
||||
- Should be changed in the future: `@@species` and `ToLength` logic in `Array` methods, `Date` parsing, `Function#bind`, etc
|
||||
- Should not be changed only several features like `Array.isArray` and `Date.now`
|
||||
- Some ES5 polyfills required for modern engines
|
||||
- All old entry points should work fine, but in the next major release API can be changed
|
||||
- `Object.getOwnPropertyDescriptors` moved to the stage 3, [January TC39 meeting](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-01/2016-01-28.md#objectgetownpropertydescriptors-to-stage-3-jordan-harband-low-priority-but-super-quick)
|
||||
- Added `umd` option for [custom build process](https://github.com/zloirock/core-js#custom-build-from-external-scripts), [#169](https://github.com/zloirock/core-js/issues/169)
|
||||
- Returned entry points for `Array` statics, removed in `2.0`, for compatibility with `babel` `6` and for future fixes
|
||||
- **Deprecated**:
|
||||
- `Reflect.enumerate` deprecated and will be removed from the next major release, [January TC39 meeting](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-01/2016-01-28.md#5xix-revisit-proxy-enumerate---revisit-decision-to-exhaust-iterator)
|
||||
- **New Features**:
|
||||
- Added [`Reflect` metadata API](https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md) as a pre-strawman feature, [#152](https://github.com/zloirock/core-js/issues/152):
|
||||
- `Reflect.defineMetadata`
|
||||
- `Reflect.deleteMetadata`
|
||||
- `Reflect.getMetadata`
|
||||
- `Reflect.getMetadataKeys`
|
||||
- `Reflect.getOwnMetadata`
|
||||
- `Reflect.getOwnMetadataKeys`
|
||||
- `Reflect.hasMetadata`
|
||||
- `Reflect.hasOwnMetadata`
|
||||
- `Reflect.metadata`
|
||||
- Implementation / fixes `Date#toJSON`
|
||||
- Fixes for `parseInt` and `Number.parseInt`
|
||||
- Fixes for `parseFloat` and `Number.parseFloat`
|
||||
- Fixes for `RegExp#toString`
|
||||
- Fixes for `Array#sort`
|
||||
- Fixes for `Number#toFixed`
|
||||
- Fixes for `Number#toPrecision`
|
||||
- Additional fixes for `String#split` (`RegExp#@@split`)
|
||||
- **Improvements**:
|
||||
- Correct subclassing wrapped collections, `Number` and `RegExp` constructors with native class syntax
|
||||
- Correct support `SharedArrayBuffer` and buffers from other realms in typed arrays wrappers
|
||||
- Additional validations for `Object.{defineProperty, getOwnPropertyDescriptor}` and `Reflect.defineProperty`
|
||||
- **Bug Fixes**:
|
||||
- Fixed some cases `Array#lastIndexOf` with negative second argument
|
||||
|
||||
##### 2.0.3 - 2016.01.11
|
||||
- Added fallback for V8 ~ Chrome 49 `Promise` subclassing bug causes unhandled rejection on feature detection, [#159](https://github.com/zloirock/core-js/issues/159)
|
||||
- Added fix for very specific environments with global `window === null`
|
||||
|
||||
##### 2.0.2 - 2016.01.04
|
||||
- Temporarily removed `length` validation from `Uint8Array` constructor wrapper. Reason - [bug in `ws` module](https://github.com/websockets/ws/pull/645) (-> `socket.io`) which passes to `Buffer` constructor -> `Uint8Array` float and uses [the `V8` bug](https://code.google.com/p/v8/issues/detail?id=4552) for conversion to int (by the spec should be thrown an error). [It creates problems for many people.](https://github.com/karma-runner/karma/issues/1768) I hope, it will be returned after fixing this bug in `V8`.
|
||||
|
||||
##### 2.0.1 - 2015.12.31
|
||||
- forced usage `Promise.resolve` polyfill in the `library` version for correct work with wrapper
|
||||
- `Object.assign` should be defined in the strict mode -> throw an error on extension non-extensible objects, [#154](https://github.com/zloirock/core-js/issues/154)
|
||||
|
||||
##### 2.0.0 - 2015.12.24
|
||||
- added implementations and fixes [Typed Arrays](https://github.com/zloirock/core-js#ecmascript-6-typed-arrays)-related features
|
||||
- `ArrayBuffer`, `ArrayBuffer.isView`, `ArrayBuffer#slice`
|
||||
- `DataView` with all getter / setter methods
|
||||
- `Int8Array`, `Uint8Array`, `Uint8ClampedArray`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `Float32Array` and `Float64Array` constructors
|
||||
- `%TypedArray%.{for, of}`, `%TypedArray%#{copyWithin, every, fill, filter, find, findIndex, forEach, indexOf, includes, join, lastIndexOf, map, reduce, reduceRight, reverse, set, slice, some, sort, subarray, values, keys, entries, @@iterator, ...}`
|
||||
- added [`System.global`](https://github.com/zloirock/core-js#ecmascript-7-proposals), [proposal](https://github.com/tc39/proposal-global), [November TC39 meeting](https://github.com/rwaldron/tc39-notes/tree/master/es7/2015-11/nov-19.md#systemglobal-jhd)
|
||||
- added [`Error.isError`](https://github.com/zloirock/core-js#ecmascript-7-proposals), [proposal](https://github.com/ljharb/proposal-is-error), [November TC39 meeting](https://github.com/rwaldron/tc39-notes/tree/master/es7/2015-11/nov-19.md#jhd-erroriserror)
|
||||
- added [`Math.{iaddh, isubh, imulh, umulh}`](https://github.com/zloirock/core-js#ecmascript-7-proposals), [proposal](https://gist.github.com/BrendanEich/4294d5c212a6d2254703)
|
||||
- `RegExp.escape` moved from the `es7` to the non-standard `core` namespace, [July TC39 meeting](https://github.com/rwaldron/tc39-notes/blob/master/es7/2015-07/july-28.md#62-regexpescape) - too slow, but it's condition of stability, [#116](https://github.com/zloirock/core-js/issues/116)
|
||||
- [`Promise`](https://github.com/zloirock/core-js#ecmascript-6-promise)
|
||||
- some performance optimisations
|
||||
- added basic support [`rejectionHandled` event / `onrejectionhandled` handler](https://github.com/zloirock/core-js#unhandled-rejection-tracking) to the polyfill
|
||||
- removed usage `@@species` from `Promise.{all, race}`, [November TC39 meeting](https://github.com/rwaldron/tc39-notes/tree/master/es7/2015-11/nov-18.md#conclusionresolution-2)
|
||||
- some improvements [collections polyfills](https://github.com/zloirock/core-js#ecmascript-6-collections)
|
||||
- `O(1)` and preventing possible leaks with frozen keys, [#134](https://github.com/zloirock/core-js/issues/134)
|
||||
- correct observable state object keys
|
||||
- renamed `String#{padLeft, padRight}` -> [`String#{padStart, padEnd}`](https://github.com/zloirock/core-js#ecmascript-7-proposals), [proposal](https://github.com/tc39/proposal-string-pad-start-end), [November TC39 meeting](https://github.com/rwaldron/tc39-notes/tree/master/es7/2015-11/nov-17.md#conclusionresolution-2) (they want to rename it on each meeting?O_o), [#132](https://github.com/zloirock/core-js/issues/132)
|
||||
- added [`String#{trimStart, trimEnd}` as aliases for `String#{trimLeft, trimRight}`](https://github.com/zloirock/core-js#ecmascript-7-proposals), [proposal](https://github.com/sebmarkbage/ecmascript-string-left-right-trim), [November TC39 meeting](https://github.com/rwaldron/tc39-notes/tree/master/es7/2015-11/nov-17.md#conclusionresolution-2)
|
||||
- added [annex B HTML methods](https://github.com/zloirock/core-js#ecmascript-6-string) - ugly, but also [the part of the spec](http://www.ecma-international.org/ecma-262/6.0/#sec-string.prototype.anchor)
|
||||
- added little fix for [`Date#toString`](https://github.com/zloirock/core-js#ecmascript-6-date) - `new Date(NaN).toString()` [should be `'Invalid Date'`](http://www.ecma-international.org/ecma-262/6.0/#sec-todatestring)
|
||||
- added [`{keys, values, entries, @@iterator}` methods to DOM collections](https://github.com/zloirock/core-js#iterable-dom-collections) which should have [iterable interface](https://heycam.github.io/webidl/#idl-iterable) or should be [inherited from `Array`](https://heycam.github.io/webidl/#LegacyArrayClass) - `NodeList`, `DOMTokenList`, `MediaList`, `StyleSheetList`, `CSSRuleList`.
|
||||
- removed Mozilla `Array` generics - [deprecated and will be removed from FF](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array#Array_generic_methods), [looks like strawman is dead](http://wiki.ecmascript.org/doku.php?id=strawman:array_statics), available [alternative shim](https://github.com/plusdude/array-generics)
|
||||
- removed `core.log` module
|
||||
- CommonJS API
|
||||
- added entry points for [virtual methods](https://github.com/zloirock/core-js#commonjs-and-prototype-methods-without-global-namespace-pollution)
|
||||
- added entry points for [stages proposals](https://github.com/zloirock/core-js#ecmascript-7-proposals)
|
||||
- some other minor changes
|
||||
- [custom build from external scripts](https://github.com/zloirock/core-js#custom-build-from-external-scripts) moved to the separate package for preventing problems with dependencies
|
||||
- changed `$` prefix for internal modules file names because Team Foundation Server does not support it, [#129](https://github.com/zloirock/core-js/issues/129)
|
||||
- additional fix for `SameValueZero` in V8 ~ Chromium 39-42 collections
|
||||
- additional fix for FF27 `Array` iterator
|
||||
- removed usage shortcuts for `arguments` object - old WebKit bug, [#150](https://github.com/zloirock/core-js/issues/150)
|
||||
- `{Map, Set}#forEach` non-generic, [#144](https://github.com/zloirock/core-js/issues/144)
|
||||
- many other improvements
|
||||
|
||||
##### 1.2.6 - 2015.11.09
|
||||
* reject with `TypeError` on attempt resolve promise itself
|
||||
* correct behavior with broken `Promise` subclass constructors / methods
|
||||
* added `Promise`-based fallback for microtask
|
||||
* fixed V8 and FF `Array#{values, @@iterator}.name`
|
||||
* fixed IE7- `[1, 2].join(undefined) -> '1,2'`
|
||||
* some other fixes / improvements / optimizations
|
||||
|
||||
##### 1.2.5 - 2015.11.02
|
||||
* some more `Number` constructor fixes:
|
||||
* fixed V8 ~ Node 0.8 bug: `Number('+0x1')` should be `NaN`
|
||||
* fixed `Number(' 0b1\n')` case, should be `1`
|
||||
* fixed `Number()` case, should be `0`
|
||||
|
||||
##### 1.2.4 - 2015.11.01
|
||||
* fixed `Number('0b12') -> NaN` case in the shim
|
||||
* fixed V8 ~ Chromium 40- bug - `Weak(Map|Set)#{delete, get, has}` should not throw errors [#124](https://github.com/zloirock/core-js/issues/124)
|
||||
* some other fixes and optimizations
|
||||
|
||||
##### 1.2.3 - 2015.10.23
|
||||
* fixed some problems related old V8 bug `Object('a').propertyIsEnumerable(0) // => false`, for example, `Object.assign({}, 'qwe')` from the last release
|
||||
* fixed `.name` property and `Function#toString` conversion some polyfilled methods
|
||||
* fixed `Math.imul` arity in Safari 8-
|
||||
|
||||
##### 1.2.2 - 2015.10.18
|
||||
* improved optimisations for V8
|
||||
* fixed build process from external packages, [#120](https://github.com/zloirock/core-js/pull/120)
|
||||
* one more `Object.{assign, values, entries}` fix for [**very** specific case](https://github.com/ljharb/proposal-object-values-entries/issues/5)
|
||||
|
||||
##### 1.2.1 - 2015.10.02
|
||||
* replaced fix `JSON.stringify` + `Symbol` behavior from `.toJSON` method to wrapping `JSON.stringify` - little more correct, [compat-table/642](https://github.com/kangax/compat-table/pull/642)
|
||||
* fixed typo which broke tasks scheduler in WebWorkers in old FF, [#114](https://github.com/zloirock/core-js/pull/114)
|
||||
|
||||
##### 1.2.0 - 2015.09.27
|
||||
* added browser [`Promise` rejection hook](#unhandled-rejection-tracking), [#106](https://github.com/zloirock/core-js/issues/106)
|
||||
* added correct [`IsRegExp`](http://www.ecma-international.org/ecma-262/6.0/#sec-isregexp) logic to [`String#{includes, startsWith, endsWith}`](https://github.com/zloirock/core-js/#ecmascript-6-string) and [`RegExp` constructor](https://github.com/zloirock/core-js/#ecmascript-6-regexp), `@@match` case, [example](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/match#Disabling_the_isRegExp_check)
|
||||
* updated [`String#leftPad`](https://github.com/zloirock/core-js/#ecmascript-7-proposals) [with proposal](https://github.com/ljharb/proposal-string-pad-left-right/issues/6): string filler truncated from the right side
|
||||
* replaced V8 [`Object.assign`](https://github.com/zloirock/core-js/#ecmascript-6-object) - its properties order not only [incorrect](https://github.com/sindresorhus/object-assign/issues/22), it is non-deterministic and it causes some problems
|
||||
* fixed behavior with deleted in getters properties for `Object.{`[`assign`](https://github.com/zloirock/core-js/#ecmascript-6-object)`, `[`entries, values`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)`}`, [example](http://goo.gl/iQE01c)
|
||||
* fixed [`Math.sinh`](https://github.com/zloirock/core-js/#ecmascript-6-math) with very small numbers in V8 near Chromium 38
|
||||
* some other fixes and optimizations
|
||||
|
||||
##### 1.1.4 - 2015.09.05
|
||||
* fixed support symbols in FF34-35 [`Object.assign`](https://github.com/zloirock/core-js/#ecmascript-6-object)
|
||||
* fixed [collections iterators](https://github.com/zloirock/core-js/#ecmascript-6-iterators) in FF25-26
|
||||
* fixed non-generic WebKit [`Array.of`](https://github.com/zloirock/core-js/#ecmascript-6-array)
|
||||
* some other fixes and optimizations
|
||||
|
||||
##### 1.1.3 - 2015.08.29
|
||||
* fixed support Node.js domains in [`Promise`](https://github.com/zloirock/core-js/#ecmascript-6-promise), [#103](https://github.com/zloirock/core-js/issues/103)
|
||||
|
||||
##### 1.1.2 - 2015.08.28
|
||||
* added `toJSON` method to [`Symbol`](https://github.com/zloirock/core-js/#ecmascript-6-symbol) polyfill and to MS Edge implementation for expected `JSON.stringify` result w/o patching this method
|
||||
* replaced [`Reflect.construct`](https://github.com/zloirock/core-js/#ecmascript-6-reflect) implementations w/o correct support third argument
|
||||
* fixed `global` detection with changed `document.domain` in ~IE8, [#100](https://github.com/zloirock/core-js/issues/100)
|
||||
|
||||
##### 1.1.1 - 2015.08.20
|
||||
* added more correct microtask implementation for [`Promise`](#ecmascript-6-promise)
|
||||
|
||||
##### 1.1.0 - 2015.08.17
|
||||
* updated [string padding](https://github.com/zloirock/core-js/#ecmascript-7-proposals) to [actual proposal](https://github.com/ljharb/proposal-string-pad-left-right) - renamed, minor internal changes:
|
||||
* `String#lpad` -> `String#padLeft`
|
||||
* `String#rpad` -> `String#padRight`
|
||||
* added [string trim functions](#ecmascript-7-proposals) - [proposal](https://github.com/sebmarkbage/ecmascript-string-left-right-trim), defacto standard - required only for IE11- and fixed for some old engines:
|
||||
* `String#trimLeft`
|
||||
* `String#trimRight`
|
||||
* [`String#trim`](https://github.com/zloirock/core-js/#ecmascript-6-string) fixed for some engines by es6 spec and moved from `es5` to single `es6` module
|
||||
* splitted [`es6.object.statics-accept-primitives`](https://github.com/zloirock/core-js/#ecmascript-6-object)
|
||||
* caps for `freeze`-family `Object` methods moved from `es5` to `es6` namespace and joined with [es6 wrappers](https://github.com/zloirock/core-js/#ecmascript-6-object)
|
||||
* `es5` [namespace](https://github.com/zloirock/core-js/#commonjs) also includes modules, moved to `es6` namespace - you can use it as before
|
||||
* increased `MessageChannel` priority in `$.task`, [#95](https://github.com/zloirock/core-js/issues/95)
|
||||
* does not get `global.Symbol` on each getting iterator, if you wanna use alternative `Symbol` shim - add it before `core-js`
|
||||
* [`Reflect.construct`](https://github.com/zloirock/core-js/#ecmascript-6-reflect) optimized and fixed for some cases
|
||||
* simplified [`Reflect.enumerate`](https://github.com/zloirock/core-js/#ecmascript-6-reflect), see [this question](https://esdiscuss.org/topic/question-about-enumerate-and-property-decision-timing)
|
||||
* some corrections in [`Math.acosh`](https://github.com/zloirock/core-js/#ecmascript-6-math)
|
||||
* fixed [`Math.imul`](https://github.com/zloirock/core-js/#ecmascript-6-math) for old WebKit
|
||||
* some fixes in string / RegExp [well-known symbols](https://github.com/zloirock/core-js/#ecmascript-6-regexp) logic
|
||||
* some other fixes and optimizations
|
||||
|
||||
##### 1.0.1 - 2015.07.31
|
||||
* some fixes for final MS Edge, replaced broken native `Reflect.defineProperty`
|
||||
* some minor fixes and optimizations
|
||||
* changed compression `client/*.min.js` options for safe `Function#name` and `Function#length`, should be fixed [#92](https://github.com/zloirock/core-js/issues/92)
|
||||
|
||||
##### 1.0.0 - 2015.07.22
|
||||
* added logic for [well-known symbols](https://github.com/zloirock/core-js/#ecmascript-6-regexp):
|
||||
* `Symbol.match`
|
||||
* `Symbol.replace`
|
||||
* `Symbol.split`
|
||||
* `Symbol.search`
|
||||
* actualized and optimized work with iterables:
|
||||
* optimized [`Map`, `Set`, `WeakMap`, `WeakSet` constructors](https://github.com/zloirock/core-js/#ecmascript-6-collections), [`Promise.all`, `Promise.race`](https://github.com/zloirock/core-js/#ecmascript-6-promise) for default `Array Iterator`
|
||||
* optimized [`Array.from`](https://github.com/zloirock/core-js/#ecmascript-6-array) for default `Array Iterator`
|
||||
* added [`core.getIteratorMethod`](https://github.com/zloirock/core-js/#ecmascript-6-iterators) helper
|
||||
* uses enumerable properties in shimmed instances - collections, iterators, etc for optimize performance
|
||||
* added support native constructors to [`Reflect.construct`](https://github.com/zloirock/core-js/#ecmascript-6-reflect) with 2 arguments
|
||||
* added support native constructors to [`Function#bind`](https://github.com/zloirock/core-js/#ecmascript-5) shim with `new`
|
||||
* removed obsolete `.clear` methods native [`Weak`-collections](https://github.com/zloirock/core-js/#ecmascript-6-collections)
|
||||
* maximum modularity, reduced minimal custom build size, separated into submodules:
|
||||
* [`es6.reflect`](https://github.com/zloirock/core-js/#ecmascript-6-reflect)
|
||||
* [`es6.regexp`](https://github.com/zloirock/core-js/#ecmascript-6-regexp)
|
||||
* [`es6.math`](https://github.com/zloirock/core-js/#ecmascript-6-math)
|
||||
* [`es6.number`](https://github.com/zloirock/core-js/#ecmascript-6-number)
|
||||
* [`es7.object.to-array`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
|
||||
* [`core.object`](https://github.com/zloirock/core-js/#object)
|
||||
* [`core.string`](https://github.com/zloirock/core-js/#escaping-strings)
|
||||
* [`core.iter-helpers`](https://github.com/zloirock/core-js/#ecmascript-6-iterators)
|
||||
* internal modules (`$`, `$.iter`, etc)
|
||||
* many other optimizations
|
||||
* final cleaning non-standard features
|
||||
* moved `$for` to [separate library](https://github.com/zloirock/forof). This work for syntax - `for-of` loop and comprehensions
|
||||
* moved `Date#{format, formatUTC}` to [separate library](https://github.com/zloirock/dtf). Standard way for this - `ECMA-402`
|
||||
* removed `Math` methods from `Number.prototype`. Slight sugar for simple `Math` methods calling
|
||||
* removed `{Array#, Array, Dict}.turn`
|
||||
* removed `core.global`
|
||||
* uses `ToNumber` instead of `ToLength` in [`Number Iterator`](https://github.com/zloirock/core-js/#number-iterator), `Array.from(2.5)` will be `[0, 1, 2]` instead of `[0, 1]`
|
||||
* fixed [#85](https://github.com/zloirock/core-js/issues/85) - invalid `Promise` unhandled rejection message in nested `setTimeout`
|
||||
* fixed [#86](https://github.com/zloirock/core-js/issues/86) - support FF extensions
|
||||
* fixed [#89](https://github.com/zloirock/core-js/issues/89) - behavior `Number` constructor in strange case
|
||||
|
||||
##### 0.9.18 - 2015.06.17
|
||||
* removed `/` from [`RegExp.escape`](https://github.com/zloirock/core-js/#ecmascript-7-proposals) escaped characters
|
||||
|
||||
##### 0.9.17 - 2015.06.14
|
||||
* updated [`RegExp.escape`](https://github.com/zloirock/core-js/#ecmascript-7-proposals) to the [latest proposal](https://github.com/benjamingr/RexExp.escape)
|
||||
* fixed conflict with webpack dev server + IE buggy behavior
|
||||
|
||||
##### 0.9.16 - 2015.06.11
|
||||
* more correct order resolving thenable in [`Promise`](https://github.com/zloirock/core-js/#ecmascript-6-promise) polyfill
|
||||
* uses polyfill instead of [buggy V8 `Promise`](https://github.com/zloirock/core-js/issues/78)
|
||||
|
||||
##### 0.9.15 - 2015.06.09
|
||||
* [collections](https://github.com/zloirock/core-js/#ecmascript-6-collections) from `library` version return wrapped native instances
|
||||
* fixed collections prototype methods in `library` version
|
||||
* optimized [`Math.hypot`](https://github.com/zloirock/core-js/#ecmascript-6-math)
|
||||
|
||||
##### 0.9.14 - 2015.06.04
|
||||
* updated [`Promise.resolve` behavior](https://esdiscuss.org/topic/fixing-promise-resolve)
|
||||
* added fallback for IE11 buggy `Object.getOwnPropertyNames` + iframe
|
||||
* some other fixes
|
||||
|
||||
##### 0.9.13 - 2015.05.25
|
||||
* added fallback for [`Symbol` polyfill](https://github.com/zloirock/core-js/#ecmascript-6-symbol) for old Android
|
||||
* some other fixes
|
||||
|
||||
##### 0.9.12 - 2015.05.24
|
||||
* different instances `core-js` should use / recognize the same symbols
|
||||
* some fixes
|
||||
|
||||
##### 0.9.11 - 2015.05.18
|
||||
* simplified [custom build](https://github.com/zloirock/core-js/#custom-build)
|
||||
* add custom build js api
|
||||
* added `grunt-cli` to `devDependencies` for `npm run grunt`
|
||||
* some fixes
|
||||
|
||||
##### 0.9.10 - 2015.05.16
|
||||
* wrapped `Function#toString` for correct work wrapped methods / constructors with methods similar to the [`lodash` `isNative`](https://github.com/lodash/lodash/issues/1197)
|
||||
* added proto versions of methods to export object in `default` version for consistency with `library` version
|
||||
|
||||
##### 0.9.9 - 2015.05.14
|
||||
* wrapped `Object#propertyIsEnumerable` for [`Symbol` polyfill](https://github.com/zloirock/core-js/#ecmascript-6-symbol)
|
||||
* [added proto versions of methods to `library` for ES7 bind syntax](https://github.com/zloirock/core-js/issues/65)
|
||||
* some other fixes
|
||||
|
||||
##### 0.9.8 - 2015.05.12
|
||||
* fixed [`Math.hypot`](https://github.com/zloirock/core-js/#ecmascript-6-math) with negative arguments
|
||||
* added `Object#toString.toString` as fallback for [`lodash` `isNative`](https://github.com/lodash/lodash/issues/1197)
|
||||
|
||||
##### 0.9.7 - 2015.05.07
|
||||
* added [support DOM collections](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice#Streamlining_cross-browser_behavior) to IE8- `Array#slice`
|
||||
|
||||
##### 0.9.6 - 2015.05.01
|
||||
* added [`String#lpad`, `String#rpad`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
|
||||
|
||||
##### 0.9.5 - 2015.04.30
|
||||
* added cap for `Function#@@hasInstance`
|
||||
* some fixes and optimizations
|
||||
|
||||
##### 0.9.4 - 2015.04.27
|
||||
* fixed `RegExp` constructor
|
||||
|
||||
##### 0.9.3 - 2015.04.26
|
||||
* some fixes and optimizations
|
||||
|
||||
##### 0.9.2 - 2015.04.25
|
||||
* more correct [`Promise`](https://github.com/zloirock/core-js/#ecmascript-6-promise) unhandled rejection tracking and resolving / rejection priority
|
||||
|
||||
##### 0.9.1 - 2015.04.25
|
||||
* fixed `__proto__`-based [`Promise`](https://github.com/zloirock/core-js/#ecmascript-6-promise) subclassing in some environments
|
||||
|
||||
##### 0.9.0 - 2015.04.24
|
||||
* added correct [symbols](https://github.com/zloirock/core-js/#ecmascript-6-symbol) descriptors
|
||||
* fixed behavior `Object.{assign, create, defineProperty, defineProperties, getOwnPropertyDescriptor, getOwnPropertyDescriptors}` with symbols
|
||||
* added [single entry points](https://github.com/zloirock/core-js/#commonjs) for `Object.{create, defineProperty, defineProperties}`
|
||||
* added [`Map#toJSON`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
|
||||
* removed non-standard methods `Object#[_]` and `Function#only` - they solves syntax problems, but now in compilers available arrows and ~~in near future will be available~~ [available](http://babeljs.io/blog/2015/05/14/function-bind/) [bind syntax](https://github.com/zenparsing/es-function-bind)
|
||||
* removed non-standard undocumented methods `Symbol.{pure, set}`
|
||||
* some fixes and internal changes
|
||||
|
||||
##### 0.8.4 - 2015.04.18
|
||||
* uses `webpack` instead of `browserify` for browser builds - more compression-friendly result
|
||||
|
||||
##### 0.8.3 - 2015.04.14
|
||||
* fixed `Array` statics with single entry points
|
||||
|
||||
##### 0.8.2 - 2015.04.13
|
||||
* [`Math.fround`](https://github.com/zloirock/core-js/#ecmascript-6-math) now also works in IE9-
|
||||
* added [`Set#toJSON`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
|
||||
* some optimizations and fixes
|
||||
|
||||
##### 0.8.1 - 2015.04.03
|
||||
* fixed `Symbol.keyFor`
|
||||
|
||||
##### 0.8.0 - 2015.04.02
|
||||
* changed [CommonJS API](https://github.com/zloirock/core-js/#commonjs)
|
||||
* splitted and renamed some modules
|
||||
* added support ES3 environment (ES5 polyfill) to **all** default versions - size increases slightly (+ ~4kb w/o gzip), many issues disappear, if you don't need it - [simply include only required namespaces / features / modules](https://github.com/zloirock/core-js/#commonjs)
|
||||
* removed [abstract references](https://github.com/zenparsing/es-abstract-refs) support - proposal has been superseded =\
|
||||
* [`$for.isIterable` -> `core.isIterable`, `$for.getIterator` -> `core.getIterator`](https://github.com/zloirock/core-js/#ecmascript-6-iterators), temporary available in old namespace
|
||||
* fixed iterators support in v8 `Promise.all` and `Promise.race`
|
||||
* many other fixes
|
||||
|
||||
##### 0.7.2 - 2015.03.09
|
||||
* some fixes
|
||||
|
||||
##### 0.7.1 - 2015.03.07
|
||||
* some fixes
|
||||
|
||||
##### 0.7.0 - 2015.03.06
|
||||
* rewritten and splitted into [CommonJS modules](https://github.com/zloirock/core-js/#commonjs)
|
||||
|
||||
##### 0.6.1 - 2015.02.24
|
||||
* fixed support [`Object.defineProperty`](https://github.com/zloirock/core-js/#ecmascript-5) with accessors on DOM elements on IE8
|
||||
|
||||
##### 0.6.0 - 2015.02.23
|
||||
* added support safe closing iteration - calling `iterator.return` on abort iteration, if it exists
|
||||
* added basic support [`Promise`](https://github.com/zloirock/core-js/#ecmascript-6-promise) unhandled rejection tracking in shim
|
||||
* added [`Object.getOwnPropertyDescriptors`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
|
||||
* removed `console` cap - creates too many problems
|
||||
* restructuring [namespaces](https://github.com/zloirock/core-js/#custom-build)
|
||||
* some fixes
|
||||
|
||||
##### 0.5.4 - 2015.02.15
|
||||
* some fixes
|
||||
|
||||
##### 0.5.3 - 2015.02.14
|
||||
* added [support binary and octal literals](https://github.com/zloirock/core-js/#ecmascript-6-number) to `Number` constructor
|
||||
* added [`Date#toISOString`](https://github.com/zloirock/core-js/#ecmascript-5)
|
||||
|
||||
##### 0.5.2 - 2015.02.10
|
||||
* some fixes
|
||||
|
||||
##### 0.5.1 - 2015.02.09
|
||||
* some fixes
|
||||
|
||||
##### 0.5.0 - 2015.02.08
|
||||
* systematization of modules
|
||||
* splitted [`es6` module](https://github.com/zloirock/core-js/#ecmascript-6)
|
||||
* splitted `console` module: `web.console` - only cap for missing methods, `core.log` - bound methods & additional features
|
||||
* added [`delay` method](https://github.com/zloirock/core-js/#delay)
|
||||
* some fixes
|
||||
|
||||
##### 0.4.10 - 2015.01.28
|
||||
* [`Object.getOwnPropertySymbols`](https://github.com/zloirock/core-js/#ecmascript-6-symbol) polyfill returns array of wrapped keys
|
||||
|
||||
##### 0.4.9 - 2015.01.27
|
||||
* FF20-24 fix
|
||||
|
||||
##### 0.4.8 - 2015.01.25
|
||||
* some [collections](https://github.com/zloirock/core-js/#ecmascript-6-collections) fixes
|
||||
|
||||
##### 0.4.7 - 2015.01.25
|
||||
* added support frozen objects as [collections](https://github.com/zloirock/core-js/#ecmascript-6-collections) keys
|
||||
|
||||
##### 0.4.6 - 2015.01.21
|
||||
* added [`Object.getOwnPropertySymbols`](https://github.com/zloirock/core-js/#ecmascript-6-symbol)
|
||||
* added [`NodeList.prototype[@@iterator]`](https://github.com/zloirock/core-js/#ecmascript-6-iterators)
|
||||
* added basic `@@species` logic - getter in native constructors
|
||||
* removed `Function#by`
|
||||
* some fixes
|
||||
|
||||
##### 0.4.5 - 2015.01.16
|
||||
* some fixes
|
||||
|
||||
##### 0.4.4 - 2015.01.11
|
||||
* enabled CSP support
|
||||
|
||||
##### 0.4.3 - 2015.01.10
|
||||
* added `Function` instances `name` property for IE9+
|
||||
|
||||
##### 0.4.2 - 2015.01.10
|
||||
* `Object` static methods accept primitives
|
||||
* `RegExp` constructor can alter flags (IE9+)
|
||||
* added `Array.prototype[Symbol.unscopables]`
|
||||
|
||||
##### 0.4.1 - 2015.01.05
|
||||
* some fixes
|
||||
|
||||
##### 0.4.0 - 2015.01.03
|
||||
* added [`es6.reflect`](https://github.com/zloirock/core-js/#ecmascript-6-reflect) module:
|
||||
* added `Reflect.apply`
|
||||
* added `Reflect.construct`
|
||||
* added `Reflect.defineProperty`
|
||||
* added `Reflect.deleteProperty`
|
||||
* added `Reflect.enumerate`
|
||||
* added `Reflect.get`
|
||||
* added `Reflect.getOwnPropertyDescriptor`
|
||||
* added `Reflect.getPrototypeOf`
|
||||
* added `Reflect.has`
|
||||
* added `Reflect.isExtensible`
|
||||
* added `Reflect.preventExtensions`
|
||||
* added `Reflect.set`
|
||||
* added `Reflect.setPrototypeOf`
|
||||
* `core-js` methods now can use external `Symbol.iterator` polyfill
|
||||
* some fixes
|
||||
|
||||
##### 0.3.3 - 2014.12.28
|
||||
* [console cap](https://github.com/zloirock/core-js/#console) excluded from node.js default builds
|
||||
|
||||
##### 0.3.2 - 2014.12.25
|
||||
* added cap for [ES5](https://github.com/zloirock/core-js/#ecmascript-5) freeze-family methods
|
||||
* fixed `console` bug
|
||||
|
||||
##### 0.3.1 - 2014.12.23
|
||||
* some fixes
|
||||
|
||||
##### 0.3.0 - 2014.12.23
|
||||
* Optimize [`Map` & `Set`](https://github.com/zloirock/core-js/#ecmascript-6-collections):
|
||||
* use entries chain on hash table
|
||||
* fast & correct iteration
|
||||
* iterators moved to [`es6`](https://github.com/zloirock/core-js/#ecmascript-6) and [`es6.collections`](https://github.com/zloirock/core-js/#ecmascript-6-collections) modules
|
||||
|
||||
##### 0.2.5 - 2014.12.20
|
||||
* `console` no longer shortcut for `console.log` (compatibility problems)
|
||||
* some fixes
|
||||
|
||||
##### 0.2.4 - 2014.12.17
|
||||
* better compliance of ES6
|
||||
* added [`Math.fround`](https://github.com/zloirock/core-js/#ecmascript-6-math) (IE10+)
|
||||
* some fixes
|
||||
|
||||
##### 0.2.3 - 2014.12.15
|
||||
* [Symbols](https://github.com/zloirock/core-js/#ecmascript-6-symbol):
|
||||
* added option to disable addition setter to `Object.prototype` for Symbol polyfill:
|
||||
* added `Symbol.useSimple`
|
||||
* added `Symbol.useSetter`
|
||||
* added cap for well-known Symbols:
|
||||
* added `Symbol.hasInstance`
|
||||
* added `Symbol.isConcatSpreadable`
|
||||
* added `Symbol.match`
|
||||
* added `Symbol.replace`
|
||||
* added `Symbol.search`
|
||||
* added `Symbol.species`
|
||||
* added `Symbol.split`
|
||||
* added `Symbol.toPrimitive`
|
||||
* added `Symbol.unscopables`
|
||||
|
||||
##### 0.2.2 - 2014.12.13
|
||||
* added [`RegExp#flags`](https://github.com/zloirock/core-js/#ecmascript-6-regexp) ([December 2014 Draft Rev 29](http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts#december_6_2014_draft_rev_29))
|
||||
* added [`String.raw`](https://github.com/zloirock/core-js/#ecmascript-6-string)
|
||||
|
||||
##### 0.2.1 - 2014.12.12
|
||||
* repair converting -0 to +0 in [native collections](https://github.com/zloirock/core-js/#ecmascript-6-collections)
|
||||
|
||||
##### 0.2.0 - 2014.12.06
|
||||
* added [`es7.proposals`](https://github.com/zloirock/core-js/#ecmascript-7-proposals) and [`es7.abstract-refs`](https://github.com/zenparsing/es-abstract-refs) modules
|
||||
* added [`String#at`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
|
||||
* added real [`String Iterator`](https://github.com/zloirock/core-js/#ecmascript-6-iterators), older versions used Array Iterator
|
||||
* added abstract references support:
|
||||
* added `Symbol.referenceGet`
|
||||
* added `Symbol.referenceSet`
|
||||
* added `Symbol.referenceDelete`
|
||||
* added `Function#@@referenceGet`
|
||||
* added `Map#@@referenceGet`
|
||||
* added `Map#@@referenceSet`
|
||||
* added `Map#@@referenceDelete`
|
||||
* added `WeakMap#@@referenceGet`
|
||||
* added `WeakMap#@@referenceSet`
|
||||
* added `WeakMap#@@referenceDelete`
|
||||
* added `Dict.{...methods}[@@referenceGet]`
|
||||
* removed deprecated `.contains` methods
|
||||
* some fixes
|
||||
|
||||
##### 0.1.5 - 2014.12.01
|
||||
* added [`Array#copyWithin`](https://github.com/zloirock/core-js/#ecmascript-6-array)
|
||||
* added [`String#codePointAt`](https://github.com/zloirock/core-js/#ecmascript-6-string)
|
||||
* added [`String.fromCodePoint`](https://github.com/zloirock/core-js/#ecmascript-6-string)
|
||||
|
||||
##### 0.1.4 - 2014.11.27
|
||||
* added [`Dict.mapPairs`](https://github.com/zloirock/core-js/#dict)
|
||||
|
||||
##### 0.1.3 - 2014.11.20
|
||||
* [TC39 November meeting](https://github.com/rwaldron/tc39-notes/tree/master/es6/2014-11):
|
||||
* [`.contains` -> `.includes`](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-11/nov-18.md#51--44-arrayprototypecontains-and-stringprototypecontains)
|
||||
* `String#contains` -> [`String#includes`](https://github.com/zloirock/core-js/#ecmascript-6-string)
|
||||
* `Array#contains` -> [`Array#includes`](https://github.com/zloirock/core-js/#ecmascript-7-proposals)
|
||||
* `Dict.contains` -> [`Dict.includes`](https://github.com/zloirock/core-js/#dict)
|
||||
* [removed `WeakMap#clear`](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-11/nov-19.md#412-should-weakmapweakset-have-a-clear-method-markm)
|
||||
* [removed `WeakSet#clear`](https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-11/nov-19.md#412-should-weakmapweakset-have-a-clear-method-markm)
|
||||
|
||||
##### 0.1.2 - 2014.11.19
|
||||
* `Map` & `Set` bug fix
|
||||
|
||||
##### 0.1.1 - 2014.11.18
|
||||
* public release
|
2
node_modules/babel-runtime/node_modules/core-js/Gruntfile.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/Gruntfile.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('LiveScript');
|
||||
module.exports = require('./build/Gruntfile');
|
19
node_modules/babel-runtime/node_modules/core-js/LICENSE
generated
vendored
19
node_modules/babel-runtime/node_modules/core-js/LICENSE
generated
vendored
@ -1,19 +0,0 @@
|
||||
Copyright (c) 2014-2016 Denis Pushkarev
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
47
node_modules/babel-runtime/node_modules/core-js/bower.json
generated
vendored
47
node_modules/babel-runtime/node_modules/core-js/bower.json
generated
vendored
@ -1,47 +0,0 @@
|
||||
{
|
||||
"name": "core.js",
|
||||
"main": "client/core.js",
|
||||
"version": "2.4.1",
|
||||
"description": "Standard Library",
|
||||
"keywords": [
|
||||
"ES3",
|
||||
"ECMAScript 3",
|
||||
"ES5",
|
||||
"ECMAScript 5",
|
||||
"ES6",
|
||||
"ES2015",
|
||||
"ECMAScript 6",
|
||||
"ECMAScript 2015",
|
||||
"ES7",
|
||||
"ES2016",
|
||||
"ECMAScript 7",
|
||||
"ECMAScript 2016",
|
||||
"Harmony",
|
||||
"Strawman",
|
||||
"Map",
|
||||
"Set",
|
||||
"WeakMap",
|
||||
"WeakSet",
|
||||
"Promise",
|
||||
"Symbol",
|
||||
"TypedArray",
|
||||
"setImmediate",
|
||||
"Dict",
|
||||
"polyfill",
|
||||
"shim"
|
||||
],
|
||||
"authors": [
|
||||
"Denis Pushkarev <zloirock@zloirock.ru> (http://zloirock.ru/)"
|
||||
],
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/zloirock/core-js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zloirock/core-js.git"
|
||||
},
|
||||
"ignore": [
|
||||
"build",
|
||||
"node_modules",
|
||||
"tests"
|
||||
]
|
||||
}
|
84
node_modules/babel-runtime/node_modules/core-js/build/Gruntfile.ls
generated
vendored
84
node_modules/babel-runtime/node_modules/core-js/build/Gruntfile.ls
generated
vendored
@ -1,84 +0,0 @@
|
||||
require! <[./build fs ./config]>
|
||||
module.exports = (grunt)->
|
||||
grunt.loadNpmTasks \grunt-contrib-clean
|
||||
grunt.loadNpmTasks \grunt-contrib-copy
|
||||
grunt.loadNpmTasks \grunt-contrib-uglify
|
||||
grunt.loadNpmTasks \grunt-contrib-watch
|
||||
grunt.loadNpmTasks \grunt-livescript
|
||||
grunt.loadNpmTasks \grunt-karma
|
||||
grunt.initConfig do
|
||||
pkg: grunt.file.readJSON './package.json'
|
||||
uglify: build:
|
||||
files: '<%=grunt.option("path")%>.min.js': '<%=grunt.option("path")%>.js'
|
||||
options:
|
||||
mangle: {+sort, +keep_fnames}
|
||||
compress: {+pure_getters, +keep_fargs, +keep_fnames}
|
||||
sourceMap: on
|
||||
banner: config.banner
|
||||
livescript: src: files:
|
||||
'./tests/helpers.js': './tests/helpers/*'
|
||||
'./tests/tests.js': './tests/tests/*'
|
||||
'./tests/library.js': './tests/library/*'
|
||||
'./tests/es.js': './tests/tests/es*'
|
||||
'./tests/experimental.js': './tests/experimental/*'
|
||||
'./build/index.js': './build/build.ls*'
|
||||
clean: <[./library]>
|
||||
copy: lib: files:
|
||||
* expand: on
|
||||
cwd: './'
|
||||
src: <[es5/** es6/** es7/** stage/** web/** core/** fn/** index.js shim.js]>
|
||||
dest: './library/'
|
||||
* expand: on
|
||||
cwd: './'
|
||||
src: <[modules/*]>
|
||||
dest: './library/'
|
||||
filter: \isFile
|
||||
* expand: on
|
||||
cwd: './modules/library/'
|
||||
src: '*'
|
||||
dest: './library/modules/'
|
||||
watch:
|
||||
core:
|
||||
files: './modules/*'
|
||||
tasks: \default
|
||||
tests:
|
||||
files: './tests/tests/*'
|
||||
tasks: \livescript
|
||||
karma:
|
||||
'options':
|
||||
configFile: './tests/karma.conf.js'
|
||||
browsers: <[PhantomJS]>
|
||||
singleRun: on
|
||||
'default': {}
|
||||
'library': files: <[client/library.js tests/helpers.js tests/library.js]>map -> src: it
|
||||
grunt.registerTask \build (options)->
|
||||
done = @async!
|
||||
build {
|
||||
modules: (options || 'es5,es6,es7,js,web,core')split \,
|
||||
blacklist: (grunt.option(\blacklist) || '')split \,
|
||||
library: grunt.option(\library) in <[yes on true]>
|
||||
umd: grunt.option(\umd) not in <[no off false]>
|
||||
}
|
||||
.then !->
|
||||
grunt.option(\path) || grunt.option(\path, './custom')
|
||||
fs.writeFile grunt.option(\path) + '.js', it, done
|
||||
.catch !->
|
||||
console.error it
|
||||
process.exit 1
|
||||
grunt.registerTask \client ->
|
||||
grunt.option \library ''
|
||||
grunt.option \path './client/core'
|
||||
grunt.task.run <[build:es5,es6,es7,js,web,core uglify]>
|
||||
grunt.registerTask \library ->
|
||||
grunt.option \library 'true'
|
||||
grunt.option \path './client/library'
|
||||
grunt.task.run <[build:es5,es6,es7,js,web,core uglify]>
|
||||
grunt.registerTask \shim ->
|
||||
grunt.option \library ''
|
||||
grunt.option \path './client/shim'
|
||||
grunt.task.run <[build:es5,es6,es7,js,web uglify]>
|
||||
grunt.registerTask \e ->
|
||||
grunt.option \library ''>
|
||||
grunt.option \path './client/core'
|
||||
grunt.task.run <[build:es5,es6,es7,js,web,core,exp uglify]>
|
||||
grunt.registerTask \default <[clean copy client library shim]>
|
62
node_modules/babel-runtime/node_modules/core-js/build/build.ls
generated
vendored
62
node_modules/babel-runtime/node_modules/core-js/build/build.ls
generated
vendored
@ -1,62 +0,0 @@
|
||||
require! {
|
||||
'../library/fn/promise': Promise
|
||||
'./config': {list, experimental, libraryBlacklist, es5SpecialCase, banner}
|
||||
fs: {readFile, writeFile, unlink}
|
||||
path: {join}
|
||||
webpack, temp
|
||||
}
|
||||
|
||||
module.exports = ({modules = [], blacklist = [], library = no, umd = on})->
|
||||
resolve, reject <~! new Promise _
|
||||
let @ = modules.reduce ((memo, it)-> memo[it] = on; memo), {}
|
||||
if @exp => for experimental => @[..] = on
|
||||
if @es5 => for es5SpecialCase => @[..] = on
|
||||
for ns of @
|
||||
if @[ns]
|
||||
for name in list
|
||||
if name.indexOf("#ns.") is 0 and name not in experimental
|
||||
@[name] = on
|
||||
|
||||
if library => blacklist ++= libraryBlacklist
|
||||
for ns in blacklist
|
||||
for name in list
|
||||
if name is ns or name.indexOf("#ns.") is 0
|
||||
@[name] = no
|
||||
|
||||
TARGET = temp.path {suffix: '.js'}
|
||||
|
||||
err, info <~! webpack do
|
||||
entry: list.filter(~> @[it]).map ~>
|
||||
if library => join __dirname, '..', 'library', 'modules', it
|
||||
else join __dirname, '..', 'modules', it
|
||||
output:
|
||||
path: ''
|
||||
filename: TARGET
|
||||
if err => return reject err
|
||||
|
||||
err, script <~! readFile TARGET
|
||||
if err => return reject err
|
||||
|
||||
err <~! unlink TARGET
|
||||
if err => return reject err
|
||||
|
||||
if umd
|
||||
exportScript = """
|
||||
// CommonJS export
|
||||
if(typeof module != 'undefined' && module.exports)module.exports = __e;
|
||||
// RequireJS export
|
||||
else if(typeof define == 'function' && define.amd)define(function(){return __e});
|
||||
// Export to global object
|
||||
else __g.core = __e;
|
||||
"""
|
||||
else
|
||||
exportScript = ""
|
||||
|
||||
resolve """
|
||||
#banner
|
||||
!function(__e, __g, undefined){
|
||||
'use strict';
|
||||
#script
|
||||
#exportScript
|
||||
}(1, 1);
|
||||
"""
|
259
node_modules/babel-runtime/node_modules/core-js/build/config.js
generated
vendored
259
node_modules/babel-runtime/node_modules/core-js/build/config.js
generated
vendored
@ -1,259 +0,0 @@
|
||||
module.exports = {
|
||||
list: [
|
||||
'es6.symbol',
|
||||
'es6.object.define-property',
|
||||
'es6.object.define-properties',
|
||||
'es6.object.get-own-property-descriptor',
|
||||
'es6.object.create',
|
||||
'es6.object.get-prototype-of',
|
||||
'es6.object.keys',
|
||||
'es6.object.get-own-property-names',
|
||||
'es6.object.freeze',
|
||||
'es6.object.seal',
|
||||
'es6.object.prevent-extensions',
|
||||
'es6.object.is-frozen',
|
||||
'es6.object.is-sealed',
|
||||
'es6.object.is-extensible',
|
||||
'es6.object.assign',
|
||||
'es6.object.is',
|
||||
'es6.object.set-prototype-of',
|
||||
'es6.object.to-string',
|
||||
'es6.function.bind',
|
||||
'es6.function.name',
|
||||
'es6.function.has-instance',
|
||||
'es6.number.constructor',
|
||||
'es6.number.to-fixed',
|
||||
'es6.number.to-precision',
|
||||
'es6.number.epsilon',
|
||||
'es6.number.is-finite',
|
||||
'es6.number.is-integer',
|
||||
'es6.number.is-nan',
|
||||
'es6.number.is-safe-integer',
|
||||
'es6.number.max-safe-integer',
|
||||
'es6.number.min-safe-integer',
|
||||
'es6.number.parse-float',
|
||||
'es6.number.parse-int',
|
||||
'es6.parse-int',
|
||||
'es6.parse-float',
|
||||
'es6.math.acosh',
|
||||
'es6.math.asinh',
|
||||
'es6.math.atanh',
|
||||
'es6.math.cbrt',
|
||||
'es6.math.clz32',
|
||||
'es6.math.cosh',
|
||||
'es6.math.expm1',
|
||||
'es6.math.fround',
|
||||
'es6.math.hypot',
|
||||
'es6.math.imul',
|
||||
'es6.math.log10',
|
||||
'es6.math.log1p',
|
||||
'es6.math.log2',
|
||||
'es6.math.sign',
|
||||
'es6.math.sinh',
|
||||
'es6.math.tanh',
|
||||
'es6.math.trunc',
|
||||
'es6.string.from-code-point',
|
||||
'es6.string.raw',
|
||||
'es6.string.trim',
|
||||
'es6.string.code-point-at',
|
||||
'es6.string.ends-with',
|
||||
'es6.string.includes',
|
||||
'es6.string.repeat',
|
||||
'es6.string.starts-with',
|
||||
'es6.string.iterator',
|
||||
'es6.string.anchor',
|
||||
'es6.string.big',
|
||||
'es6.string.blink',
|
||||
'es6.string.bold',
|
||||
'es6.string.fixed',
|
||||
'es6.string.fontcolor',
|
||||
'es6.string.fontsize',
|
||||
'es6.string.italics',
|
||||
'es6.string.link',
|
||||
'es6.string.small',
|
||||
'es6.string.strike',
|
||||
'es6.string.sub',
|
||||
'es6.string.sup',
|
||||
'es6.array.is-array',
|
||||
'es6.array.from',
|
||||
'es6.array.of',
|
||||
'es6.array.join',
|
||||
'es6.array.slice',
|
||||
'es6.array.sort',
|
||||
'es6.array.for-each',
|
||||
'es6.array.map',
|
||||
'es6.array.filter',
|
||||
'es6.array.some',
|
||||
'es6.array.every',
|
||||
'es6.array.reduce',
|
||||
'es6.array.reduce-right',
|
||||
'es6.array.index-of',
|
||||
'es6.array.last-index-of',
|
||||
'es6.array.copy-within',
|
||||
'es6.array.fill',
|
||||
'es6.array.find',
|
||||
'es6.array.find-index',
|
||||
'es6.array.iterator',
|
||||
'es6.array.species',
|
||||
'es6.regexp.constructor',
|
||||
'es6.regexp.to-string',
|
||||
'es6.regexp.flags',
|
||||
'es6.regexp.match',
|
||||
'es6.regexp.replace',
|
||||
'es6.regexp.search',
|
||||
'es6.regexp.split',
|
||||
'es6.promise',
|
||||
'es6.map',
|
||||
'es6.set',
|
||||
'es6.weak-map',
|
||||
'es6.weak-set',
|
||||
'es6.reflect.apply',
|
||||
'es6.reflect.construct',
|
||||
'es6.reflect.define-property',
|
||||
'es6.reflect.delete-property',
|
||||
'es6.reflect.enumerate',
|
||||
'es6.reflect.get',
|
||||
'es6.reflect.get-own-property-descriptor',
|
||||
'es6.reflect.get-prototype-of',
|
||||
'es6.reflect.has',
|
||||
'es6.reflect.is-extensible',
|
||||
'es6.reflect.own-keys',
|
||||
'es6.reflect.prevent-extensions',
|
||||
'es6.reflect.set',
|
||||
'es6.reflect.set-prototype-of',
|
||||
'es6.date.now',
|
||||
'es6.date.to-json',
|
||||
'es6.date.to-iso-string',
|
||||
'es6.date.to-string',
|
||||
'es6.date.to-primitive',
|
||||
'es6.typed.array-buffer',
|
||||
'es6.typed.data-view',
|
||||
'es6.typed.int8-array',
|
||||
'es6.typed.uint8-array',
|
||||
'es6.typed.uint8-clamped-array',
|
||||
'es6.typed.int16-array',
|
||||
'es6.typed.uint16-array',
|
||||
'es6.typed.int32-array',
|
||||
'es6.typed.uint32-array',
|
||||
'es6.typed.float32-array',
|
||||
'es6.typed.float64-array',
|
||||
'es7.array.includes',
|
||||
'es7.string.at',
|
||||
'es7.string.pad-start',
|
||||
'es7.string.pad-end',
|
||||
'es7.string.trim-left',
|
||||
'es7.string.trim-right',
|
||||
'es7.string.match-all',
|
||||
'es7.symbol.async-iterator',
|
||||
'es7.symbol.observable',
|
||||
'es7.object.get-own-property-descriptors',
|
||||
'es7.object.values',
|
||||
'es7.object.entries',
|
||||
'es7.object.enumerable-keys',
|
||||
'es7.object.enumerable-values',
|
||||
'es7.object.enumerable-entries',
|
||||
'es7.object.define-getter',
|
||||
'es7.object.define-setter',
|
||||
'es7.object.lookup-getter',
|
||||
'es7.object.lookup-setter',
|
||||
'es7.map.to-json',
|
||||
'es7.set.to-json',
|
||||
'es7.system.global',
|
||||
'es7.error.is-error',
|
||||
'es7.math.iaddh',
|
||||
'es7.math.isubh',
|
||||
'es7.math.imulh',
|
||||
'es7.math.umulh',
|
||||
'es7.reflect.define-metadata',
|
||||
'es7.reflect.delete-metadata',
|
||||
'es7.reflect.get-metadata',
|
||||
'es7.reflect.get-metadata-keys',
|
||||
'es7.reflect.get-own-metadata',
|
||||
'es7.reflect.get-own-metadata-keys',
|
||||
'es7.reflect.has-metadata',
|
||||
'es7.reflect.has-own-metadata',
|
||||
'es7.reflect.metadata',
|
||||
'es7.asap',
|
||||
'es7.observable',
|
||||
'web.immediate',
|
||||
'web.dom.iterable',
|
||||
'web.timers',
|
||||
'core.dict',
|
||||
'core.get-iterator-method',
|
||||
'core.get-iterator',
|
||||
'core.is-iterable',
|
||||
'core.delay',
|
||||
'core.function.part',
|
||||
'core.object.is-object',
|
||||
'core.object.classof',
|
||||
'core.object.define',
|
||||
'core.object.make',
|
||||
'core.number.iterator',
|
||||
'core.regexp.escape',
|
||||
'core.string.escape-html',
|
||||
'core.string.unescape-html',
|
||||
],
|
||||
experimental: [
|
||||
'es7.object.enumerable-keys',
|
||||
'es7.object.enumerable-values',
|
||||
'es7.object.enumerable-entries',
|
||||
],
|
||||
libraryBlacklist: [
|
||||
'es6.object.to-string',
|
||||
'es6.function.name',
|
||||
'es6.regexp.constructor',
|
||||
'es6.regexp.to-string',
|
||||
'es6.regexp.flags',
|
||||
'es6.regexp.match',
|
||||
'es6.regexp.replace',
|
||||
'es6.regexp.search',
|
||||
'es6.regexp.split',
|
||||
'es6.number.constructor',
|
||||
'es6.date.to-string',
|
||||
'es6.date.to-primitive',
|
||||
],
|
||||
es5SpecialCase: [
|
||||
'es6.object.create',
|
||||
'es6.object.define-property',
|
||||
'es6.object.define-properties',
|
||||
'es6.object.get-own-property-descriptor',
|
||||
'es6.object.get-prototype-of',
|
||||
'es6.object.keys',
|
||||
'es6.object.get-own-property-names',
|
||||
'es6.object.freeze',
|
||||
'es6.object.seal',
|
||||
'es6.object.prevent-extensions',
|
||||
'es6.object.is-frozen',
|
||||
'es6.object.is-sealed',
|
||||
'es6.object.is-extensible',
|
||||
'es6.function.bind',
|
||||
'es6.array.is-array',
|
||||
'es6.array.join',
|
||||
'es6.array.slice',
|
||||
'es6.array.sort',
|
||||
'es6.array.for-each',
|
||||
'es6.array.map',
|
||||
'es6.array.filter',
|
||||
'es6.array.some',
|
||||
'es6.array.every',
|
||||
'es6.array.reduce',
|
||||
'es6.array.reduce-right',
|
||||
'es6.array.index-of',
|
||||
'es6.array.last-index-of',
|
||||
'es6.number.to-fixed',
|
||||
'es6.number.to-precision',
|
||||
'es6.date.now',
|
||||
'es6.date.to-iso-string',
|
||||
'es6.date.to-json',
|
||||
'es6.string.trim',
|
||||
'es6.regexp.to-string',
|
||||
'es6.parse-int',
|
||||
'es6.parse-float',
|
||||
],
|
||||
banner: '/**\n' +
|
||||
' * core-js ' + require('../package').version + '\n' +
|
||||
' * https://github.com/zloirock/core-js\n' +
|
||||
' * License: http://rock.mit-license.org\n' +
|
||||
' * © ' + new Date().getFullYear() + ' Denis Pushkarev\n' +
|
||||
' */'
|
||||
};
|
104
node_modules/babel-runtime/node_modules/core-js/build/index.js
generated
vendored
104
node_modules/babel-runtime/node_modules/core-js/build/index.js
generated
vendored
@ -1,104 +0,0 @@
|
||||
// Generated by LiveScript 1.4.0
|
||||
(function(){
|
||||
var Promise, ref$, list, experimental, libraryBlacklist, es5SpecialCase, banner, readFile, writeFile, unlink, join, webpack, temp;
|
||||
Promise = require('../library/fn/promise');
|
||||
ref$ = require('./config'), list = ref$.list, experimental = ref$.experimental, libraryBlacklist = ref$.libraryBlacklist, es5SpecialCase = ref$.es5SpecialCase, banner = ref$.banner;
|
||||
ref$ = require('fs'), readFile = ref$.readFile, writeFile = ref$.writeFile, unlink = ref$.unlink;
|
||||
join = require('path').join;
|
||||
webpack = require('webpack');
|
||||
temp = require('temp');
|
||||
module.exports = function(arg$){
|
||||
var modules, ref$, blacklist, library, umd, this$ = this;
|
||||
modules = (ref$ = arg$.modules) != null
|
||||
? ref$
|
||||
: [], blacklist = (ref$ = arg$.blacklist) != null
|
||||
? ref$
|
||||
: [], library = (ref$ = arg$.library) != null ? ref$ : false, umd = (ref$ = arg$.umd) != null ? ref$ : true;
|
||||
return new Promise(function(resolve, reject){
|
||||
(function(){
|
||||
var i$, x$, ref$, len$, y$, ns, name, j$, len1$, TARGET, this$ = this;
|
||||
if (this.exp) {
|
||||
for (i$ = 0, len$ = (ref$ = experimental).length; i$ < len$; ++i$) {
|
||||
x$ = ref$[i$];
|
||||
this[x$] = true;
|
||||
}
|
||||
}
|
||||
if (this.es5) {
|
||||
for (i$ = 0, len$ = (ref$ = es5SpecialCase).length; i$ < len$; ++i$) {
|
||||
y$ = ref$[i$];
|
||||
this[y$] = true;
|
||||
}
|
||||
}
|
||||
for (ns in this) {
|
||||
if (this[ns]) {
|
||||
for (i$ = 0, len$ = (ref$ = list).length; i$ < len$; ++i$) {
|
||||
name = ref$[i$];
|
||||
if (name.indexOf(ns + ".") === 0 && !in$(name, experimental)) {
|
||||
this[name] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (library) {
|
||||
blacklist = blacklist.concat(libraryBlacklist);
|
||||
}
|
||||
for (i$ = 0, len$ = blacklist.length; i$ < len$; ++i$) {
|
||||
ns = blacklist[i$];
|
||||
for (j$ = 0, len1$ = (ref$ = list).length; j$ < len1$; ++j$) {
|
||||
name = ref$[j$];
|
||||
if (name === ns || name.indexOf(ns + ".") === 0) {
|
||||
this[name] = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
TARGET = temp.path({
|
||||
suffix: '.js'
|
||||
});
|
||||
webpack({
|
||||
entry: list.filter(function(it){
|
||||
return this$[it];
|
||||
}).map(function(it){
|
||||
if (library) {
|
||||
return join(__dirname, '..', 'library', 'modules', it);
|
||||
} else {
|
||||
return join(__dirname, '..', 'modules', it);
|
||||
}
|
||||
}),
|
||||
output: {
|
||||
path: '',
|
||||
filename: TARGET
|
||||
}
|
||||
}, function(err, info){
|
||||
if (err) {
|
||||
return reject(err);
|
||||
}
|
||||
readFile(TARGET, function(err, script){
|
||||
if (err) {
|
||||
return reject(err);
|
||||
}
|
||||
unlink(TARGET, function(err){
|
||||
var exportScript;
|
||||
if (err) {
|
||||
return reject(err);
|
||||
}
|
||||
if (umd) {
|
||||
exportScript = "// CommonJS export\nif(typeof module != 'undefined' && module.exports)module.exports = __e;\n// RequireJS export\nelse if(typeof define == 'function' && define.amd)define(function(){return __e});\n// Export to global object\nelse __g.core = __e;";
|
||||
} else {
|
||||
exportScript = "";
|
||||
}
|
||||
resolve("" + banner + "\n!function(__e, __g, undefined){\n'use strict';\n" + script + "\n" + exportScript + "\n}(1, 1);");
|
||||
});
|
||||
});
|
||||
});
|
||||
}.call(modules.reduce(function(memo, it){
|
||||
memo[it] = true;
|
||||
return memo;
|
||||
}, {})));
|
||||
});
|
||||
};
|
||||
function in$(x, xs){
|
||||
var i = -1, l = xs.length >>> 0;
|
||||
while (++i < l) if (x === xs[i]) return true;
|
||||
return false;
|
||||
}
|
||||
}).call(this);
|
7613
node_modules/babel-runtime/node_modules/core-js/client/core.js
generated
vendored
7613
node_modules/babel-runtime/node_modules/core-js/client/core.js
generated
vendored
File diff suppressed because it is too large
Load Diff
10
node_modules/babel-runtime/node_modules/core-js/client/core.min.js
generated
vendored
10
node_modules/babel-runtime/node_modules/core-js/client/core.min.js
generated
vendored
File diff suppressed because one or more lines are too long
1
node_modules/babel-runtime/node_modules/core-js/client/core.min.js.map
generated
vendored
1
node_modules/babel-runtime/node_modules/core-js/client/core.min.js.map
generated
vendored
File diff suppressed because one or more lines are too long
7136
node_modules/babel-runtime/node_modules/core-js/client/library.js
generated
vendored
7136
node_modules/babel-runtime/node_modules/core-js/client/library.js
generated
vendored
File diff suppressed because it is too large
Load Diff
10
node_modules/babel-runtime/node_modules/core-js/client/library.min.js
generated
vendored
10
node_modules/babel-runtime/node_modules/core-js/client/library.min.js
generated
vendored
File diff suppressed because one or more lines are too long
1
node_modules/babel-runtime/node_modules/core-js/client/library.min.js.map
generated
vendored
1
node_modules/babel-runtime/node_modules/core-js/client/library.min.js.map
generated
vendored
File diff suppressed because one or more lines are too long
7258
node_modules/babel-runtime/node_modules/core-js/client/shim.js
generated
vendored
7258
node_modules/babel-runtime/node_modules/core-js/client/shim.js
generated
vendored
File diff suppressed because it is too large
Load Diff
10
node_modules/babel-runtime/node_modules/core-js/client/shim.min.js
generated
vendored
10
node_modules/babel-runtime/node_modules/core-js/client/shim.min.js
generated
vendored
File diff suppressed because one or more lines are too long
1
node_modules/babel-runtime/node_modules/core-js/client/shim.min.js.map
generated
vendored
1
node_modules/babel-runtime/node_modules/core-js/client/shim.min.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/babel-runtime/node_modules/core-js/core/_.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/core/_.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/core.function.part');
|
||||
module.exports = require('../modules/_core')._;
|
2
node_modules/babel-runtime/node_modules/core-js/core/delay.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/core/delay.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/core.delay');
|
||||
module.exports = require('../modules/_core').delay;
|
2
node_modules/babel-runtime/node_modules/core-js/core/dict.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/core/dict.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/core.dict');
|
||||
module.exports = require('../modules/_core').Dict;
|
2
node_modules/babel-runtime/node_modules/core-js/core/function.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/core/function.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/core.function.part');
|
||||
module.exports = require('../modules/_core').Function;
|
15
node_modules/babel-runtime/node_modules/core-js/core/index.js
generated
vendored
15
node_modules/babel-runtime/node_modules/core-js/core/index.js
generated
vendored
@ -1,15 +0,0 @@
|
||||
require('../modules/core.dict');
|
||||
require('../modules/core.get-iterator-method');
|
||||
require('../modules/core.get-iterator');
|
||||
require('../modules/core.is-iterable');
|
||||
require('../modules/core.delay');
|
||||
require('../modules/core.function.part');
|
||||
require('../modules/core.object.is-object');
|
||||
require('../modules/core.object.classof');
|
||||
require('../modules/core.object.define');
|
||||
require('../modules/core.object.make');
|
||||
require('../modules/core.number.iterator');
|
||||
require('../modules/core.regexp.escape');
|
||||
require('../modules/core.string.escape-html');
|
||||
require('../modules/core.string.unescape-html');
|
||||
module.exports = require('../modules/_core');
|
2
node_modules/babel-runtime/node_modules/core-js/core/number.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/core/number.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/core.number.iterator');
|
||||
module.exports = require('../modules/_core').Number;
|
5
node_modules/babel-runtime/node_modules/core-js/core/object.js
generated
vendored
5
node_modules/babel-runtime/node_modules/core-js/core/object.js
generated
vendored
@ -1,5 +0,0 @@
|
||||
require('../modules/core.object.is-object');
|
||||
require('../modules/core.object.classof');
|
||||
require('../modules/core.object.define');
|
||||
require('../modules/core.object.make');
|
||||
module.exports = require('../modules/_core').Object;
|
2
node_modules/babel-runtime/node_modules/core-js/core/regexp.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/core/regexp.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/core.regexp.escape');
|
||||
module.exports = require('../modules/_core').RegExp;
|
3
node_modules/babel-runtime/node_modules/core-js/core/string.js
generated
vendored
3
node_modules/babel-runtime/node_modules/core-js/core/string.js
generated
vendored
@ -1,3 +0,0 @@
|
||||
require('../modules/core.string.escape-html');
|
||||
require('../modules/core.string.unescape-html');
|
||||
module.exports = require('../modules/_core').String;
|
37
node_modules/babel-runtime/node_modules/core-js/es5/index.js
generated
vendored
37
node_modules/babel-runtime/node_modules/core-js/es5/index.js
generated
vendored
@ -1,37 +0,0 @@
|
||||
require('../modules/es6.object.create');
|
||||
require('../modules/es6.object.define-property');
|
||||
require('../modules/es6.object.define-properties');
|
||||
require('../modules/es6.object.get-own-property-descriptor');
|
||||
require('../modules/es6.object.get-prototype-of');
|
||||
require('../modules/es6.object.keys');
|
||||
require('../modules/es6.object.get-own-property-names');
|
||||
require('../modules/es6.object.freeze');
|
||||
require('../modules/es6.object.seal');
|
||||
require('../modules/es6.object.prevent-extensions');
|
||||
require('../modules/es6.object.is-frozen');
|
||||
require('../modules/es6.object.is-sealed');
|
||||
require('../modules/es6.object.is-extensible');
|
||||
require('../modules/es6.function.bind');
|
||||
require('../modules/es6.array.is-array');
|
||||
require('../modules/es6.array.join');
|
||||
require('../modules/es6.array.slice');
|
||||
require('../modules/es6.array.sort');
|
||||
require('../modules/es6.array.for-each');
|
||||
require('../modules/es6.array.map');
|
||||
require('../modules/es6.array.filter');
|
||||
require('../modules/es6.array.some');
|
||||
require('../modules/es6.array.every');
|
||||
require('../modules/es6.array.reduce');
|
||||
require('../modules/es6.array.reduce-right');
|
||||
require('../modules/es6.array.index-of');
|
||||
require('../modules/es6.array.last-index-of');
|
||||
require('../modules/es6.number.to-fixed');
|
||||
require('../modules/es6.number.to-precision');
|
||||
require('../modules/es6.date.now');
|
||||
require('../modules/es6.date.to-iso-string');
|
||||
require('../modules/es6.date.to-json');
|
||||
require('../modules/es6.parse-int');
|
||||
require('../modules/es6.parse-float');
|
||||
require('../modules/es6.string.trim');
|
||||
require('../modules/es6.regexp.to-string');
|
||||
module.exports = require('../modules/_core');
|
23
node_modules/babel-runtime/node_modules/core-js/es6/array.js
generated
vendored
23
node_modules/babel-runtime/node_modules/core-js/es6/array.js
generated
vendored
@ -1,23 +0,0 @@
|
||||
require('../modules/es6.string.iterator');
|
||||
require('../modules/es6.array.is-array');
|
||||
require('../modules/es6.array.from');
|
||||
require('../modules/es6.array.of');
|
||||
require('../modules/es6.array.join');
|
||||
require('../modules/es6.array.slice');
|
||||
require('../modules/es6.array.sort');
|
||||
require('../modules/es6.array.for-each');
|
||||
require('../modules/es6.array.map');
|
||||
require('../modules/es6.array.filter');
|
||||
require('../modules/es6.array.some');
|
||||
require('../modules/es6.array.every');
|
||||
require('../modules/es6.array.reduce');
|
||||
require('../modules/es6.array.reduce-right');
|
||||
require('../modules/es6.array.index-of');
|
||||
require('../modules/es6.array.last-index-of');
|
||||
require('../modules/es6.array.copy-within');
|
||||
require('../modules/es6.array.fill');
|
||||
require('../modules/es6.array.find');
|
||||
require('../modules/es6.array.find-index');
|
||||
require('../modules/es6.array.species');
|
||||
require('../modules/es6.array.iterator');
|
||||
module.exports = require('../modules/_core').Array;
|
6
node_modules/babel-runtime/node_modules/core-js/es6/date.js
generated
vendored
6
node_modules/babel-runtime/node_modules/core-js/es6/date.js
generated
vendored
@ -1,6 +0,0 @@
|
||||
require('../modules/es6.date.now');
|
||||
require('../modules/es6.date.to-json');
|
||||
require('../modules/es6.date.to-iso-string');
|
||||
require('../modules/es6.date.to-string');
|
||||
require('../modules/es6.date.to-primitive');
|
||||
module.exports = Date;
|
4
node_modules/babel-runtime/node_modules/core-js/es6/function.js
generated
vendored
4
node_modules/babel-runtime/node_modules/core-js/es6/function.js
generated
vendored
@ -1,4 +0,0 @@
|
||||
require('../modules/es6.function.bind');
|
||||
require('../modules/es6.function.name');
|
||||
require('../modules/es6.function.has-instance');
|
||||
module.exports = require('../modules/_core').Function;
|
138
node_modules/babel-runtime/node_modules/core-js/es6/index.js
generated
vendored
138
node_modules/babel-runtime/node_modules/core-js/es6/index.js
generated
vendored
@ -1,138 +0,0 @@
|
||||
require('../modules/es6.symbol');
|
||||
require('../modules/es6.object.create');
|
||||
require('../modules/es6.object.define-property');
|
||||
require('../modules/es6.object.define-properties');
|
||||
require('../modules/es6.object.get-own-property-descriptor');
|
||||
require('../modules/es6.object.get-prototype-of');
|
||||
require('../modules/es6.object.keys');
|
||||
require('../modules/es6.object.get-own-property-names');
|
||||
require('../modules/es6.object.freeze');
|
||||
require('../modules/es6.object.seal');
|
||||
require('../modules/es6.object.prevent-extensions');
|
||||
require('../modules/es6.object.is-frozen');
|
||||
require('../modules/es6.object.is-sealed');
|
||||
require('../modules/es6.object.is-extensible');
|
||||
require('../modules/es6.object.assign');
|
||||
require('../modules/es6.object.is');
|
||||
require('../modules/es6.object.set-prototype-of');
|
||||
require('../modules/es6.object.to-string');
|
||||
require('../modules/es6.function.bind');
|
||||
require('../modules/es6.function.name');
|
||||
require('../modules/es6.function.has-instance');
|
||||
require('../modules/es6.parse-int');
|
||||
require('../modules/es6.parse-float');
|
||||
require('../modules/es6.number.constructor');
|
||||
require('../modules/es6.number.to-fixed');
|
||||
require('../modules/es6.number.to-precision');
|
||||
require('../modules/es6.number.epsilon');
|
||||
require('../modules/es6.number.is-finite');
|
||||
require('../modules/es6.number.is-integer');
|
||||
require('../modules/es6.number.is-nan');
|
||||
require('../modules/es6.number.is-safe-integer');
|
||||
require('../modules/es6.number.max-safe-integer');
|
||||
require('../modules/es6.number.min-safe-integer');
|
||||
require('../modules/es6.number.parse-float');
|
||||
require('../modules/es6.number.parse-int');
|
||||
require('../modules/es6.math.acosh');
|
||||
require('../modules/es6.math.asinh');
|
||||
require('../modules/es6.math.atanh');
|
||||
require('../modules/es6.math.cbrt');
|
||||
require('../modules/es6.math.clz32');
|
||||
require('../modules/es6.math.cosh');
|
||||
require('../modules/es6.math.expm1');
|
||||
require('../modules/es6.math.fround');
|
||||
require('../modules/es6.math.hypot');
|
||||
require('../modules/es6.math.imul');
|
||||
require('../modules/es6.math.log10');
|
||||
require('../modules/es6.math.log1p');
|
||||
require('../modules/es6.math.log2');
|
||||
require('../modules/es6.math.sign');
|
||||
require('../modules/es6.math.sinh');
|
||||
require('../modules/es6.math.tanh');
|
||||
require('../modules/es6.math.trunc');
|
||||
require('../modules/es6.string.from-code-point');
|
||||
require('../modules/es6.string.raw');
|
||||
require('../modules/es6.string.trim');
|
||||
require('../modules/es6.string.iterator');
|
||||
require('../modules/es6.string.code-point-at');
|
||||
require('../modules/es6.string.ends-with');
|
||||
require('../modules/es6.string.includes');
|
||||
require('../modules/es6.string.repeat');
|
||||
require('../modules/es6.string.starts-with');
|
||||
require('../modules/es6.string.anchor');
|
||||
require('../modules/es6.string.big');
|
||||
require('../modules/es6.string.blink');
|
||||
require('../modules/es6.string.bold');
|
||||
require('../modules/es6.string.fixed');
|
||||
require('../modules/es6.string.fontcolor');
|
||||
require('../modules/es6.string.fontsize');
|
||||
require('../modules/es6.string.italics');
|
||||
require('../modules/es6.string.link');
|
||||
require('../modules/es6.string.small');
|
||||
require('../modules/es6.string.strike');
|
||||
require('../modules/es6.string.sub');
|
||||
require('../modules/es6.string.sup');
|
||||
require('../modules/es6.date.now');
|
||||
require('../modules/es6.date.to-json');
|
||||
require('../modules/es6.date.to-iso-string');
|
||||
require('../modules/es6.date.to-string');
|
||||
require('../modules/es6.date.to-primitive');
|
||||
require('../modules/es6.array.is-array');
|
||||
require('../modules/es6.array.from');
|
||||
require('../modules/es6.array.of');
|
||||
require('../modules/es6.array.join');
|
||||
require('../modules/es6.array.slice');
|
||||
require('../modules/es6.array.sort');
|
||||
require('../modules/es6.array.for-each');
|
||||
require('../modules/es6.array.map');
|
||||
require('../modules/es6.array.filter');
|
||||
require('../modules/es6.array.some');
|
||||
require('../modules/es6.array.every');
|
||||
require('../modules/es6.array.reduce');
|
||||
require('../modules/es6.array.reduce-right');
|
||||
require('../modules/es6.array.index-of');
|
||||
require('../modules/es6.array.last-index-of');
|
||||
require('../modules/es6.array.copy-within');
|
||||
require('../modules/es6.array.fill');
|
||||
require('../modules/es6.array.find');
|
||||
require('../modules/es6.array.find-index');
|
||||
require('../modules/es6.array.species');
|
||||
require('../modules/es6.array.iterator');
|
||||
require('../modules/es6.regexp.constructor');
|
||||
require('../modules/es6.regexp.to-string');
|
||||
require('../modules/es6.regexp.flags');
|
||||
require('../modules/es6.regexp.match');
|
||||
require('../modules/es6.regexp.replace');
|
||||
require('../modules/es6.regexp.search');
|
||||
require('../modules/es6.regexp.split');
|
||||
require('../modules/es6.promise');
|
||||
require('../modules/es6.map');
|
||||
require('../modules/es6.set');
|
||||
require('../modules/es6.weak-map');
|
||||
require('../modules/es6.weak-set');
|
||||
require('../modules/es6.typed.array-buffer');
|
||||
require('../modules/es6.typed.data-view');
|
||||
require('../modules/es6.typed.int8-array');
|
||||
require('../modules/es6.typed.uint8-array');
|
||||
require('../modules/es6.typed.uint8-clamped-array');
|
||||
require('../modules/es6.typed.int16-array');
|
||||
require('../modules/es6.typed.uint16-array');
|
||||
require('../modules/es6.typed.int32-array');
|
||||
require('../modules/es6.typed.uint32-array');
|
||||
require('../modules/es6.typed.float32-array');
|
||||
require('../modules/es6.typed.float64-array');
|
||||
require('../modules/es6.reflect.apply');
|
||||
require('../modules/es6.reflect.construct');
|
||||
require('../modules/es6.reflect.define-property');
|
||||
require('../modules/es6.reflect.delete-property');
|
||||
require('../modules/es6.reflect.enumerate');
|
||||
require('../modules/es6.reflect.get');
|
||||
require('../modules/es6.reflect.get-own-property-descriptor');
|
||||
require('../modules/es6.reflect.get-prototype-of');
|
||||
require('../modules/es6.reflect.has');
|
||||
require('../modules/es6.reflect.is-extensible');
|
||||
require('../modules/es6.reflect.own-keys');
|
||||
require('../modules/es6.reflect.prevent-extensions');
|
||||
require('../modules/es6.reflect.set');
|
||||
require('../modules/es6.reflect.set-prototype-of');
|
||||
module.exports = require('../modules/_core');
|
5
node_modules/babel-runtime/node_modules/core-js/es6/map.js
generated
vendored
5
node_modules/babel-runtime/node_modules/core-js/es6/map.js
generated
vendored
@ -1,5 +0,0 @@
|
||||
require('../modules/es6.object.to-string');
|
||||
require('../modules/es6.string.iterator');
|
||||
require('../modules/web.dom.iterable');
|
||||
require('../modules/es6.map');
|
||||
module.exports = require('../modules/_core').Map;
|
18
node_modules/babel-runtime/node_modules/core-js/es6/math.js
generated
vendored
18
node_modules/babel-runtime/node_modules/core-js/es6/math.js
generated
vendored
@ -1,18 +0,0 @@
|
||||
require('../modules/es6.math.acosh');
|
||||
require('../modules/es6.math.asinh');
|
||||
require('../modules/es6.math.atanh');
|
||||
require('../modules/es6.math.cbrt');
|
||||
require('../modules/es6.math.clz32');
|
||||
require('../modules/es6.math.cosh');
|
||||
require('../modules/es6.math.expm1');
|
||||
require('../modules/es6.math.fround');
|
||||
require('../modules/es6.math.hypot');
|
||||
require('../modules/es6.math.imul');
|
||||
require('../modules/es6.math.log10');
|
||||
require('../modules/es6.math.log1p');
|
||||
require('../modules/es6.math.log2');
|
||||
require('../modules/es6.math.sign');
|
||||
require('../modules/es6.math.sinh');
|
||||
require('../modules/es6.math.tanh');
|
||||
require('../modules/es6.math.trunc');
|
||||
module.exports = require('../modules/_core').Math;
|
13
node_modules/babel-runtime/node_modules/core-js/es6/number.js
generated
vendored
13
node_modules/babel-runtime/node_modules/core-js/es6/number.js
generated
vendored
@ -1,13 +0,0 @@
|
||||
require('../modules/es6.number.constructor');
|
||||
require('../modules/es6.number.to-fixed');
|
||||
require('../modules/es6.number.to-precision');
|
||||
require('../modules/es6.number.epsilon');
|
||||
require('../modules/es6.number.is-finite');
|
||||
require('../modules/es6.number.is-integer');
|
||||
require('../modules/es6.number.is-nan');
|
||||
require('../modules/es6.number.is-safe-integer');
|
||||
require('../modules/es6.number.max-safe-integer');
|
||||
require('../modules/es6.number.min-safe-integer');
|
||||
require('../modules/es6.number.parse-float');
|
||||
require('../modules/es6.number.parse-int');
|
||||
module.exports = require('../modules/_core').Number;
|
20
node_modules/babel-runtime/node_modules/core-js/es6/object.js
generated
vendored
20
node_modules/babel-runtime/node_modules/core-js/es6/object.js
generated
vendored
@ -1,20 +0,0 @@
|
||||
require('../modules/es6.symbol');
|
||||
require('../modules/es6.object.create');
|
||||
require('../modules/es6.object.define-property');
|
||||
require('../modules/es6.object.define-properties');
|
||||
require('../modules/es6.object.get-own-property-descriptor');
|
||||
require('../modules/es6.object.get-prototype-of');
|
||||
require('../modules/es6.object.keys');
|
||||
require('../modules/es6.object.get-own-property-names');
|
||||
require('../modules/es6.object.freeze');
|
||||
require('../modules/es6.object.seal');
|
||||
require('../modules/es6.object.prevent-extensions');
|
||||
require('../modules/es6.object.is-frozen');
|
||||
require('../modules/es6.object.is-sealed');
|
||||
require('../modules/es6.object.is-extensible');
|
||||
require('../modules/es6.object.assign');
|
||||
require('../modules/es6.object.is');
|
||||
require('../modules/es6.object.set-prototype-of');
|
||||
require('../modules/es6.object.to-string');
|
||||
|
||||
module.exports = require('../modules/_core').Object;
|
2
node_modules/babel-runtime/node_modules/core-js/es6/parse-float.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/es6/parse-float.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/es6.parse-float');
|
||||
module.exports = require('../modules/_core').parseFloat;
|
2
node_modules/babel-runtime/node_modules/core-js/es6/parse-int.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/es6/parse-int.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/es6.parse-int');
|
||||
module.exports = require('../modules/_core').parseInt;
|
5
node_modules/babel-runtime/node_modules/core-js/es6/promise.js
generated
vendored
5
node_modules/babel-runtime/node_modules/core-js/es6/promise.js
generated
vendored
@ -1,5 +0,0 @@
|
||||
require('../modules/es6.object.to-string');
|
||||
require('../modules/es6.string.iterator');
|
||||
require('../modules/web.dom.iterable');
|
||||
require('../modules/es6.promise');
|
||||
module.exports = require('../modules/_core').Promise;
|
15
node_modules/babel-runtime/node_modules/core-js/es6/reflect.js
generated
vendored
15
node_modules/babel-runtime/node_modules/core-js/es6/reflect.js
generated
vendored
@ -1,15 +0,0 @@
|
||||
require('../modules/es6.reflect.apply');
|
||||
require('../modules/es6.reflect.construct');
|
||||
require('../modules/es6.reflect.define-property');
|
||||
require('../modules/es6.reflect.delete-property');
|
||||
require('../modules/es6.reflect.enumerate');
|
||||
require('../modules/es6.reflect.get');
|
||||
require('../modules/es6.reflect.get-own-property-descriptor');
|
||||
require('../modules/es6.reflect.get-prototype-of');
|
||||
require('../modules/es6.reflect.has');
|
||||
require('../modules/es6.reflect.is-extensible');
|
||||
require('../modules/es6.reflect.own-keys');
|
||||
require('../modules/es6.reflect.prevent-extensions');
|
||||
require('../modules/es6.reflect.set');
|
||||
require('../modules/es6.reflect.set-prototype-of');
|
||||
module.exports = require('../modules/_core').Reflect;
|
8
node_modules/babel-runtime/node_modules/core-js/es6/regexp.js
generated
vendored
8
node_modules/babel-runtime/node_modules/core-js/es6/regexp.js
generated
vendored
@ -1,8 +0,0 @@
|
||||
require('../modules/es6.regexp.constructor');
|
||||
require('../modules/es6.regexp.to-string');
|
||||
require('../modules/es6.regexp.flags');
|
||||
require('../modules/es6.regexp.match');
|
||||
require('../modules/es6.regexp.replace');
|
||||
require('../modules/es6.regexp.search');
|
||||
require('../modules/es6.regexp.split');
|
||||
module.exports = require('../modules/_core').RegExp;
|
5
node_modules/babel-runtime/node_modules/core-js/es6/set.js
generated
vendored
5
node_modules/babel-runtime/node_modules/core-js/es6/set.js
generated
vendored
@ -1,5 +0,0 @@
|
||||
require('../modules/es6.object.to-string');
|
||||
require('../modules/es6.string.iterator');
|
||||
require('../modules/web.dom.iterable');
|
||||
require('../modules/es6.set');
|
||||
module.exports = require('../modules/_core').Set;
|
27
node_modules/babel-runtime/node_modules/core-js/es6/string.js
generated
vendored
27
node_modules/babel-runtime/node_modules/core-js/es6/string.js
generated
vendored
@ -1,27 +0,0 @@
|
||||
require('../modules/es6.string.from-code-point');
|
||||
require('../modules/es6.string.raw');
|
||||
require('../modules/es6.string.trim');
|
||||
require('../modules/es6.string.iterator');
|
||||
require('../modules/es6.string.code-point-at');
|
||||
require('../modules/es6.string.ends-with');
|
||||
require('../modules/es6.string.includes');
|
||||
require('../modules/es6.string.repeat');
|
||||
require('../modules/es6.string.starts-with');
|
||||
require('../modules/es6.string.anchor');
|
||||
require('../modules/es6.string.big');
|
||||
require('../modules/es6.string.blink');
|
||||
require('../modules/es6.string.bold');
|
||||
require('../modules/es6.string.fixed');
|
||||
require('../modules/es6.string.fontcolor');
|
||||
require('../modules/es6.string.fontsize');
|
||||
require('../modules/es6.string.italics');
|
||||
require('../modules/es6.string.link');
|
||||
require('../modules/es6.string.small');
|
||||
require('../modules/es6.string.strike');
|
||||
require('../modules/es6.string.sub');
|
||||
require('../modules/es6.string.sup');
|
||||
require('../modules/es6.regexp.match');
|
||||
require('../modules/es6.regexp.replace');
|
||||
require('../modules/es6.regexp.search');
|
||||
require('../modules/es6.regexp.split');
|
||||
module.exports = require('../modules/_core').String;
|
3
node_modules/babel-runtime/node_modules/core-js/es6/symbol.js
generated
vendored
3
node_modules/babel-runtime/node_modules/core-js/es6/symbol.js
generated
vendored
@ -1,3 +0,0 @@
|
||||
require('../modules/es6.symbol');
|
||||
require('../modules/es6.object.to-string');
|
||||
module.exports = require('../modules/_core').Symbol;
|
13
node_modules/babel-runtime/node_modules/core-js/es6/typed.js
generated
vendored
13
node_modules/babel-runtime/node_modules/core-js/es6/typed.js
generated
vendored
@ -1,13 +0,0 @@
|
||||
require('../modules/es6.typed.array-buffer');
|
||||
require('../modules/es6.typed.data-view');
|
||||
require('../modules/es6.typed.int8-array');
|
||||
require('../modules/es6.typed.uint8-array');
|
||||
require('../modules/es6.typed.uint8-clamped-array');
|
||||
require('../modules/es6.typed.int16-array');
|
||||
require('../modules/es6.typed.uint16-array');
|
||||
require('../modules/es6.typed.int32-array');
|
||||
require('../modules/es6.typed.uint32-array');
|
||||
require('../modules/es6.typed.float32-array');
|
||||
require('../modules/es6.typed.float64-array');
|
||||
require('../modules/es6.object.to-string');
|
||||
module.exports = require('../modules/_core');
|
4
node_modules/babel-runtime/node_modules/core-js/es6/weak-map.js
generated
vendored
4
node_modules/babel-runtime/node_modules/core-js/es6/weak-map.js
generated
vendored
@ -1,4 +0,0 @@
|
||||
require('../modules/es6.object.to-string');
|
||||
require('../modules/es6.array.iterator');
|
||||
require('../modules/es6.weak-map');
|
||||
module.exports = require('../modules/_core').WeakMap;
|
4
node_modules/babel-runtime/node_modules/core-js/es6/weak-set.js
generated
vendored
4
node_modules/babel-runtime/node_modules/core-js/es6/weak-set.js
generated
vendored
@ -1,4 +0,0 @@
|
||||
require('../modules/es6.object.to-string');
|
||||
require('../modules/web.dom.iterable');
|
||||
require('../modules/es6.weak-set');
|
||||
module.exports = require('../modules/_core').WeakSet;
|
2
node_modules/babel-runtime/node_modules/core-js/es7/array.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/es7/array.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/es7.array.includes');
|
||||
module.exports = require('../modules/_core').Array;
|
2
node_modules/babel-runtime/node_modules/core-js/es7/asap.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/es7/asap.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/es7.asap');
|
||||
module.exports = require('../modules/_core').asap;
|
2
node_modules/babel-runtime/node_modules/core-js/es7/error.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/es7/error.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/es7.error.is-error');
|
||||
module.exports = require('../modules/_core').Error;
|
36
node_modules/babel-runtime/node_modules/core-js/es7/index.js
generated
vendored
36
node_modules/babel-runtime/node_modules/core-js/es7/index.js
generated
vendored
@ -1,36 +0,0 @@
|
||||
require('../modules/es7.array.includes');
|
||||
require('../modules/es7.string.at');
|
||||
require('../modules/es7.string.pad-start');
|
||||
require('../modules/es7.string.pad-end');
|
||||
require('../modules/es7.string.trim-left');
|
||||
require('../modules/es7.string.trim-right');
|
||||
require('../modules/es7.string.match-all');
|
||||
require('../modules/es7.symbol.async-iterator');
|
||||
require('../modules/es7.symbol.observable');
|
||||
require('../modules/es7.object.get-own-property-descriptors');
|
||||
require('../modules/es7.object.values');
|
||||
require('../modules/es7.object.entries');
|
||||
require('../modules/es7.object.define-getter');
|
||||
require('../modules/es7.object.define-setter');
|
||||
require('../modules/es7.object.lookup-getter');
|
||||
require('../modules/es7.object.lookup-setter');
|
||||
require('../modules/es7.map.to-json');
|
||||
require('../modules/es7.set.to-json');
|
||||
require('../modules/es7.system.global');
|
||||
require('../modules/es7.error.is-error');
|
||||
require('../modules/es7.math.iaddh');
|
||||
require('../modules/es7.math.isubh');
|
||||
require('../modules/es7.math.imulh');
|
||||
require('../modules/es7.math.umulh');
|
||||
require('../modules/es7.reflect.define-metadata');
|
||||
require('../modules/es7.reflect.delete-metadata');
|
||||
require('../modules/es7.reflect.get-metadata');
|
||||
require('../modules/es7.reflect.get-metadata-keys');
|
||||
require('../modules/es7.reflect.get-own-metadata');
|
||||
require('../modules/es7.reflect.get-own-metadata-keys');
|
||||
require('../modules/es7.reflect.has-metadata');
|
||||
require('../modules/es7.reflect.has-own-metadata');
|
||||
require('../modules/es7.reflect.metadata');
|
||||
require('../modules/es7.asap');
|
||||
require('../modules/es7.observable');
|
||||
module.exports = require('../modules/_core');
|
2
node_modules/babel-runtime/node_modules/core-js/es7/map.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/es7/map.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/es7.map.to-json');
|
||||
module.exports = require('../modules/_core').Map;
|
5
node_modules/babel-runtime/node_modules/core-js/es7/math.js
generated
vendored
5
node_modules/babel-runtime/node_modules/core-js/es7/math.js
generated
vendored
@ -1,5 +0,0 @@
|
||||
require('../modules/es7.math.iaddh');
|
||||
require('../modules/es7.math.isubh');
|
||||
require('../modules/es7.math.imulh');
|
||||
require('../modules/es7.math.umulh');
|
||||
module.exports = require('../modules/_core').Math;
|
8
node_modules/babel-runtime/node_modules/core-js/es7/object.js
generated
vendored
8
node_modules/babel-runtime/node_modules/core-js/es7/object.js
generated
vendored
@ -1,8 +0,0 @@
|
||||
require('../modules/es7.object.get-own-property-descriptors');
|
||||
require('../modules/es7.object.values');
|
||||
require('../modules/es7.object.entries');
|
||||
require('../modules/es7.object.define-getter');
|
||||
require('../modules/es7.object.define-setter');
|
||||
require('../modules/es7.object.lookup-getter');
|
||||
require('../modules/es7.object.lookup-setter');
|
||||
module.exports = require('../modules/_core').Object;
|
7
node_modules/babel-runtime/node_modules/core-js/es7/observable.js
generated
vendored
7
node_modules/babel-runtime/node_modules/core-js/es7/observable.js
generated
vendored
@ -1,7 +0,0 @@
|
||||
require('../modules/es6.object.to-string');
|
||||
require('../modules/es6.string.iterator');
|
||||
require('../modules/web.dom.iterable');
|
||||
require('../modules/es6.promise');
|
||||
require('../modules/es7.symbol.observable');
|
||||
require('../modules/es7.observable');
|
||||
module.exports = require('../modules/_core').Observable;
|
10
node_modules/babel-runtime/node_modules/core-js/es7/reflect.js
generated
vendored
10
node_modules/babel-runtime/node_modules/core-js/es7/reflect.js
generated
vendored
@ -1,10 +0,0 @@
|
||||
require('../modules/es7.reflect.define-metadata');
|
||||
require('../modules/es7.reflect.delete-metadata');
|
||||
require('../modules/es7.reflect.get-metadata');
|
||||
require('../modules/es7.reflect.get-metadata-keys');
|
||||
require('../modules/es7.reflect.get-own-metadata');
|
||||
require('../modules/es7.reflect.get-own-metadata-keys');
|
||||
require('../modules/es7.reflect.has-metadata');
|
||||
require('../modules/es7.reflect.has-own-metadata');
|
||||
require('../modules/es7.reflect.metadata');
|
||||
module.exports = require('../modules/_core').Reflect;
|
2
node_modules/babel-runtime/node_modules/core-js/es7/set.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/es7/set.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/es7.set.to-json');
|
||||
module.exports = require('../modules/_core').Set;
|
7
node_modules/babel-runtime/node_modules/core-js/es7/string.js
generated
vendored
7
node_modules/babel-runtime/node_modules/core-js/es7/string.js
generated
vendored
@ -1,7 +0,0 @@
|
||||
require('../modules/es7.string.at');
|
||||
require('../modules/es7.string.pad-start');
|
||||
require('../modules/es7.string.pad-end');
|
||||
require('../modules/es7.string.trim-left');
|
||||
require('../modules/es7.string.trim-right');
|
||||
require('../modules/es7.string.match-all');
|
||||
module.exports = require('../modules/_core').String;
|
3
node_modules/babel-runtime/node_modules/core-js/es7/symbol.js
generated
vendored
3
node_modules/babel-runtime/node_modules/core-js/es7/symbol.js
generated
vendored
@ -1,3 +0,0 @@
|
||||
require('../modules/es7.symbol.async-iterator');
|
||||
require('../modules/es7.symbol.observable');
|
||||
module.exports = require('../modules/_core').Symbol;
|
2
node_modules/babel-runtime/node_modules/core-js/es7/system.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/es7/system.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/es7.system.global');
|
||||
module.exports = require('../modules/_core').System;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/_.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/_.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../modules/core.function.part');
|
||||
module.exports = require('../modules/_core')._;
|
4
node_modules/babel-runtime/node_modules/core-js/fn/array/concat.js
generated
vendored
4
node_modules/babel-runtime/node_modules/core-js/fn/array/concat.js
generated
vendored
@ -1,4 +0,0 @@
|
||||
// for a legacy code and future fixes
|
||||
module.exports = function(){
|
||||
return Function.call.apply(Array.prototype.concat, arguments);
|
||||
};
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/copy-within.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/copy-within.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.copy-within');
|
||||
module.exports = require('../../modules/_core').Array.copyWithin;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/entries.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/entries.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.iterator');
|
||||
module.exports = require('../../modules/_core').Array.entries;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/every.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/every.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.every');
|
||||
module.exports = require('../../modules/_core').Array.every;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/fill.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/fill.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.fill');
|
||||
module.exports = require('../../modules/_core').Array.fill;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/filter.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/filter.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.filter');
|
||||
module.exports = require('../../modules/_core').Array.filter;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/find-index.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/find-index.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.find-index');
|
||||
module.exports = require('../../modules/_core').Array.findIndex;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/find.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/find.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.find');
|
||||
module.exports = require('../../modules/_core').Array.find;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/for-each.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/for-each.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.for-each');
|
||||
module.exports = require('../../modules/_core').Array.forEach;
|
3
node_modules/babel-runtime/node_modules/core-js/fn/array/from.js
generated
vendored
3
node_modules/babel-runtime/node_modules/core-js/fn/array/from.js
generated
vendored
@ -1,3 +0,0 @@
|
||||
require('../../modules/es6.string.iterator');
|
||||
require('../../modules/es6.array.from');
|
||||
module.exports = require('../../modules/_core').Array.from;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/includes.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/includes.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es7.array.includes');
|
||||
module.exports = require('../../modules/_core').Array.includes;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/index-of.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/index-of.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.index-of');
|
||||
module.exports = require('../../modules/_core').Array.indexOf;
|
24
node_modules/babel-runtime/node_modules/core-js/fn/array/index.js
generated
vendored
24
node_modules/babel-runtime/node_modules/core-js/fn/array/index.js
generated
vendored
@ -1,24 +0,0 @@
|
||||
require('../../modules/es6.string.iterator');
|
||||
require('../../modules/es6.array.is-array');
|
||||
require('../../modules/es6.array.from');
|
||||
require('../../modules/es6.array.of');
|
||||
require('../../modules/es6.array.join');
|
||||
require('../../modules/es6.array.slice');
|
||||
require('../../modules/es6.array.sort');
|
||||
require('../../modules/es6.array.for-each');
|
||||
require('../../modules/es6.array.map');
|
||||
require('../../modules/es6.array.filter');
|
||||
require('../../modules/es6.array.some');
|
||||
require('../../modules/es6.array.every');
|
||||
require('../../modules/es6.array.reduce');
|
||||
require('../../modules/es6.array.reduce-right');
|
||||
require('../../modules/es6.array.index-of');
|
||||
require('../../modules/es6.array.last-index-of');
|
||||
require('../../modules/es6.array.copy-within');
|
||||
require('../../modules/es6.array.fill');
|
||||
require('../../modules/es6.array.find');
|
||||
require('../../modules/es6.array.find-index');
|
||||
require('../../modules/es6.array.species');
|
||||
require('../../modules/es6.array.iterator');
|
||||
require('../../modules/es7.array.includes');
|
||||
module.exports = require('../../modules/_core').Array;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/is-array.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/is-array.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.is-array');
|
||||
module.exports = require('../../modules/_core').Array.isArray;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/iterator.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/iterator.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.iterator');
|
||||
module.exports = require('../../modules/_core').Array.values;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/join.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/join.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.join');
|
||||
module.exports = require('../../modules/_core').Array.join;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/keys.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/keys.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.iterator');
|
||||
module.exports = require('../../modules/_core').Array.keys;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/last-index-of.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/last-index-of.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.last-index-of');
|
||||
module.exports = require('../../modules/_core').Array.lastIndexOf;
|
2
node_modules/babel-runtime/node_modules/core-js/fn/array/map.js
generated
vendored
2
node_modules/babel-runtime/node_modules/core-js/fn/array/map.js
generated
vendored
@ -1,2 +0,0 @@
|
||||
require('../../modules/es6.array.map');
|
||||
module.exports = require('../../modules/_core').Array.map;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user