Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

View File

@ -0,0 +1,2 @@
# babel-polyfill

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,28 @@
"use strict";
require("core-js/shim");
require("regenerator-runtime/runtime");
require("core-js/fn/regexp/escape");
if (global._babelPolyfill) {
throw new Error("only one instance of babel-polyfill is allowed");
}
global._babelPolyfill = true;
var DEFINE_PROPERTY = "defineProperty";
function define(O, key, value) {
O[key] || Object[DEFINE_PROPERTY](O, key, {
writable: true,
configurable: true,
value: value
});
}
define(String.prototype, "padLeft", "".padStart);
define(String.prototype, "padRight", "".padEnd);
"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function (key) {
[][key] && define(Array, key, Function.call.bind([][key]));
});

View File

@ -0,0 +1,46 @@
{
"_from": "babel-polyfill@6.23.0",
"_id": "babel-polyfill@6.23.0",
"_inBundle": false,
"_integrity": "sha1-g2TKYt+Or7gwSZ9pkXdGbDsDSZ0=",
"_location": "/babel-polyfill",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "babel-polyfill@6.23.0",
"name": "babel-polyfill",
"escapedName": "babel-polyfill",
"rawSpec": "6.23.0",
"saveSpec": null,
"fetchSpec": "6.23.0"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.23.0.tgz",
"_shasum": "8364ca62df8eafb830499f699177466c3b03499d",
"_spec": "babel-polyfill@6.23.0",
"_where": "/home/manfred/enviPath/ketcher2/ketcher",
"author": {
"name": "Sebastian McKenzie",
"email": "sebmck@gmail.com"
},
"bundleDependencies": false,
"dependencies": {
"babel-runtime": "^6.22.0",
"core-js": "^2.4.0",
"regenerator-runtime": "^0.10.0"
},
"deprecated": false,
"description": "Provides polyfills necessary for a full ES2015+ environment",
"homepage": "https://babeljs.io/",
"license": "MIT",
"main": "lib/index.js",
"name": "babel-polyfill",
"repository": {
"type": "git",
"url": "https://github.com/babel/babel/tree/master/packages/babel-polyfill"
},
"version": "6.23.0"
}

View File

@ -0,0 +1,17 @@
#!/bin/sh
set -ex
BROWSERIFY_CMD="../../node_modules/browserify/bin/cmd.js"
UGLIFY_CMD="../../node_modules/uglify-js/bin/uglifyjs"
mkdir -p dist
node $BROWSERIFY_CMD lib/index.js \
--insert-global-vars 'global' \
--plugin bundle-collapser/plugin \
--plugin derequire/plugin \
>dist/polyfill.js
node $UGLIFY_CMD dist/polyfill.js \
--compress keep_fnames,keep_fargs,warnings=false \
--mangle keep_fnames \
>dist/polyfill.min.js

View File

@ -0,0 +1,7 @@
var fs = require("fs");
var path = require("path");
try {
fs.unlinkSync(path.join(__dirname, "../browser.js"));
} catch (err) {}

View File

@ -0,0 +1,8 @@
var fs = require("fs");
var path = require("path");
function relative(loc) {
return path.join(__dirname, "..", loc);
}
fs.writeFileSync(relative("browser.js"), fs.readFileSync(relative("dist/polyfill.min.js")));