🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@babel/plugin-transform-private-methods

Package Overview
Dependencies
Maintainers
4
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-private-methods - npm Package Compare versions

Comparing version
8.0.0-rc.6
to
8.0.0
+1
-1
lib/index.js

@@ -5,3 +5,3 @@ import { declare } from '@babel/helper-plugin-utils';

const index = declare((api, options) => {
api.assertVersion("^7.0.0-0 || ^8.0.0 || 8.0.0-rc.6");
api.assertVersion("^7.0.0-0 || ^8.0.0");
if ("loose" in options) {

@@ -8,0 +8,0 @@ console.warn("@babel/plugin-transform-private-methods: The 'loose' option has been deprecated, " + "use the `privateFieldsAsProperties`(or `privateFieldsAsSymbols`), and `setPublicClassFields` assumptions instead (https://babeljs.io/assumptions).");

@@ -1,1 +0,1 @@

{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @babel/development/plugin-name */\n\nimport { declare } from \"@babel/helper-plugin-utils\";\nimport {\n createClassFeaturePlugin,\n FEATURES,\n} from \"@babel/helper-create-class-features-plugin\";\n\nexport interface Options {\n /** @deprecated Use the `privateFieldsAsProperties`(or `privateFieldsAsSymbols`), and `setPublicClassFields` assumptions instead. */\n loose?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0\"));\n\n if (\"loose\" in options) {\n console.warn(\n \"@babel/plugin-transform-private-methods: The 'loose' option has been deprecated, \" +\n \"use the `privateFieldsAsProperties`(or `privateFieldsAsSymbols`), and `setPublicClassFields` assumptions instead (https://babeljs.io/assumptions).\",\n );\n }\n\n return createClassFeaturePlugin({\n name: \"transform-private-methods\",\n\n api,\n feature: FEATURES.privateMethods,\n loose: options.loose,\n });\n});\n"],"names":["declare","api","options","assertVersion","console","warn","createClassFeaturePlugin","name","feature","FEATURES","privateMethods","loose"],"mappings":";;;AAaA,cAAeA,OAAO,CAAC,CAACC,GAAG,EAAEC,OAAgB,KAAK;EAChDD,GAAG,CAACE,aAAa,CAAA,kCAAuC,CAAC;EAEzD,IAAI,OAAO,IAAID,OAAO,EAAE;AACtBE,IAAAA,OAAO,CAACC,IAAI,CACV,mFAAmF,GACjF,oJACJ,CAAC;AACH,EAAA;AAEA,EAAA,OAAOC,wBAAwB,CAAC;AAC9BC,IAAAA,IAAI,EAAE,2BAA2B;IAEjCN,GAAG;IACHO,OAAO,EAAEC,QAAQ,CAACC,cAAc;IAChCC,KAAK,EAAET,OAAO,CAACS;AACjB,GAAC,CAAC;AACJ,CAAC,CAAC;;;;"}
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable @babel/development/plugin-name */\n\nimport { declare } from \"@babel/helper-plugin-utils\";\nimport {\n createClassFeaturePlugin,\n FEATURES,\n} from \"@babel/helper-create-class-features-plugin\";\n\nexport interface Options {\n /** @deprecated Use the `privateFieldsAsProperties`(or `privateFieldsAsSymbols`), and `setPublicClassFields` assumptions instead. */\n loose?: boolean;\n}\n\nexport default declare((api, options: Options) => {\n api.assertVersion(REQUIRED_VERSION(\"^7.0.0-0 || ^8.0.0\"));\n\n if (\"loose\" in options) {\n console.warn(\n \"@babel/plugin-transform-private-methods: The 'loose' option has been deprecated, \" +\n \"use the `privateFieldsAsProperties`(or `privateFieldsAsSymbols`), and `setPublicClassFields` assumptions instead (https://babeljs.io/assumptions).\",\n );\n }\n\n return createClassFeaturePlugin({\n name: \"transform-private-methods\",\n\n api,\n feature: FEATURES.privateMethods,\n loose: options.loose,\n });\n});\n"],"names":[],"mappings":";;;AAaA,cAAe,OAAO,CAAC,CAAC,GAAG,EAAE,OAAgB,KAAK;EAChD,GAAG,CAAC,aAAa,CAAA,oBAAuC,CAAC;EAEzD,IAAI,OAAO,IAAI,OAAO,EAAE;AACtB,IAAA,OAAO,CAAC,IAAI,CACV,mFAAmF,GACjF,oJACJ,CAAC;AACH,EAAA;AAEA,EAAA,OAAO,wBAAwB,CAAC;AAC9B,IAAA,IAAI,EAAE,2BAA2B;IAEjC,GAAG;IACH,OAAO,EAAE,QAAQ,CAAC,cAAc;IAChC,KAAK,EAAE,OAAO,CAAC;AACjB,GAAC,CAAC;AACJ,CAAC,CAAC;;;;"}
{
"name": "@babel/plugin-transform-private-methods",
"version": "8.0.0-rc.6",
"version": "8.0.0",
"description": "This plugin transforms private class methods",

@@ -20,11 +20,11 @@ "repository": {

"dependencies": {
"@babel/helper-create-class-features-plugin": "^8.0.0-rc.6",
"@babel/helper-plugin-utils": "^8.0.0-rc.6"
"@babel/helper-create-class-features-plugin": "^8.0.0",
"@babel/helper-plugin-utils": "^8.0.0"
},
"peerDependencies": {
"@babel/core": "^8.0.0-rc.6"
"@babel/core": "^8.0.0"
},
"devDependencies": {
"@babel/core": "^8.0.0-rc.6",
"@babel/helper-plugin-test-runner": "^8.0.0-rc.6"
"@babel/core": "^8.0.0",
"@babel/helper-plugin-test-runner": "^8.0.0"
},

@@ -31,0 +31,0 @@ "engines": {