Comparing version 2.0.10 to 2.0.11
'use strict'; | ||
var fs = require('fs'); | ||
var _require = require('es6-promise'); | ||
@@ -15,7 +17,11 @@ | ||
var _require4 = require('./../package.json'); | ||
var path = void 0; | ||
try { | ||
fs.accessSync('../package.json', fs.F_OK); | ||
path = '../package.json'; | ||
} catch (e) { | ||
path = '../../package.json'; | ||
} | ||
var VERSION = require(path).version; | ||
var VERSION = _require4.version; | ||
module.exports = { | ||
@@ -22,0 +28,0 @@ wrapToken: function wrapToken(_config, requestFn) { |
{ | ||
"name": "clarifai", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "Official Clarifai Javascript SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/node/index.js", |
@@ -0,5 +1,13 @@ | ||
let fs = require('fs'); | ||
let {Promise} = require('es6-promise'); | ||
let {URL_REGEX} = require('./constants'); | ||
let {checkType} = require('./helpers'); | ||
let {version: VERSION} = require('./../package.json'); | ||
let path; | ||
try { | ||
fs.accessSync('../package.json', fs.F_OK); | ||
path = '../package.json'; | ||
} catch (e) { | ||
path = '../../package.json'; | ||
} | ||
const VERSION = require(path).version; | ||
@@ -6,0 +14,0 @@ module.exports = { |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 15 instances 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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
5197985
180
8981
25
47