@tabnas/directive 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # @tabnas/directive — directive syntax for the tabnas parser
1
+ # @tabnas/directive: directive syntax for the tabnas parser
2
2
 
3
3
  Adds directive syntax to the [tabnas](https://github.com/tabnas/parser)
4
- parser. A directive is a token sequence (e.g. `@name`, `add<1,2>`) that
5
- triggers custom parsing behaviour. It is a plugin for the tabnas engine —
6
- its only dependency — and layers onto whatever host grammar provides the
4
+ parser. A directive is a token sequence (for example `@name`, `add<1,2>`) that
5
+ triggers custom parsing behaviour. It is a plugin for the tabnas engine
6
+ (its only dependency) and layers onto whatever host grammar provides the
7
7
  standard `val` / `list` / `map` / `pair` rules. TypeScript (canonical)
8
8
  and Go ports share the same API shape and test specs.
9
9
 
@@ -57,4 +57,4 @@ small grammar. See the [root README](../README.md) and
57
57
 
58
58
  ## License
59
59
 
60
- MIT — see [LICENSE](LICENSE).
60
+ MIT. See [LICENSE](LICENSE).
@@ -21,4 +21,4 @@ type DirectiveOptions = {
21
21
  declare const Directive: Plugin;
22
22
  export { VERSION, Directive };
23
23
  export type { DirectiveOptions };
24
- declare const VERSION = "0.5.6";
24
+ declare const VERSION = "0.5.7";
package/dist/directive.js CHANGED
@@ -163,6 +163,6 @@ Directive.defaults = {
163
163
  // VERSION is this package's version. It MUST equal package.json "version":
164
164
  // the release orchestrator rewrites both, and the version test fails the
165
165
  // build if they drift. Mirrors `const VERSION` in go/directive.go.
166
- const VERSION = '0.5.6';
166
+ const VERSION = '0.5.7';
167
167
  exports.VERSION = VERSION;
168
168
  //# sourceMappingURL=directive.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tabnas/directive",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Directive syntax plugin for the tabnas JSON parser.",
5
5
  "main": "dist/directive.js",
6
6
  "type": "commonjs",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "scripts": {
22
22
  "pretest": "npm run build",
23
- "test": "node --enable-source-maps --test \"dist-test/*.test.js\"",
23
+ "test": "node --enable-source-maps --test \"dist-test/*.test.js\" && node --test test/docs.test.js",
24
24
  "pretest-some": "npm run build",
25
25
  "test-some": "node --enable-source-maps --test-name-pattern=\"$npm_config_pattern\" --test \"dist-test/*.test.js\"",
26
26
  "watch": "tsc --build src test -w",
package/src/directive.ts CHANGED
@@ -224,4 +224,4 @@ export type { DirectiveOptions }
224
224
  // VERSION is this package's version. It MUST equal package.json "version":
225
225
  // the release orchestrator rewrites both, and the version test fails the
226
226
  // build if they drift. Mirrors `const VERSION` in go/directive.go.
227
- const VERSION = '0.5.6'
227
+ const VERSION = '0.5.7'