Socket
Socket
Sign inDemoInstall

babel-types

Package Overview
Dependencies
Maintainers
4
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-types - npm Package Compare versions

Comparing version 6.24.1 to 6.25.0

2

lib/definitions/core.js

@@ -509,3 +509,3 @@ "use strict";

value: {
validate: (0, _index2.assertNodeType)("Expression")
validate: (0, _index2.assertNodeType)("Expression", "Pattern", "RestElement")
},

@@ -512,0 +512,0 @@ shorthand: {

@@ -30,3 +30,3 @@ "use strict";

elements: {
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("Expression")))
validate: (0, _index.chain)((0, _index.assertValueType)("array"), (0, _index.assertEach)((0, _index.assertNodeType)("Identifier", "Pattern", "RestElement")))
},

@@ -33,0 +33,0 @@ decorators: {

@@ -246,2 +246,8 @@ "use strict";

(0, _index2.default)("ObjectTypeSpreadProperty", {
visitor: ["argument"],
aliases: ["Flow", "UserWhitespacable"],
fields: {}
});
(0, _index2.default)("QualifiedTypeIdentifier", {

@@ -248,0 +254,0 @@ visitor: ["id", "qualification"],

{
"name": "babel-types",
"version": "6.24.1",
"version": "6.25.0",
"description": "Babel Types is a Lodash-esque utility library for AST nodes",

@@ -17,4 +17,4 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"devDependencies": {
"babylon": "^6.8.2"
"babylon": "^6.17.2"
}
}

@@ -49,3 +49,3 @@ # babel-types

- `elements`: `Array<Expression>` (required)
- `elements`: `Array<Identifier | Pattern | RestElement>` (required)
- `typeAnnotation` (required)

@@ -1372,3 +1372,3 @@ - `decorators`: `Array<Decorator>` (default: `null`)

- `key`if computed then `Expression` else `Identifier | Literal` (required)
- `value`: `Expression` (required)
- `value`: `Expression | Pattern | RestElement` (required)
- `computed`: `boolean` (default: `false`)

@@ -1437,2 +1437,15 @@ - `shorthand`: `boolean` (default: `false`)

### objectTypeSpreadProperty
```javascript
t.objectTypeSpreadProperty(argument)
```
See also `t.isObjectTypeSpreadProperty(node, opts)` and `t.assertObjectTypeSpreadProperty(node, opts)`.
Aliases: `Flow`, `UserWhitespacable`
- `argument` (required)
---
### parenthesizedExpression

@@ -1439,0 +1452,0 @@ ```javascript

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