@a-la/context
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -1,4 +0,5 @@ | ||
const { debuglog } = require('util') | ||
const { Replaceable } = require('restream') | ||
const { debuglog } = require('util'); | ||
const { Replaceable } = require('restream'); | ||
let Catchment = require('catchment'); if (Catchment && Catchment.__esModule) Catchment = Catchment.default; | ||
let makeRules = require('@a-la/markers'); if (makeRules && makeRules.__esModule) makeRules = makeRules.default; | ||
@@ -24,3 +25,7 @@ const LOG = debuglog('@a-la/context') | ||
const replaceable = new Replaceable(rules) | ||
const { rules: allRules, markers } = makeRules( | ||
Array.isArray(rules) ? rules : [rules], | ||
) | ||
const replaceable = new Replaceable(allRules) | ||
replaceable.markers = markers | ||
replaceable.config = this.config | ||
@@ -27,0 +32,0 @@ const events = eventKeys.reduce((acc, key) => ({ ...acc, [key]: [] }), {}) |
@@ -0,1 +1,7 @@ | ||
## 1 September | ||
### 1.2.0 | ||
- [feature] Attach markers to the instance (w/ cutting/pasting strings). | ||
## 22 August 2018 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "@a-la/context", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "A test context for @a-la packages.", | ||
"main": "build", | ||
"scripts": { | ||
"t": "zoroaster -b", | ||
"test": "zoroaster -b test/spec", | ||
"test-build": "BABEL_ENV=test-build yarn test", | ||
"t": "zoroaster -a", | ||
"test": "yarn t test/spec", | ||
"test-build": "ALAMODE_ENV=test-build yarn test", | ||
"test-all": "yarn-s test test-build", | ||
@@ -42,13 +42,14 @@ "test-watch": "yarn test -w", | ||
"devDependencies": { | ||
"alamode": "1.1.0", | ||
"alamode": "1.3.0", | ||
"documentary": "1.10.0", | ||
"eslint-config-artdeco": "1.0.1", | ||
"yarn-s": "1.1.0", | ||
"zoroaster": "2.3.0" | ||
"zoroaster": "2.4.0" | ||
}, | ||
"dependencies": { | ||
"catchment": "3.0.0", | ||
"@a-la/markers": "1.0.0", | ||
"catchment": "3.0.1", | ||
"erte": "1.1.4", | ||
"restream": "3.1.0" | ||
"restream": "3.1.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
12599
58
4
+ Added@a-la/markers@1.0.0
+ Added@a-la/markers@1.0.0(transitive)
+ Addedcatchment@3.0.1(transitive)
+ Addedrestream@3.1.1(transitive)
- Removedcatchment@3.0.0(transitive)
- Removedrestream@3.1.0(transitive)
Updatedcatchment@3.0.1
Updatedrestream@3.1.1