Comparing version 0.2.12 to 1.0.0-alpha.3
{ | ||
"name": "cbml", | ||
"version": "0.2.12", | ||
"version": "1.0.0-alpha.3", | ||
"description": "CBML Parser", | ||
@@ -12,6 +12,6 @@ "homepage": "https://github.com/cbml/cbmljs", | ||
"license": "MIT", | ||
"main": "cbml.js", | ||
"main": "lib/cbml", | ||
"typings": "lib/cbml.d.ts", | ||
"files": [ | ||
"cbml.js", | ||
"cli.js" | ||
"lib" | ||
], | ||
@@ -30,23 +30,32 @@ "keywords": [ | ||
"devDependencies": { | ||
"gulp": "^3.9.1", | ||
"gulp-examplejs": "0.0.9", | ||
"gulp-jdists": "^2.0.17", | ||
"gulp-linenum": "0.0.2", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-replace": "^0.6.1", | ||
"gulp-typescript": "^3.2.2", | ||
"gulp-uglify": "^3.0.0", | ||
"istanbul": "^0.3.17", | ||
"jdists": "^2.2.0", | ||
"js-yaml": "^3.9.1", | ||
"jshint": "^2.5.8", | ||
"jstrs": "^0.0.1", | ||
"merge2": "^1.1.0", | ||
"mocha": "^2.0.1", | ||
"istanbul": "^0.3.17", | ||
"should": "^4.1.0", | ||
"uglify-js": "^2.4.15", | ||
"jdists": "^1.3.1", | ||
"jshint": "^2.5.8", | ||
"jstrs": "^0.0.1" | ||
"typescript": "^2.5.2", | ||
"uglify-js": "^2.4.15" | ||
}, | ||
"scripts": { | ||
"_update_version": "jdists version.jdists", | ||
"_dist": "jdists src/cbml.js -o cbml.js -r debug,test,remove,safe", | ||
"_compress": "uglifyjs cbml.js -o cbml.min.js -p 5 -c -m", | ||
"example": "jdists example.jdists.js -o test/example.js -t example", | ||
"_update_version": "node version.js", | ||
"_dist": "gulp dist", | ||
"test": "istanbul cover --hook-run-in-context node_modules/mocha/bin/_mocha -- -R spec", | ||
"mocha": "npm run example && mocha", | ||
"dist": "npm run _update_version && npm run example && npm run _dist && npm run _compress && npm run test", | ||
"lint": "jshint src/*.js *.json" | ||
"example": "gulp example", | ||
"mocha": "mocha", | ||
"dist": "npm run _update_version && npm run _dist && npm run test" | ||
}, | ||
"bin": { | ||
"cbml": "cli.js" | ||
"cbml": "lib/cli.js" | ||
} | ||
} |
@@ -9,20 +9,18 @@ # [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url] | ||
```js | ||
{ | ||
"type": "block", // token type : "text" | "block" | "single" | ||
"pos": 7, // Starting position | ||
"endpos": 333, // End position | ||
"value": "/*<jdists>*/.../*</jdists>*/", // All value // as "{{prefix}}" + "{{content}}" + "{{suffix}}" | ||
"tag": "jdists", // tag name | ||
"language": "c", // language : "c" | "pascal" | "python" | "lua" | ||
"attrs": {}, | ||
"line": 1, // Line Numbers | ||
"col": 8 // Column number | ||
"nodes": [ | ||
... | ||
], | ||
"content": "...", | ||
"prefix": "/*<jdists>*/", | ||
"suffix": "/*</jdists>*/" | ||
} | ||
```yaml | ||
- type: BlockElement # TextNode, CommonElement, VoidElement, CBMLElement | ||
attributes: [] | ||
tag: jdists | ||
language: c # pascal, xml, python, lua | ||
body: | ||
- type: TextNode | ||
content: line1.2 | ||
loc: | ||
source: line1.2 | ||
start: | ||
line: 2 | ||
column: 13 | ||
end: | ||
line: 2 | ||
column: 20 | ||
``` | ||
@@ -29,0 +27,0 @@ |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
39882
9
1062
1
18
56
1