babel-plugin-transform-define
Advanced tools
Comparing version 2.0.1 to 2.1.0
# Changelog | ||
## 2.1.0 | ||
* Add memoization to `getSortedObjectPaths` utility for better performance under certain circumstances. | ||
## 2.0.1 | ||
@@ -86,2 +90,2 @@ | ||
[@jdlm-stripe]: https://github.com/jdlm-stripe | ||
[@jdlm-stripe]: https://github.com/jdlm-stripe |
"use strict"; | ||
const traverse = require("traverse"); | ||
const { get, has, find } = require("lodash"); | ||
const { get, has, find, memoize } = require("lodash"); | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
const getSortedObjectPaths = (obj) => { | ||
const getSortedObjectPaths = memoize((obj) => { | ||
if (!obj) { return []; } | ||
@@ -26,3 +26,3 @@ | ||
.sort((a, b) => b.length - a.length); | ||
}; | ||
}); | ||
@@ -29,0 +29,0 @@ /** |
{ | ||
"name": "babel-plugin-transform-define", | ||
"description": "Babel plugin that replaces member expressions and typeof statements with strings", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"contributors": [ | ||
@@ -21,12 +21,12 @@ "Eric Baer <me@ericbaer.com> (https://github.com/baer)", | ||
"devDependencies": { | ||
"@babel/cli": "^7.6.4", | ||
"@babel/core": "^7.6.4", | ||
"@babel/preset-env": "^7.6.3", | ||
"@babel/cli": "^7.15.4", | ||
"@babel/core": "^7.15.5", | ||
"@babel/preset-env": "^7.15.6", | ||
"babel-eslint": "^10.0.3", | ||
"eslint": "^5.13.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-formidable": "^4.0.0", | ||
"eslint-plugin-filenames": "^1.3.2", | ||
"eslint-plugin-import": "^2.16.0", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"mocha": "^6.2.2" | ||
"eslint-plugin-import": "^2.24.2", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"mocha": "^9.1.1" | ||
}, | ||
@@ -33,0 +33,0 @@ "main": "lib", |
@@ -10,5 +10,8 @@ <h1 align="center">babel-plugin-transform-define</h1> | ||
</a> | ||
<a href='http://travis-ci.com/FormidableLabs/babel-plugin-transform-define'> | ||
<img src='https://travis-ci.com/FormidableLabs/babel-plugin-transform-define.svg?branch=master' /> | ||
<a href='https://github.com/FormidableLabs/babel-plugin-transform-define/actions'> | ||
<img src='https://github.com/FormidableLabs/babel-plugin-transform-define/workflows/CI/badge.svg' /> | ||
</a> | ||
<a href='https://github.com/FormidableLabs/babel-plugin-transform-define#maintenance-status'> | ||
<img alt="Maintenance Status" src='https://img.shields.io/badge/maintenance-stable-yellow.svg?color=yellow&style=flat' /> | ||
</a> | ||
</p> | ||
@@ -151,1 +154,6 @@ | ||
[MIT License](http://opensource.org/licenses/MIT) | ||
## Maintenance Status | ||
**Stable:** Formidable is not planning to develop any new features for this project. We are still responding to bug reports and security concerns. We are still welcoming PRs for this project, but PRs that include new features should be small and easy to integrate and should not include breaking changes. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12811
158
1