Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-ember-modules-api-polyfill

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-ember-modules-api-polyfill - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

.npmignore

2

package.json
{
"name": "babel-plugin-ember-modules-api-polyfill",
"version": "2.3.0",
"version": "2.3.1",
"description": "Polyfill for Ember JS API.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -55,10 +55,15 @@ 'use strict';

let local = specifierPath.node.local;
if (local.name !== 'Ember') {
replacements.push([
local.name,
'Ember',
]);
if (specifierPath) {
let local = specifierPath.node.local;
if (local.name !== 'Ember') {
replacements.push([
local.name,
'Ember',
]);
}
removals.push(specifierPath);
} else {
// import 'ember';
path.remove();
}
removals.push(specifierPath);
}

@@ -89,2 +94,5 @@

) {
if (specifier.type === 'ImportNamespaceSpecifier') {
throw new Error(`Using \`import * as ${specifier.local} from '${importPath}'\` is not supported.`);
}
return;

@@ -91,0 +99,0 @@ }

@@ -135,2 +135,12 @@ 'use strict';

it(`throws an error for wildcard imports`, assert => {
let input = `import * as debug from '@ember/debug';`;
assert.throws(() => {
transform(input, [
[Plugin],
]);
}, 'Using `import * as debug from \'@ember/debug\'` is not supported');
});
it(`throws an error for wildcard exports`, assert => {

@@ -210,2 +220,6 @@ let input = `export * from '@ember/object/computed';`;

matches(
`import 'ember';`,
``
);
matches(
`import './foo';`,

@@ -212,0 +226,0 @@ `import './foo';`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc