New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-gatsby

Package Overview
Dependencies
Maintainers
19
Versions
407
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-gatsby - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## [0.3.6](https://github.com/gatsbyjs/gatsby/compare/babel-preset-gatsby@0.3.5...babel-preset-gatsby@0.3.6) (2020-04-24)
### Bug Fixes
- **optimize-hook-destructuring:** handle skipped items ([#23438](https://github.com/gatsbyjs/gatsby/issues/23438)) ([2cf2dc5](https://github.com/gatsbyjs/gatsby/commit/2cf2dc5))
## [0.3.5](https://github.com/gatsbyjs/gatsby/compare/babel-preset-gatsby@0.3.4...babel-preset-gatsby@0.3.5) (2020-04-24)

@@ -8,0 +14,0 @@

8

optimize-hook-destructuring.js

@@ -38,3 +38,9 @@ "use strict";

if (!(onlyBuiltIns ? isBuiltInHook : isHook).test(hookName)) return;
path.parent.id = t.objectPattern(path.parent.id.elements.map((element, i) => t.objectProperty(t.numericLiteral(i), element)));
path.parent.id = t.objectPattern(path.parent.id.elements.reduce((acc, element, i) => {
if (element) {
acc.push(t.objectProperty(t.numericLiteral(i), element));
}
return acc;
}, []));
}

@@ -41,0 +47,0 @@

4

package.json
{
"name": "babel-preset-gatsby",
"version": "0.3.5",
"version": "0.3.6",
"author": "Philipp Spiess <hello@philippspiess.com>",

@@ -45,3 +45,3 @@ "repository": {

},
"gitHead": "35154266b55896fb6bf678d8b0ac61e8470dcbf5"
"gitHead": "c67221403d005b0e580868937476abdc7378d243"
}
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