@a-la/markers
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -47,2 +47,3 @@ const { makeMarkers, makeCutRule, makePasteRule } = require('restream'); | ||
cutLiterals, | ||
stopRule, | ||
...rules, | ||
@@ -71,2 +72,16 @@ pasteLiterals, | ||
/** | ||
* For debugging where markers went wrong. | ||
* @type {_restream.Rule} | ||
*/ | ||
const stopRule = { | ||
re: /./, | ||
replacement(m) { | ||
/** @suppress {checkTypes} */ | ||
const stop = this['stopProcessing'] | ||
if (stop) this.brake() | ||
return m | ||
}, | ||
} | ||
module.exports=makeRules | ||
@@ -73,0 +88,0 @@ |
@@ -0,1 +1,7 @@ | ||
## 12 May 2019 | ||
### [1.3.0](https://github.com/a-la/markers/compare/v1.2.0...v1.3.0) | ||
- [feature] Add the `stop` rule for debugging. | ||
## 24 April 2019 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "@a-la/markers", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "A set of service markers used by alamode, e.g., to cut and paste comments.", | ||
@@ -39,8 +39,8 @@ "main": "build/index.js", | ||
"devDependencies": { | ||
"alamode": "^1.9.3", | ||
"alamode": "^2.1.2", | ||
"catchment": "^3.3.0", | ||
"documentary": "^1.25.0", | ||
"documentary": "^1.27.2", | ||
"eslint-config-artdeco": "1.0.1", | ||
"yarn-s": "1.1.0", | ||
"zoroaster": "^3.12.0" | ||
"zoroaster": "^4.1.1-alpha" | ||
}, | ||
@@ -47,0 +47,0 @@ "dependencies": { |
@@ -47,2 +47,3 @@ import { makeMarkers, makeCutRule, makePasteRule } from 'restream' | ||
cutLiterals, | ||
stopRule, | ||
...rules, | ||
@@ -71,2 +72,16 @@ pasteLiterals, | ||
/** | ||
* For debugging where markers went wrong. | ||
* @type {_restream.Rule} | ||
*/ | ||
const stopRule = { | ||
re: /./, | ||
replacement(m) { | ||
/** @suppress {checkTypes} */ | ||
const stop = this['stopProcessing'] | ||
if (stop) this.brake() | ||
return m | ||
}, | ||
} | ||
export default makeRules | ||
@@ -73,0 +88,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
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
12762
176