Comparing version 0.1.6 to 1.0.0
{ | ||
"name": "jsm2c", | ||
"version": "0.1.6", | ||
"description": "将采用commonJS规范的模块化代码,转译成闭包形式的代码", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"debug": "supervisor --debug-brk ./debug.js", | ||
"lint": "./node_modules/.bin/eslint .", | ||
"test": "./node_modules/mocha/bin/_mocha --recursive ./test", | ||
"cover": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly --recursive ./test/** && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/smocean/jsm2c.git" | ||
"url": "git+https://github.com/npm/deprecate-holder.git" | ||
}, | ||
"keywords": [ | ||
"commonJS", | ||
"module", | ||
"closure" | ||
], | ||
"author": "guomilo <guomilo@gmail.com>", | ||
"engines": { | ||
"node": ">0.10.0" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/smocean/jsm2c/issues" | ||
"url": "https://github.com/npm/deprecate-holder/issues" | ||
}, | ||
"homepage": "https://github.com/smocean/jsm2c#readme", | ||
"dependencies": { | ||
"escodegen": "1.8.0", | ||
"esprima": "2.7.2", | ||
"esquery": "0.4.0", | ||
"estraverse": "4.2.0", | ||
"immutable": "3.8.1" | ||
}, | ||
"maintainers": [ | ||
"guomilo <guomilo@gmail.com>" | ||
], | ||
"directories": {}, | ||
"devDependencies": { | ||
"autod": "2.5.1", | ||
"chai": "3.5.0", | ||
"coveralls": "^2.11.9", | ||
"eslint": "^2.7.0", | ||
"eslint-config-sm": "^0.1.20", | ||
"istanbul": "^0.4.3", | ||
"mocha": "^2.4.5", | ||
"mocha-lcov-reporter": "^1.2.0" | ||
}, | ||
"license": "MIT" | ||
"homepage": "https://github.com/npm/deprecate-holder#readme" | ||
} |
@@ -1,57 +0,5 @@ | ||
## jsm2c | ||
# Deprecated Package | ||
将采用commonJS规范和es6的模块化代码,转译成闭包形式的代码。 | ||
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name. | ||
### Install | ||
```bash | ||
npm install jsm2c -g | ||
``` | ||
### USAGE | ||
A simple example: the program | ||
``` | ||
var jsm2c = require('./index.js'); | ||
jsm2c.setConfig({ | ||
root: '/Users/gml/github/smui-test' | ||
}) | ||
var content = jsm2c.parse('/js/test.js'); | ||
``` | ||
### 配置说明 | ||
####ns | ||
解释:生成闭包后,所使用的命名空间 | ||
类型: string | ||
默认值:'ns' | ||
####root | ||
解释:项目的根目录 | ||
类型:string | ||
默认值:当前目录 | ||
说明:注意配置项fileBasedRoot对他的影响 | ||
####fileBasedRoot | ||
解释:js文件中使用require的路径是否是基于root的。 | ||
类型:boolean | ||
默认值:false | ||
说明:主要用于应对使用构建工具生成的文件,路径会被编译为基于项目root的相对路径,如fis | ||
####compress | ||
解释:分析的文件是否是被压缩过的文件 | ||
类型:boolean | ||
默认值:false | ||
说明:压缩过的文件和没压缩过的文件,代码结构不同,不能使用同一种处理方法。 | ||
####wrapJsInHtml | ||
解释:是否对html中的js代码添加闭包代码 | ||
类型:boolean | ||
默认值:false | ||
说明:如果代码中的require参与运算的话,就忽略该值,为代码加上闭包。 | ||
####tmpl | ||
解释:css和js的引入模板 | ||
Please contact support@npmjs.com if you have questions about this 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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
0
1
0
668
2
0
6
3
- Removedescodegen@1.8.0
- Removedesprima@2.7.2
- Removedesquery@0.4.0
- Removedestraverse@4.2.0
- Removedimmutable@3.8.1
- Removedamdefine@1.0.1(transitive)
- Removeddeep-is@0.1.4(transitive)
- Removedescodegen@1.8.0(transitive)
- Removedesprima@2.7.2(transitive)
- Removedesquery@0.4.0(transitive)
- Removedestraverse@1.9.34.2.0(transitive)
- Removedesutils@2.0.3(transitive)
- Removedfast-levenshtein@2.0.6(transitive)
- Removedimmutable@3.8.1(transitive)
- Removedlevn@0.3.0(transitive)
- Removedoptionator@0.8.3(transitive)
- Removedprelude-ls@1.1.2(transitive)
- Removedsource-map@0.2.0(transitive)
- Removedtype-check@0.3.2(transitive)
- Removedword-wrap@1.2.5(transitive)