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 1.0.0 to 1.0.1

build/espurify.js

9

index.js
/**
* espurify - Clone new AST without extra properties
*
* https://github.com/twada/espurify
* https://github.com/estools/espurify
*
* Copyright (c) 2014 Takuto Wada
* Copyright (c) 2014-2015 Takuto Wada
* Licensed under the MIT license.
* http://twada.mit-license.org/
* https://github.com/estools/espurify/blob/master/MIT-LICENSE.txt
*/

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

var traverse = require('traverse'),
indexOf = require('indexof'),
deepCopy = require('./lib/ast-deepcopy'),

@@ -38,5 +39,5 @@ astProps = require('./lib/ast-properties'),

function isSupportedKey (type, key) {
return astProps[type].indexOf(key) !== -1;
return indexOf(astProps[type], key) !== -1;
}
module.exports = espurify;
{
"name": "espurify",
"description": "Clone new AST without extra properties",
"version": "1.0.0",
"version": "1.0.1",
"author": {

@@ -10,27 +10,32 @@ "name": "Takuto Wada",

},
"bugs": "https://github.com/twada/espurify/issues",
"bugs": "https://github.com/estools/espurify/issues",
"dependencies": {
"indexof": "0.0.1",
"traverse": "~0.6.6"
},
"devDependencies": {
"esprima": "~1.2.2",
"estraverse": "~1.7.0",
"mocha": "~2.0.1"
"esprima": "^1.0.0",
"estraverse": "^1.0.0",
"jshint": "^2.5.11",
"mocha": "^2.0.1"
},
"files": [
"CHANGELOG.md",
"MIT-LICENSE.txt",
"README.md",
"index.js",
"lib",
"build/espurify.js",
"package.json",
"test"
],
"homepage": "https://github.com/twada/espurify",
"homepage": "https://github.com/estools/espurify",
"keywords": [
"esprima",
"ast",
"ecmascript",
"ast"
"esprima"
],
"license": {
"type": "MIT",
"url": "http://twada.mit-license.org/"
"url": "https://github.com/estools/espurify/blob/master/MIT-LICENSE.txt"
},

@@ -40,9 +45,9 @@ "main": "index.js",

"type": "git",
"url": "git://github.com/twada/espurify.git"
"url": "git://github.com/estools/espurify.git"
},
"scripts": {
"build": "browserify index.js --standalone espurify | derequire > ./build/espurify.js",
"build": "browserify index.js --standalone espurify | dereserve | derequire > ./build/espurify.js",
"lint": "jshint index.js",
"test": "mocha test"
"test": "npm run lint && mocha test"
}
}

@@ -6,6 +6,5 @@ espurify

[![Build Status](https://travis-ci.org/twada/espurify.svg?branch=master)](https://travis-ci.org/twada/espurify)
[![Build Status](https://travis-ci.org/estools/espurify.svg?branch=master)](https://travis-ci.org/estools/espurify)
[![NPM version](https://badge.fury.io/js/espurify.svg)](http://badge.fury.io/js/espurify)
[![Dependency Status](https://gemnasium.com/twada/espurify.svg)](https://gemnasium.com/twada/espurify)
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://twada.mit-license.org/)
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/estools/espurify/blob/master/MIT-LICENSE.txt)

@@ -195,2 +194,2 @@

---------------------------------------
Licensed under the [MIT](http://twada.mit-license.org/) license.
Licensed under the [MIT](https://github.com/estools/espurify/blob/master/MIT-LICENSE.txt) license.
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