This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
> Remove numeric separators from Decimal, Binary, Hex and Octal literals
See our website [@babel/plugin-proposal-numeric-separator](https://babeljs.io/docs/en/next/babel-plugin-proposal-numeric-separator.html) for more information.
See our website [@babel/plugin-proposal-numeric-separator](https://babeljs.io/docs/en/babel-plugin-proposal-numeric-separator) for more information.
## Install
+16 -14
View File
@@ -7,9 +7,21 @@ exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _pluginSyntaxNumericSeparator = _interopRequireDefault(require("@babel/plugin-syntax-numeric-separator"));
var _pluginSyntaxNumericSeparator = require("@babel/plugin-syntax-numeric-separator");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function remover({
node
}) {
var _extra$raw;
const {
extra
} = node;
if (extra != null && (_extra$raw = extra.raw) != null && _extra$raw.includes("_")) {
extra.raw = extra.raw.replace(/_/g, "");
}
}
var _default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);
@@ -17,18 +29,8 @@ var _default = (0, _helperPluginUtils.declare)(api => {
name: "proposal-numeric-separator",
inherits: _pluginSyntaxNumericSeparator.default,
visitor: {
NumericLiteral({
node
}) {
const {
extra
} = node;
if (extra && /_/.test(extra.raw)) {
extra.raw = extra.raw.replace(/_/g, "");
}
}
NumericLiteral: remover,
BigIntLiteral: remover
}
};
});
+27 -18
View File
@@ -1,52 +1,60 @@
{
"_args": [
[
"@babel/plugin-proposal-numeric-separator@7.10.4",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"@babel/plugin-proposal-numeric-separator@7.18.6",
"/home/node/nuxt"
]
],
"_from": "@babel/plugin-proposal-numeric-separator@7.10.4",
"_id": "@babel/plugin-proposal-numeric-separator@7.10.4",
"_from": "@babel/plugin-proposal-numeric-separator@7.18.6",
"_id": "@babel/plugin-proposal-numeric-separator@7.18.6",
"_inBundle": false,
"_integrity": "sha512-73/G7QoRoeNkLZFxsoCCvlg4ezE4eM+57PnOqgaPOozd5myfj7p0muD1mRVJvbUWbOzD+q3No2bWbaKy+DJ8DA==",
"_integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==",
"_location": "/@babel/plugin-proposal-numeric-separator",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@babel/plugin-proposal-numeric-separator@7.10.4",
"raw": "@babel/plugin-proposal-numeric-separator@7.18.6",
"name": "@babel/plugin-proposal-numeric-separator",
"escapedName": "@babel%2fplugin-proposal-numeric-separator",
"scope": "@babel",
"rawSpec": "7.10.4",
"rawSpec": "7.18.6",
"saveSpec": null,
"fetchSpec": "7.10.4"
"fetchSpec": "7.18.6"
},
"_requiredBy": [
"/@babel/preset-env"
],
"_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.10.4.tgz",
"_spec": "7.10.4",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz",
"_spec": "7.18.6",
"_where": "/home/node/nuxt",
"author": {
"name": "The Babel Team",
"url": "https://babel.dev/team"
},
"bugs": {
"url": "https://github.com/babel/babel/issues"
},
"dependencies": {
"@babel/helper-plugin-utils": "^7.10.4",
"@babel/helper-plugin-utils": "^7.18.6",
"@babel/plugin-syntax-numeric-separator": "^7.10.4"
},
"description": "Remove numeric separators from Decimal, Binary, Hex and Octal literals",
"devDependencies": {
"@babel/core": "^7.10.4",
"@babel/helper-plugin-test-runner": "^7.10.4"
"@babel/core": "^7.18.6",
"@babel/helper-plugin-test-runner": "^7.18.6",
"@babel/traverse": "^7.18.6",
"@babel/types": "^7.18.6"
},
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df",
"homepage": "https://github.com/babel/babel#readme",
"engines": {
"node": ">=6.9.0"
},
"homepage": "https://babel.dev/docs/en/next/babel-plugin-proposal-numeric-separator",
"keywords": [
"babel-plugin"
],
"license": "MIT",
"main": "lib/index.js",
"main": "./lib/index.js",
"name": "@babel/plugin-proposal-numeric-separator",
"peerDependencies": {
"@babel/core": "^7.0.0-0"
@@ -59,5 +67,6 @@
"url": "git+https://github.com/babel/babel.git",
"directory": "packages/babel-plugin-proposal-numeric-separator"
},
"version": "7.10.4"
"type": "commonjs",
"version": "7.18.6"
}