flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
21
BACK_BACK/node_modules/@parcel/utils/LICENSE
generated
vendored
Executable file
21
BACK_BACK/node_modules/@parcel/utils/LICENSE
generated
vendored
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2017-present Devon Govett
|
||||
|
||||
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.
|
||||
10
BACK_BACK/node_modules/@parcel/utils/index.js
generated
vendored
Executable file
10
BACK_BACK/node_modules/@parcel/utils/index.js
generated
vendored
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
// Node 8 supports native async functions - no need to use compiled code!
|
||||
exports.promisify =
|
||||
parseInt(process.versions.node, 10) < 8
|
||||
? require('./lib/promisify')
|
||||
: require('./src/promisify');
|
||||
|
||||
exports.errorUtils =
|
||||
parseInt(process.versions.node, 10) < 8
|
||||
? require('./lib/errorUtils')
|
||||
: require('./src/errorUtils');
|
||||
26
BACK_BACK/node_modules/@parcel/utils/package.json
generated
vendored
Executable file
26
BACK_BACK/node_modules/@parcel/utils/package.json
generated
vendored
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"name": "@parcel/utils",
|
||||
"version": "1.11.0",
|
||||
"description": "Blazing fast, zero configuration web application bundler",
|
||||
"main": "index.js",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/parcel-bundler/parcel.git"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6.0.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo this package has no tests yet",
|
||||
"test-ci": "yarn build && yarn test",
|
||||
"format": "prettier --write \"./{src,bin,test}/**/*.{js,json,md}\"",
|
||||
"lint": "eslint . && prettier \"./{src,bin,test}/**/*.{js,json,md}\" --list-different",
|
||||
"build": "babel src -d lib",
|
||||
"prepublish": "yarn build"
|
||||
},
|
||||
"gitHead": "34eb91e8e6991073e594bff731c333d09b0403b5"
|
||||
}
|
||||
8
BACK_BACK/node_modules/@parcel/utils/src/.babelrc
generated
vendored
Executable file
8
BACK_BACK/node_modules/@parcel/utils/src/.babelrc
generated
vendored
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"presets": [["@babel/preset-env", {
|
||||
"targets": {
|
||||
"node": "6"
|
||||
}
|
||||
}]],
|
||||
"plugins": ["@babel/plugin-transform-runtime"]
|
||||
}
|
||||
3
BACK_BACK/node_modules/@parcel/utils/src/.eslintrc.json
generated
vendored
Executable file
3
BACK_BACK/node_modules/@parcel/utils/src/.eslintrc.json
generated
vendored
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"extends": "../../../../.eslintrc.json"
|
||||
}
|
||||
31
BACK_BACK/node_modules/@parcel/utils/src/errorUtils.js
generated
vendored
Executable file
31
BACK_BACK/node_modules/@parcel/utils/src/errorUtils.js
generated
vendored
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
function errorToJson(error) {
|
||||
if (typeof error === 'string') {
|
||||
return {message: error};
|
||||
}
|
||||
|
||||
if (error instanceof Error) {
|
||||
let jsonError = {
|
||||
message: error.message,
|
||||
stack: error.stack,
|
||||
name: error.name
|
||||
};
|
||||
// Add all custom codeFrame properties
|
||||
Object.keys(error).forEach(key => {
|
||||
jsonError[key] = error[key];
|
||||
});
|
||||
return jsonError;
|
||||
}
|
||||
}
|
||||
|
||||
function jsonToError(json) {
|
||||
if (json) {
|
||||
let error = new Error(json.message);
|
||||
Object.keys(json).forEach(key => {
|
||||
error[key] = json[key];
|
||||
});
|
||||
return error;
|
||||
}
|
||||
}
|
||||
|
||||
exports.errorToJson = errorToJson;
|
||||
exports.jsonToError = jsonToError;
|
||||
13
BACK_BACK/node_modules/@parcel/utils/src/promisify.js
generated
vendored
Executable file
13
BACK_BACK/node_modules/@parcel/utils/src/promisify.js
generated
vendored
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
module.exports = function(fn) {
|
||||
return function(...args) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
fn(...args, function(err, ...res) {
|
||||
if (err) return reject(err);
|
||||
|
||||
if (res.length === 1) return resolve(res[0]);
|
||||
|
||||
resolve(res);
|
||||
});
|
||||
});
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue