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.13.1 to 2.13.2

9

CHANGELOG.md

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

## v2.13.2 (2020-05-29)
#### :bug: Bug Fix
* [#110](https://github.com/ember-cli/babel-plugin-ember-modules-api-polyfill/pull/110) Avoid errors when replacing Ember modules imports that are used as both a type and a value ([@fivetanley](https://github.com/fivetanley))
#### Committers: 1
- Stanley Stuart ([@fivetanley](https://github.com/fivetanley))
## v2.13.1 (2020-05-29)

@@ -2,0 +11,0 @@

3

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

@@ -35,2 +35,3 @@ "keywords": [

"@babel/core": "^7.10.1",
"@babel/plugin-transform-typescript": "^7.10.1",
"@babel/preset-env": "^7.10.1",

@@ -37,0 +38,0 @@ "babel-core": "^6.25.0",

@@ -19,2 +19,4 @@ 'use strict';

const isTypescriptNode = (node) => node.type.startsWith('TS');
const GLOBALS_MAP = new Map();

@@ -171,3 +173,5 @@

binding.referencePaths.forEach((referencePath) => {
referencePath.replaceWith(getMemberExpressionFor(global));
if (!isTypescriptNode(referencePath.parentPath)) {
referencePath.replaceWith(getMemberExpressionFor(global));
}
});

@@ -174,0 +178,0 @@ }

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