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

@putout/operate

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@putout/operate - npm Package Compare versions

Comparing version 10.1.0 to 10.2.0

lib/properties/index.js

13

lib/operate.js

@@ -6,3 +6,2 @@ 'use strict';

const {getBinding, getBindingPath} = require('./get-binding');
const {isSimple} = require('./is-simple');

@@ -17,4 +16,8 @@ const {extract} = require('./extract');

const {getProperty, getProperties} = require('./properties');
const {
getProperty,
getProperties,
traverseProperties,
} = require('./properties');
const {
ExpressionStatement,

@@ -39,4 +42,2 @@ toStatement,

module.exports.getExportDefault = getExportDefault;
module.exports.getProperty = getProperty;
module.exports.getProperties = getProperties;
module.exports.toExpression = toExpression;

@@ -48,2 +49,6 @@ module.exports.isSimple = isSimple;

module.exports.getProperty = getProperty;
module.exports.getProperties = getProperties;
module.exports.traverseProperties = traverseProperties;
function toExpression(el) {

@@ -50,0 +55,0 @@ const {type} = el;

{
"name": "@putout/operate",
"version": "10.1.0",
"version": "10.2.0",
"type": "commonjs",

@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -62,7 +62,7 @@ # Operate [![NPM version][NPMIMGURL]][NPMURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]

### `setLiteralValue(path | node)`
### `setLiteralValue(path: Path | Node, value: string)`
Set `raw` and `value` of a literal.
### `isSimple(path | node)`
### `isSimple(path: Path | Node)`

@@ -233,4 +233,13 @@ Check if path is:

### `traverseProperties(path: Path | Node, name: string)`
Traverse list of properties from `ObjectExpression`.
```js
const object = template.ast('x({"a": "b"})');
const [propertyPath] = traverseProperties(object, 'a');
```
## License
MIT
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