Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lexical-scope

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lexical-scope - npm Package Compare versions

Comparing version 0.0.15 to 0.1.0

8

index.js

@@ -8,3 +8,9 @@ var astw = require('astw');

src = String(src).replace(/^#![^\n]*\n/, '');
if (typeof src === 'string') {
src = String(src).replace(/^#![^\n]*\n/, '');
}
if (src && typeof src === 'object'
&& typeof src.copy === 'function' && typeof src.toString === 'function') {
src = src.toString('utf8');
}
var walk = astw(src);

@@ -11,0 +17,0 @@

101

package.json
{
"name": "lexical-scope",
"version": "0.0.15",
"description": "detect global and local lexical identifiers from javascript source code",
"main": "index.js",
"dependencies": {
"astw": "~0.0.0"
},
"devDependencies": {
"tap": "~0.4.0",
"tape": "~0.3.3",
"brfs": "~0.0.3"
},
"scripts": {
"test": "tap test/*.js"
},
"testling" : {
"preprocess" : "./test/testling.sh",
"html" : "test/temp/test.html",
"browsers" : [
"ie/6", "ie/7", "ie/8", "ie/9", "ie/10",
"chrome/20", "chrome/latest",
"firefox/10", "firefox/15", "firefox/latest",
"safari/latest",
"opera/11.0", "opera/latest"
]
},
"repository": {
"type": "git",
"url": "git://github.com/substack/lexical-scope.git"
},
"homepage": "https://github.com/substack/lexical-scope",
"keywords": [
"ast",
"variable",
"name",
"lexical",
"local",
"global",
"implicit",
"exported"
],
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"license": "MIT"
"name": "lexical-scope",
"version": "0.1.0",
"description": "detect global and local lexical identifiers from javascript source code",
"main": "index.js",
"dependencies": {
"astw": "~0.1.0"
},
"devDependencies": {
"tape": "~2.4.1",
"brfs": "~0.0.3"
},
"scripts": {
"test": "tape test/*.js"
},
"testling": {
"files": "test/*.js",
"browsers": [
"ie/6",
"ie/7",
"ie/8",
"ie/9",
"ie/10",
"chrome/20",
"chrome/latest",
"firefox/10",
"firefox/15",
"firefox/latest",
"safari/latest",
"opera/11.0",
"opera/latest"
]
},
"repository": {
"type": "git",
"url": "git://github.com/substack/lexical-scope.git"
},
"homepage": "https://github.com/substack/lexical-scope",
"keywords": [
"ast",
"variable",
"name",
"lexical",
"local",
"global",
"implicit",
"exported"
],
"author": {
"name": "James Halliday",
"email": "mail@substack.net",
"url": "http://substack.net"
},
"license": "MIT"
}
{
"name": "lexical-scope-test",
"version": "0.0.0",
"browserify": { "transform": "brfs" }
}
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