@alicloud/mns
Advanced tools
Comparing version 1.0.0-beta5 to 1.0.0-beta6
12
index.js
'use strict'; | ||
module.exports = require('./lib/client'); | ||
function supportAsyncFunctions() { | ||
try { | ||
new Function('(async function () {})()'); | ||
return true; | ||
} catch (ex) { | ||
return false; | ||
} | ||
} | ||
module.exports = supportAsyncFunctions() ? | ||
require('./lib/client.js') : require('./es5/client.js'); |
{ | ||
"name": "@alicloud/mns", | ||
"version": "1.0.0-beta5", | ||
"version": "1.0.0-beta6", | ||
"description": "> 该 SDK 并未完全实现所有文档所提及的功能,如果您想使用的功能并未实现,请提[issue](https://github.com/aliyun/aliyun-mns-nodejs-sdk/issues/new)以增加优先级。", | ||
@@ -10,4 +10,9 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "make test" | ||
"test": "make test", | ||
"build-es5": "babel lib/ -d es5/" | ||
}, | ||
"git-pre-hooks": { | ||
"pre-release": "npm run build-es5", | ||
"post-release": "npm publish --access public" | ||
}, | ||
"author": "Jackson Tian", | ||
@@ -23,5 +28,11 @@ "license": "MIT", | ||
"lib", | ||
"es5", | ||
"index.js" | ||
], | ||
"devDependencies": { | ||
"babel-cli": "^6.24.1", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-env": "^1.4.0", | ||
"babel-register": "^6.24.1", | ||
"git-pre-hooks": "^1.2.0", | ||
"coveralls": "^2.13.1", | ||
@@ -28,0 +39,0 @@ "eslint": "^3.19.0", |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
39973
8
955
10
3