Comparing version 1.0.0 to 1.0.1
/** | ||
* 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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
35632
9
772
2
4
194
2
+ Addedindexof@0.0.1
+ Addedindexof@0.0.1(transitive)