Project files
This commit is contained in:
22
receipeServer/frontend_old/node_modules/@babel/helpers/LICENSE
generated
vendored
Normal file
22
receipeServer/frontend_old/node_modules/@babel/helpers/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||
|
||||
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.
|
||||
19
receipeServer/frontend_old/node_modules/@babel/helpers/README.md
generated
vendored
Normal file
19
receipeServer/frontend_old/node_modules/@babel/helpers/README.md
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
# @babel/helpers
|
||||
|
||||
> Collection of helper functions used by Babel transforms.
|
||||
|
||||
See our website [@babel/helpers](https://babeljs.io/docs/en/babel-helpers) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/helpers
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/helpers --dev
|
||||
```
|
||||
29
receipeServer/frontend_old/node_modules/@babel/helpers/package.json
generated
vendored
Normal file
29
receipeServer/frontend_old/node_modules/@babel/helpers/package.json
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "@babel/helpers",
|
||||
"version": "7.17.9",
|
||||
"description": "Collection of helper functions used by Babel transforms.",
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-helpers",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-helpers"
|
||||
},
|
||||
"main": "./lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/template": "^7.16.7",
|
||||
"@babel/traverse": "^7.17.9",
|
||||
"@babel/types": "^7.17.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/helper-plugin-test-runner": "^7.16.7",
|
||||
"terser": "^5.9.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
}
|
||||
}
|
||||
64
receipeServer/frontend_old/node_modules/@babel/helpers/scripts/generate-helpers.js
generated
vendored
Normal file
64
receipeServer/frontend_old/node_modules/@babel/helpers/scripts/generate-helpers.js
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
import fs from "fs";
|
||||
import { join } from "path";
|
||||
import { URL, fileURLToPath } from "url";
|
||||
import { minify } from "terser"; // eslint-disable-line
|
||||
|
||||
const HELPERS_FOLDER = new URL("../src/helpers", import.meta.url);
|
||||
const IGNORED_FILES = new Set(["package.json"]);
|
||||
|
||||
export default async function generateHelpers() {
|
||||
let output = `/*
|
||||
* This file is auto-generated! Do not modify it directly.
|
||||
* To re-generate run 'yarn gulp generate-runtime-helpers'
|
||||
*/
|
||||
|
||||
import template from "@babel/template";
|
||||
|
||||
function helper(minVersion, source) {
|
||||
return Object.freeze({
|
||||
minVersion,
|
||||
ast: () => template.program.ast(source),
|
||||
})
|
||||
}
|
||||
|
||||
export default Object.freeze({
|
||||
`;
|
||||
|
||||
for (const file of (await fs.promises.readdir(HELPERS_FOLDER)).sort()) {
|
||||
if (IGNORED_FILES.has(file)) continue;
|
||||
if (file.startsWith(".")) continue; // ignore e.g. vim swap files
|
||||
|
||||
const [helperName] = file.split(".");
|
||||
|
||||
const filePath = join(fileURLToPath(HELPERS_FOLDER), file);
|
||||
if (!file.endsWith(".js")) {
|
||||
console.error("ignoring", filePath);
|
||||
continue;
|
||||
}
|
||||
|
||||
const fileContents = await fs.promises.readFile(filePath, "utf8");
|
||||
const minVersionMatch = fileContents.match(
|
||||
/^\s*\/\*\s*@minVersion\s+(?<minVersion>\S+)\s*\*\/\s*$/m
|
||||
);
|
||||
if (!minVersionMatch) {
|
||||
throw new Error(`@minVersion number missing in ${filePath}`);
|
||||
}
|
||||
const { minVersion } = minVersionMatch.groups;
|
||||
|
||||
const source = await minify(fileContents, {
|
||||
mangle: false,
|
||||
// The _typeof helper has a custom directive that we must keep
|
||||
compress: { directives: false },
|
||||
});
|
||||
|
||||
output += `\
|
||||
${JSON.stringify(helperName)}: helper(
|
||||
${JSON.stringify(minVersion)},
|
||||
${JSON.stringify(source.code)},
|
||||
),
|
||||
`;
|
||||
}
|
||||
|
||||
output += "});";
|
||||
return output;
|
||||
}
|
||||
1
receipeServer/frontend_old/node_modules/@babel/helpers/scripts/package.json
generated
vendored
Normal file
1
receipeServer/frontend_old/node_modules/@babel/helpers/scripts/package.json
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{ "type": "module" }
|
||||
Reference in New Issue
Block a user