intuit / oauth-jsclient

Intuit's NodeJS OAuth client provides a set of methods to make it easier to work with OAuth2.0 and Open ID
https://developer.intuit.com/
Apache License 2.0
125 stars 159 forks source link

Strict mode keywords #4

Closed rickygarg closed 5 years ago

rickygarg commented 5 years ago

There is some occasional use of strict mode keywords, such as

var package = require('../package.json');

This makes it difficult to use in an ES6 project. Appreciate if you could modify or suggest a workaround.

abisalehalliprasan commented 5 years ago

@rickygarg : Will consider getting changes included to the ES6 module in the next releases.

adam-t-b commented 5 years ago

@abisalehalliprasan Any work arounds for this? Or any update on when this might get picked up for work?

abisalehalliprasan commented 5 years ago

@adam-t-b : Are you minifying the package in your app? We could probably rename the package to version as shown below : var version = require('../package.json')

would that work?