Socket
Socket
Sign inDemoInstall

espurify

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

espurify - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

### [2.1.1](https://github.com/estools/espurify/releases/tag/v2.1.1) (2021-03-29)
#### Bug Fixes
* Revert relase [2.1.0](https://github.com/estools/espurify/releases/tag/v2.1.0) since it affects to AST matching logic and breaks [some usecases](https://github.com/unassert-js/unassert/issues/18).
## [2.1.0](https://github.com/estools/espurify/releases/tag/v2.1.0) (2021-03-26)

@@ -2,0 +10,0 @@

2

index.js

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

*
* Copyright (c) 2014-2021 Takuto Wada
* Copyright (c) 2014-2019 Takuto Wada
* Licensed under the MIT license.

@@ -9,0 +9,0 @@ * https://github.com/estools/espurify/blob/master/MIT-LICENSE.txt

@@ -11,5 +11,4 @@ module.exports = {

BreakStatement: ['type', 'label'],
CallExpression: ['type', 'callee', 'arguments', 'optional'],
CallExpression: ['type', 'callee', 'arguments'],
CatchClause: ['type', 'param', 'guard', 'body'],
ChainExpression: ['type', 'expression'],
ClassBody: ['type', 'body'],

@@ -23,3 +22,3 @@ ClassDeclaration: ['type', 'id', 'superClass', 'body'],

EmptyStatement: ['type'],
ExportAllDeclaration: ['type', 'source', 'exported'],
ExportAllDeclaration: ['type', 'source'],
ExportDefaultDeclaration: ['type', 'declaration'],

@@ -38,9 +37,8 @@ ExportNamedDeclaration: ['type', 'declaration', 'specifiers', 'source'],

ImportDefaultSpecifier: ['type', 'local'],
ImportExpression: ['type', 'source'],
ImportNamespaceSpecifier: ['type', 'local'],
ImportSpecifier: ['type', 'imported', 'local'],
LabeledStatement: ['type', 'label', 'body'],
Literal: ['type', 'value', 'regex', 'bigint'],
Literal: ['type', 'value', 'regex'],
LogicalExpression: ['type', 'operator', 'left', 'right'],
MemberExpression: ['type', 'object', 'property', 'computed', 'optional'],
MemberExpression: ['type', 'object', 'property', 'computed'],
MetaProperty: ['type', 'meta', 'property'],

@@ -47,0 +45,0 @@ MethodDefinition: ['type', 'key', 'value', 'kind', 'computed', 'static'],

@@ -1,2 +0,2 @@

Copyright (c) 2014-2021 Takuto Wada, https://github.com/estools/espurify
Copyright (c) 2014-2019 Takuto Wada, https://github.com/estools/espurify

@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining

{
"name": "espurify",
"description": "Clone AST without extra properties",
"version": "2.1.0",
"version": "2.1.1",
"author": {

@@ -6,0 +6,0 @@ "name": "Takuto Wada",

@@ -29,3 +29,2 @@ espurify

- [ES2019](https://github.com/estree/estree/blob/master/es2019.md)
- [ES2020](https://github.com/estree/estree/blob/master/es2020.md)

@@ -32,0 +31,0 @@

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