Socket
Socket
Sign inDemoInstall

jsx-ast-utils

Package Overview
Dependencies
66
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.3.0 to 3.3.1

4

__tests__/src/getPropValue-babelparser-test.js

@@ -999,5 +999,5 @@ /* eslint-env mocha */

it('should evaluate to correct representation of the the array in props', () => {
const prop = extractProp('<div foo={["bar", 42, null]} />');
const prop = extractProp('<div foo={["bar", 42, , null]} />');
const expected = ['bar', 42, null];
const expected = ['bar', 42, undefined, null];
const actual = getPropValue(prop);

@@ -1004,0 +1004,0 @@

Unreleased
==================
3.3.1 / 2022-06-22
==================
- [Fix] `ArrayExpression`: handle sparse array (#117)
- [Deps] update `array-includes`
- [meta] move jest config to separate file
- [meta] use `npmignore` to autogenerate an npmignore file
- [Dev Deps] update `@babel/core`, `@babel/eslint-parser`, `@babel/parser`, `eslint`
3.3.0 / 2022-04-30

@@ -5,0 +13,0 @@ ==================

@@ -17,4 +17,5 @@ 'use strict';

return value.elements.map(function (element) {
if (element === null) return undefined;
return getValue(element);
});
}
{
"name": "jsx-ast-utils",
"version": "3.3.0",
"version": "3.3.1",
"description": "AST utility module for statically analyzing JSX",
"main": "lib/index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prebuild": "rimraf lib",

@@ -20,5 +21,5 @@ "build": "babel src --out-dir lib",

"devDependencies": {
"@babel/core": "^7.17.10",
"@babel/eslint-parser": "^7.17.0",
"@babel/parser": "^7.17.10",
"@babel/core": "^7.18.5",
"@babel/eslint-parser": "^7.18.2",
"@babel/parser": "^7.18.5",
"aud": "^2.0.0",

@@ -33,3 +34,3 @@ "babel-cli": "^6.26.0",

"babylon": "^6.18.0",
"eslint": "^8.14.0",
"eslint": "^8.18.0",
"eslint-config-airbnb-base": "^15.0.0",

@@ -41,2 +42,3 @@ "eslint-plugin-import": "^2.26.0",

"jest-cli": "^20.0.4",
"npmignore": "^0.3.0",
"object.entries": "^1.1.5",

@@ -62,18 +64,12 @@ "object.fromentries": "^2.0.5",

"license": "MIT",
"jest": {
"coverageReporters": [
"lcov",
"html",
"json"
],
"coverageDirectory": "coverage",
"testPathIgnorePatterns": [
"/node_modules/",
"helper.js"
]
},
"dependencies": {
"array-includes": "^3.1.4",
"array-includes": "^3.1.5",
"object.assign": "^4.1.2"
},
"publishConfig": {
"ignore": [
".github/workflows",
"jest.config.js"
]
}
}

@@ -10,3 +10,6 @@ /**

const getValue = require('.').default;
return value.elements.map((element) => getValue(element));
return value.elements.map((element) => {
if (element === null) return undefined;
return getValue(element);
});
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc