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

constantinople

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

constantinople - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

16

index.js

@@ -39,3 +39,17 @@ 'use strict'

})
// Walk the AST tree in search for `this`
// Add a fake "this" global when found
var has_this = false;
var walker = new uglify.TreeWalker(function(node) {
if (node instanceof uglify.AST_This) {
has_this = true;
}
});
ast.walk(walker);
if (has_this) {
globals.push('this')
}
return globals
}
}

2

package.json
{
"name": "constantinople",
"version": "2.0.0",
"version": "2.0.1",
"description": "Determine whether a JavaScript expression evaluates to a constant (using UglifyJS)",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -5,5 +5,5 @@ # constantinople

[![Build Status](https://travis-ci.org/ForbesLindesay/constantinople.png?branch=master)](https://travis-ci.org/ForbesLindesay/constantinople)
[![Dependency Status](https://gemnasium.com/ForbesLindesay/constantinople.png)](https://gemnasium.com/ForbesLindesay/constantinople)
[![NPM version](https://badge.fury.io/js/constantinople.png)](http://badge.fury.io/js/constantinople)
[![Build Status](https://img.shields.io/travis/ForbesLindesay/constantinople/master.svg)](https://travis-ci.org/ForbesLindesay/constantinople)
[![Dependency Status](https://img.shields.io/gemnasium/ForbesLindesay/constantinople.svg)](https://gemnasium.com/ForbesLindesay/constantinople)
[![NPM version](https://img.shields.io/npm/v/constantinople.svg)](http://badge.fury.io/js/constantinople)

@@ -10,0 +10,0 @@ ## Installation

@@ -25,2 +25,5 @@ 'use strict'

})
it('handles "this.myVar"', function () {
assert(constaninople.isConstant('this.myVar') === false)
})
})

@@ -58,2 +61,2 @@

})
})
})
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