@static-pages/core 5.0.2 → 6.0.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,103 @@
1
+ # CHANGELOG
2
+
3
+ ## 6.0.0
4
+ - Adopt JS iterator protocol for the writer callbacks.
5
+ - Removed the `.teardown()` call on the writer when iteration finished. The iterator protocol gives better tools to express these logic.
6
+
7
+
8
+ ## 5.0.3
9
+ - Updated .npmignore to remove unneeded files from package.
10
+
11
+ ## 5.0.2
12
+ - Use Github Actions instead of Travis-CI, replace Build status badge.
13
+
14
+ ## 5.0.1
15
+ - Updated maintenance badge in README.md.
16
+
17
+ ## 5.0.0
18
+ - Added a `.teardown()` call on the writer which is executed when iteration finished.
19
+ - Provided better type definitions.
20
+
21
+
22
+ ## 4.0.0
23
+ - Now types are exported in a namespace.
24
+
25
+
26
+ ## 3.0.4
27
+ - Updated eslint config.
28
+
29
+ ## 3.0.3
30
+ - Added esm tests.
31
+ - Improved build configuration.
32
+
33
+ ## 3.0.2
34
+ - Improved examples.
35
+
36
+ ## 3.0.1
37
+ - Updated docs.
38
+
39
+ ## 3.0.0
40
+ - Removed `variables` option on `Route` type. You can use `.bind()` on the writer to achieve the same functionality.
41
+ - Updated tests.
42
+ - Updated README.md.
43
+
44
+
45
+ ## 2.1.0
46
+ - In addition to the default export, now the main function also gets exported as `staticPages`.
47
+
48
+ ## 2.0.2
49
+ - Updated dependencies.
50
+ - Updated docker image link in README.md.
51
+
52
+ ## 2.0.1
53
+ - Fixed a typo in README.md.
54
+
55
+ ## 2.0.0
56
+ - Made configuration a bit cleaner and predictable by wrapping additional variables in a `variables` key in the `Route` type.
57
+ - Updated tests.
58
+ - Updated docs.
59
+ - Changed some eslint configuration.
60
+
61
+
62
+ ## 1.0.4
63
+ - Improved esmodule compatibility.
64
+ - Simplified syntax of `Data` type.
65
+
66
+ ## 1.0.3
67
+ - Made `isIterable` test a bit cleaner.
68
+
69
+ ## 1.0.2
70
+ - Added eslint support.
71
+
72
+ ## 1.0.1
73
+ - First stable release.
74
+ - Added node12 support.
75
+ - Updated .npmignore to remove unneeded files from package.
76
+ - Updated dependencies.
77
+ - Updated examples in README.md.
78
+ - Added badges to README.md.
79
+
80
+
81
+ ## 0.1.6
82
+ - Updated tests to get 100% coverage.
83
+ - Added test cases when `staticPages()` should throw.
84
+ - Fixed a faulty throws case.
85
+
86
+ ## 0.1.5
87
+ - Added Travis testing and Coveralls coverage badge to README.md.
88
+
89
+ ## 0.1.4
90
+ - Improved README.md.
91
+
92
+ ## 0.1.3
93
+ - Added error handling which should throw when invalid params provided.
94
+
95
+ ## 0.1.2
96
+ - Configured a `prepack` script to automatically test before publish.
97
+
98
+ ## 0.1.1
99
+ - Updated .npmignore to omit /src folder from release.
100
+ - Updated package keywords.
101
+
102
+ ## 0.1.0
103
+ - Initial work in progress release.
package/README.md CHANGED
@@ -29,7 +29,9 @@ This project targets small and medium sized projects. The rendering process trie
29
29
  [Visit the project page.](https://staticpagesjs.github.io/)
30
30
 
31
31
  ## Usage
32
- __Readers__ provides an iterable list of page data. __Controllers__ can manipulate and extend each data object. __Writers__ render the final output for you.
32
+ - __Readers__ provides an iterable list of page data.
33
+ - __Controllers__ can manipulate and extend each data object.
34
+ - __Writers__ render the final output for you.
33
35
 
34
36
  ```js
35
37
  import staticPages from '@static-pages/core';
@@ -78,17 +80,16 @@ Each route consists of a `from`, `to` and optionally a `controller` property mat
78
80
  type Data = Record<string, unknown>;
79
81
  type Route = {
80
82
  from: Iterable<Data> | AsyncIterable<Data>;
81
- to: { (data: Data): void | Promise<void>; teardown?(): void | Promise<void>; };
83
+ to(data: IteratorResult<Data>): void | Promise<void>;
82
84
  controller?(data: Data): void | Data | Data[] | Promise<void | Data | Data[]>;
83
85
  };
84
86
  ```
85
87
 
86
- > Tip: Controllers may return an array of `Data` objects; each will be rendered as a separate page.
87
- > Alternatively it may return `void` to prevent the rendering of the current data object.
88
+ ### Implementation Notes
88
89
 
89
- > Tip: To schedule cleanup after writers you can define a `.teardown()` member on the writer call.
90
- > This callback will be run after the last page is processed. If more writers provide the same callback
91
- > its only executed once.
90
+ - The `controller` may return an array of `Data` objects; each will be rendered as a separate page. Alternatively it may return `void` to prevent the rendering of the current data object.
91
+
92
+ - The writer function provided in the `to` property is expected to conform to the JavaScript iterator protocol in order to work. Specifically, this means that the function will be invoked with a `{ value: Data }` parameter for each data object, and will receive a `{ done: true }` parameter when it has finished processing the data and there is no more pages to write.
92
93
 
93
94
  ## Missing a feature?
94
95
  Create an issue describing your needs. If it fits the scope of the project I will implement it or you can implement it your own and submit a pull request.
package/cjs/index.d.ts CHANGED
@@ -1,10 +1,7 @@
1
1
  export declare namespace staticPages {
2
2
  type Route<R extends Record<string, unknown> = Record<string, unknown>, W extends Record<string, unknown> = Record<string, unknown>> = {
3
3
  from: Iterable<R> | AsyncIterable<R>;
4
- to: {
5
- (data: W): void | Promise<void>;
6
- teardown?(): void | Promise<void>;
7
- };
4
+ to(data: IteratorResult<W>): void | Promise<void>;
8
5
  controller?(data: R): void | W | W[] | Promise<void | W | W[]>;
9
6
  };
10
7
  }
package/cjs/index.js CHANGED
@@ -5,7 +5,6 @@ const getType = (x) => typeof x === 'object' ? (x ? 'object' : 'null') : typeof
5
5
  const isIterable = (x) => typeof (x === null || x === void 0 ? void 0 : x[Symbol.iterator]) === 'function';
6
6
  const isAsyncIterable = (x) => typeof (x === null || x === void 0 ? void 0 : x[Symbol.asyncIterator]) === 'function';
7
7
  async function staticPages(...routes) {
8
- const teardown = new Set();
9
8
  for (const route of routes) {
10
9
  if (typeof route !== 'object' || !route)
11
10
  throw new Error(`Argument type mismatch, expected 'object', got '${getType(route)}'.`);
@@ -16,26 +15,21 @@ async function staticPages(...routes) {
16
15
  throw new Error(`Argument type mismatch, 'to' expects 'function', got '${getType(to)}'.`);
17
16
  if (typeof controller !== 'undefined' && typeof controller !== 'function')
18
17
  throw new Error(`Argument type mismatch, 'controller' expects 'function', got '${getType(controller)}'.`);
19
- if (typeof to.teardown === 'function') {
20
- teardown.add(to.teardown);
21
- }
22
18
  const isController = typeof controller === 'function';
23
19
  for await (const data of from) {
24
20
  const results = isController ? await controller(data) : data;
25
21
  if (typeof results === 'object' && results) {
26
22
  if (Array.isArray(results)) {
27
23
  for (const result of results) {
28
- await to(result);
24
+ await to({ value: result });
29
25
  }
30
26
  }
31
27
  else {
32
- await to(results);
28
+ await to({ value: results });
33
29
  }
34
30
  }
35
31
  }
36
- }
37
- for (const fn of teardown) {
38
- await fn();
32
+ await to({ done: true, value: undefined });
39
33
  }
40
34
  }
41
35
  exports.staticPages = staticPages;
package/esm/index.d.ts CHANGED
@@ -1,10 +1,7 @@
1
1
  export declare namespace staticPages {
2
2
  type Route<R extends Record<string, unknown> = Record<string, unknown>, W extends Record<string, unknown> = Record<string, unknown>> = {
3
3
  from: Iterable<R> | AsyncIterable<R>;
4
- to: {
5
- (data: W): void | Promise<void>;
6
- teardown?(): void | Promise<void>;
7
- };
4
+ to(data: IteratorResult<W>): void | Promise<void>;
8
5
  controller?(data: R): void | W | W[] | Promise<void | W | W[]>;
9
6
  };
10
7
  }
package/esm/index.js CHANGED
@@ -2,7 +2,6 @@ const getType = (x) => typeof x === 'object' ? (x ? 'object' : 'null') : typeof
2
2
  const isIterable = (x) => typeof (x === null || x === void 0 ? void 0 : x[Symbol.iterator]) === 'function';
3
3
  const isAsyncIterable = (x) => typeof (x === null || x === void 0 ? void 0 : x[Symbol.asyncIterator]) === 'function';
4
4
  export async function staticPages(...routes) {
5
- const teardown = new Set();
6
5
  for (const route of routes) {
7
6
  if (typeof route !== 'object' || !route)
8
7
  throw new Error(`Argument type mismatch, expected 'object', got '${getType(route)}'.`);
@@ -13,26 +12,21 @@ export async function staticPages(...routes) {
13
12
  throw new Error(`Argument type mismatch, 'to' expects 'function', got '${getType(to)}'.`);
14
13
  if (typeof controller !== 'undefined' && typeof controller !== 'function')
15
14
  throw new Error(`Argument type mismatch, 'controller' expects 'function', got '${getType(controller)}'.`);
16
- if (typeof to.teardown === 'function') {
17
- teardown.add(to.teardown);
18
- }
19
15
  const isController = typeof controller === 'function';
20
16
  for await (const data of from) {
21
17
  const results = isController ? await controller(data) : data;
22
18
  if (typeof results === 'object' && results) {
23
19
  if (Array.isArray(results)) {
24
20
  for (const result of results) {
25
- await to(result);
21
+ await to({ value: result });
26
22
  }
27
23
  }
28
24
  else {
29
- await to(results);
25
+ await to({ value: results });
30
26
  }
31
27
  }
32
28
  }
33
- }
34
- for (const fn of teardown) {
35
- await fn();
29
+ await to({ done: true, value: undefined });
36
30
  }
37
31
  }
38
32
  export default staticPages;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@static-pages/core",
3
- "version": "5.0.2",
3
+ "version": "6.0.0",
4
4
  "description": "General purpose static pages renderer.",
5
5
  "type": "module",
6
6
  "main": "cjs/index.js",
@@ -1,22 +0,0 @@
1
- name: Build
2
- on:
3
- push:
4
- # branches: [ master ]
5
- pull_request:
6
- # branches: [ master ]
7
- workflow_dispatch:
8
- jobs:
9
- build:
10
- environment: build
11
- runs-on: ubuntu-latest
12
- container: node:16
13
- steps:
14
- - uses: actions/checkout@v3
15
- - name: Install node packages
16
- run: npm install
17
- - name: Build package
18
- run: npm run build
19
- - name: Run tests and publish coverage data to coveralls.io
20
- run: npm test
21
- env:
22
- COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
@@ -1 +0,0 @@
1
- {"C:\\GIT\\@static-pages\\core\\esm\\index.js":{"path":"C:\\GIT\\@static-pages\\core\\esm\\index.js","statementMap":{"0":{"start":{"line":1,"column":16},"end":{"line":1,"column":81}},"1":{"start":{"line":1,"column":23},"end":{"line":1,"column":81}},"2":{"start":{"line":2,"column":19},"end":{"line":2,"column":106}},"3":{"start":{"line":2,"column":26},"end":{"line":2,"column":106}},"4":{"start":{"line":3,"column":24},"end":{"line":3,"column":116}},"5":{"start":{"line":3,"column":31},"end":{"line":3,"column":116}},"6":{"start":{"line":5,"column":21},"end":{"line":5,"column":30}},"7":{"start":{"line":6,"column":4},"end":{"line":33,"column":5}},"8":{"start":{"line":7,"column":8},"end":{"line":8,"column":99}},"9":{"start":{"line":8,"column":12},"end":{"line":8,"column":99}},"10":{"start":{"line":9,"column":41},"end":{"line":9,"column":46}},"11":{"start":{"line":10,"column":8},"end":{"line":11,"column":108}},"12":{"start":{"line":11,"column":12},"end":{"line":11,"column":108}},"13":{"start":{"line":12,"column":8},"end":{"line":13,"column":102}},"14":{"start":{"line":13,"column":12},"end":{"line":13,"column":102}},"15":{"start":{"line":14,"column":8},"end":{"line":15,"column":118}},"16":{"start":{"line":15,"column":12},"end":{"line":15,"column":118}},"17":{"start":{"line":16,"column":8},"end":{"line":18,"column":9}},"18":{"start":{"line":17,"column":12},"end":{"line":17,"column":38}},"19":{"start":{"line":19,"column":29},"end":{"line":19,"column":61}},"20":{"start":{"line":20,"column":8},"end":{"line":32,"column":9}},"21":{"start":{"line":21,"column":28},"end":{"line":21,"column":72}},"22":{"start":{"line":22,"column":12},"end":{"line":31,"column":13}},"23":{"start":{"line":23,"column":16},"end":{"line":30,"column":17}},"24":{"start":{"line":24,"column":20},"end":{"line":26,"column":21}},"25":{"start":{"line":25,"column":24},"end":{"line":25,"column":41}},"26":{"start":{"line":29,"column":20},"end":{"line":29,"column":38}},"27":{"start":{"line":34,"column":4},"end":{"line":36,"column":5}},"28":{"start":{"line":35,"column":8},"end":{"line":35,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":16},"end":{"line":1,"column":17}},"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":81}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":2,"column":19},"end":{"line":2,"column":20}},"loc":{"start":{"line":2,"column":26},"end":{"line":2,"column":106}},"line":2},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":24},"end":{"line":3,"column":25}},"loc":{"start":{"line":3,"column":31},"end":{"line":3,"column":116}},"line":3},"3":{"name":"staticPages","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":33}},"loc":{"start":{"line":4,"column":45},"end":{"line":37,"column":1}},"line":4}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":81}},"type":"cond-expr","locations":[{"start":{"line":1,"column":48},"end":{"line":1,"column":69}},{"start":{"line":1,"column":73},"end":{"line":1,"column":81}}],"line":1},"1":{"loc":{"start":{"line":1,"column":48},"end":{"line":1,"column":69}},"type":"cond-expr","locations":[{"start":{"line":1,"column":52},"end":{"line":1,"column":60}},{"start":{"line":1,"column":63},"end":{"line":1,"column":69}}],"line":1},"2":{"loc":{"start":{"line":2,"column":34},"end":{"line":2,"column":90}},"type":"cond-expr","locations":[{"start":{"line":2,"column":63},"end":{"line":2,"column":69}},{"start":{"line":2,"column":72},"end":{"line":2,"column":90}}],"line":2},"3":{"loc":{"start":{"line":2,"column":34},"end":{"line":2,"column":60}},"type":"binary-expr","locations":[{"start":{"line":2,"column":34},"end":{"line":2,"column":44}},{"start":{"line":2,"column":48},"end":{"line":2,"column":60}}],"line":2},"4":{"loc":{"start":{"line":3,"column":39},"end":{"line":3,"column":100}},"type":"cond-expr","locations":[{"start":{"line":3,"column":68},"end":{"line":3,"column":74}},{"start":{"line":3,"column":77},"end":{"line":3,"column":100}}],"line":3},"5":{"loc":{"start":{"line":3,"column":39},"end":{"line":3,"column":65}},"type":"binary-expr","locations":[{"start":{"line":3,"column":39},"end":{"line":3,"column":49}},{"start":{"line":3,"column":53},"end":{"line":3,"column":65}}],"line":3},"6":{"loc":{"start":{"line":7,"column":8},"end":{"line":8,"column":99}},"type":"if","locations":[{"start":{"line":7,"column":8},"end":{"line":8,"column":99}},{"start":{},"end":{}}],"line":7},"7":{"loc":{"start":{"line":7,"column":12},"end":{"line":7,"column":47}},"type":"binary-expr","locations":[{"start":{"line":7,"column":12},"end":{"line":7,"column":37}},{"start":{"line":7,"column":41},"end":{"line":7,"column":47}}],"line":7},"8":{"loc":{"start":{"line":10,"column":8},"end":{"line":11,"column":108}},"type":"if","locations":[{"start":{"line":10,"column":8},"end":{"line":11,"column":108}},{"start":{},"end":{}}],"line":10},"9":{"loc":{"start":{"line":10,"column":12},"end":{"line":10,"column":55}},"type":"binary-expr","locations":[{"start":{"line":10,"column":12},"end":{"line":10,"column":29}},{"start":{"line":10,"column":33},"end":{"line":10,"column":55}}],"line":10},"10":{"loc":{"start":{"line":12,"column":8},"end":{"line":13,"column":102}},"type":"if","locations":[{"start":{"line":12,"column":8},"end":{"line":13,"column":102}},{"start":{},"end":{}}],"line":12},"11":{"loc":{"start":{"line":14,"column":8},"end":{"line":15,"column":118}},"type":"if","locations":[{"start":{"line":14,"column":8},"end":{"line":15,"column":118}},{"start":{},"end":{}}],"line":14},"12":{"loc":{"start":{"line":14,"column":12},"end":{"line":14,"column":81}},"type":"binary-expr","locations":[{"start":{"line":14,"column":12},"end":{"line":14,"column":45}},{"start":{"line":14,"column":49},"end":{"line":14,"column":81}}],"line":14},"13":{"loc":{"start":{"line":16,"column":8},"end":{"line":18,"column":9}},"type":"if","locations":[{"start":{"line":16,"column":8},"end":{"line":18,"column":9}},{"start":{},"end":{}}],"line":16},"14":{"loc":{"start":{"line":21,"column":28},"end":{"line":21,"column":72}},"type":"cond-expr","locations":[{"start":{"line":21,"column":43},"end":{"line":21,"column":65}},{"start":{"line":21,"column":68},"end":{"line":21,"column":72}}],"line":21},"15":{"loc":{"start":{"line":22,"column":12},"end":{"line":31,"column":13}},"type":"if","locations":[{"start":{"line":22,"column":12},"end":{"line":31,"column":13}},{"start":{},"end":{}}],"line":22},"16":{"loc":{"start":{"line":22,"column":16},"end":{"line":22,"column":54}},"type":"binary-expr","locations":[{"start":{"line":22,"column":16},"end":{"line":22,"column":43}},{"start":{"line":22,"column":47},"end":{"line":22,"column":54}}],"line":22},"17":{"loc":{"start":{"line":23,"column":16},"end":{"line":30,"column":17}},"type":"if","locations":[{"start":{"line":23,"column":16},"end":{"line":30,"column":17}},{"start":{"line":28,"column":21},"end":{"line":30,"column":17}}],"line":23}},"s":{"0":1,"1":3,"2":1,"3":4,"4":1,"5":2,"6":5,"7":5,"8":5,"9":1,"10":4,"11":4,"12":2,"13":2,"14":1,"15":1,"16":1,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0},"f":{"0":3,"1":4,"2":2,"3":5},"b":{"0":[2,1],"1":[1,1],"2":[1,3],"3":[4,4],"4":[1,1],"5":[2,2],"6":[1,4],"7":[5,5],"8":[2,2],"9":[4,2],"10":[1,1],"11":[1,0],"12":[1,1],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"80fd36b9ee94369b7cca5c581f270664f3f5aca3"}}
@@ -1 +0,0 @@
1
- {"C:\\GIT\\@static-pages\\core\\esm\\index.js":{"path":"C:\\GIT\\@static-pages\\core\\esm\\index.js","statementMap":{"0":{"start":{"line":1,"column":16},"end":{"line":1,"column":81}},"1":{"start":{"line":1,"column":23},"end":{"line":1,"column":81}},"2":{"start":{"line":2,"column":19},"end":{"line":2,"column":106}},"3":{"start":{"line":2,"column":26},"end":{"line":2,"column":106}},"4":{"start":{"line":3,"column":24},"end":{"line":3,"column":116}},"5":{"start":{"line":3,"column":31},"end":{"line":3,"column":116}},"6":{"start":{"line":5,"column":21},"end":{"line":5,"column":30}},"7":{"start":{"line":6,"column":4},"end":{"line":33,"column":5}},"8":{"start":{"line":7,"column":8},"end":{"line":8,"column":99}},"9":{"start":{"line":8,"column":12},"end":{"line":8,"column":99}},"10":{"start":{"line":9,"column":41},"end":{"line":9,"column":46}},"11":{"start":{"line":10,"column":8},"end":{"line":11,"column":108}},"12":{"start":{"line":11,"column":12},"end":{"line":11,"column":108}},"13":{"start":{"line":12,"column":8},"end":{"line":13,"column":102}},"14":{"start":{"line":13,"column":12},"end":{"line":13,"column":102}},"15":{"start":{"line":14,"column":8},"end":{"line":15,"column":118}},"16":{"start":{"line":15,"column":12},"end":{"line":15,"column":118}},"17":{"start":{"line":16,"column":8},"end":{"line":18,"column":9}},"18":{"start":{"line":17,"column":12},"end":{"line":17,"column":38}},"19":{"start":{"line":19,"column":29},"end":{"line":19,"column":61}},"20":{"start":{"line":20,"column":8},"end":{"line":32,"column":9}},"21":{"start":{"line":21,"column":28},"end":{"line":21,"column":72}},"22":{"start":{"line":22,"column":12},"end":{"line":31,"column":13}},"23":{"start":{"line":23,"column":16},"end":{"line":30,"column":17}},"24":{"start":{"line":24,"column":20},"end":{"line":26,"column":21}},"25":{"start":{"line":25,"column":24},"end":{"line":25,"column":41}},"26":{"start":{"line":29,"column":20},"end":{"line":29,"column":38}},"27":{"start":{"line":34,"column":4},"end":{"line":36,"column":5}},"28":{"start":{"line":35,"column":8},"end":{"line":35,"column":19}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":16},"end":{"line":1,"column":17}},"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":81}},"line":1},"1":{"name":"(anonymous_1)","decl":{"start":{"line":2,"column":19},"end":{"line":2,"column":20}},"loc":{"start":{"line":2,"column":26},"end":{"line":2,"column":106}},"line":2},"2":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":24},"end":{"line":3,"column":25}},"loc":{"start":{"line":3,"column":31},"end":{"line":3,"column":116}},"line":3},"3":{"name":"staticPages","decl":{"start":{"line":4,"column":22},"end":{"line":4,"column":33}},"loc":{"start":{"line":4,"column":45},"end":{"line":37,"column":1}},"line":4}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":81}},"type":"cond-expr","locations":[{"start":{"line":1,"column":48},"end":{"line":1,"column":69}},{"start":{"line":1,"column":73},"end":{"line":1,"column":81}}],"line":1},"1":{"loc":{"start":{"line":1,"column":48},"end":{"line":1,"column":69}},"type":"cond-expr","locations":[{"start":{"line":1,"column":52},"end":{"line":1,"column":60}},{"start":{"line":1,"column":63},"end":{"line":1,"column":69}}],"line":1},"2":{"loc":{"start":{"line":2,"column":34},"end":{"line":2,"column":90}},"type":"cond-expr","locations":[{"start":{"line":2,"column":63},"end":{"line":2,"column":69}},{"start":{"line":2,"column":72},"end":{"line":2,"column":90}}],"line":2},"3":{"loc":{"start":{"line":2,"column":34},"end":{"line":2,"column":60}},"type":"binary-expr","locations":[{"start":{"line":2,"column":34},"end":{"line":2,"column":44}},{"start":{"line":2,"column":48},"end":{"line":2,"column":60}}],"line":2},"4":{"loc":{"start":{"line":3,"column":39},"end":{"line":3,"column":100}},"type":"cond-expr","locations":[{"start":{"line":3,"column":68},"end":{"line":3,"column":74}},{"start":{"line":3,"column":77},"end":{"line":3,"column":100}}],"line":3},"5":{"loc":{"start":{"line":3,"column":39},"end":{"line":3,"column":65}},"type":"binary-expr","locations":[{"start":{"line":3,"column":39},"end":{"line":3,"column":49}},{"start":{"line":3,"column":53},"end":{"line":3,"column":65}}],"line":3},"6":{"loc":{"start":{"line":7,"column":8},"end":{"line":8,"column":99}},"type":"if","locations":[{"start":{"line":7,"column":8},"end":{"line":8,"column":99}},{"start":{},"end":{}}],"line":7},"7":{"loc":{"start":{"line":7,"column":12},"end":{"line":7,"column":47}},"type":"binary-expr","locations":[{"start":{"line":7,"column":12},"end":{"line":7,"column":37}},{"start":{"line":7,"column":41},"end":{"line":7,"column":47}}],"line":7},"8":{"loc":{"start":{"line":10,"column":8},"end":{"line":11,"column":108}},"type":"if","locations":[{"start":{"line":10,"column":8},"end":{"line":11,"column":108}},{"start":{},"end":{}}],"line":10},"9":{"loc":{"start":{"line":10,"column":12},"end":{"line":10,"column":55}},"type":"binary-expr","locations":[{"start":{"line":10,"column":12},"end":{"line":10,"column":29}},{"start":{"line":10,"column":33},"end":{"line":10,"column":55}}],"line":10},"10":{"loc":{"start":{"line":12,"column":8},"end":{"line":13,"column":102}},"type":"if","locations":[{"start":{"line":12,"column":8},"end":{"line":13,"column":102}},{"start":{},"end":{}}],"line":12},"11":{"loc":{"start":{"line":14,"column":8},"end":{"line":15,"column":118}},"type":"if","locations":[{"start":{"line":14,"column":8},"end":{"line":15,"column":118}},{"start":{},"end":{}}],"line":14},"12":{"loc":{"start":{"line":14,"column":12},"end":{"line":14,"column":81}},"type":"binary-expr","locations":[{"start":{"line":14,"column":12},"end":{"line":14,"column":45}},{"start":{"line":14,"column":49},"end":{"line":14,"column":81}}],"line":14},"13":{"loc":{"start":{"line":16,"column":8},"end":{"line":18,"column":9}},"type":"if","locations":[{"start":{"line":16,"column":8},"end":{"line":18,"column":9}},{"start":{},"end":{}}],"line":16},"14":{"loc":{"start":{"line":21,"column":28},"end":{"line":21,"column":72}},"type":"cond-expr","locations":[{"start":{"line":21,"column":43},"end":{"line":21,"column":65}},{"start":{"line":21,"column":68},"end":{"line":21,"column":72}}],"line":21},"15":{"loc":{"start":{"line":22,"column":12},"end":{"line":31,"column":13}},"type":"if","locations":[{"start":{"line":22,"column":12},"end":{"line":31,"column":13}},{"start":{},"end":{}}],"line":22},"16":{"loc":{"start":{"line":22,"column":16},"end":{"line":22,"column":54}},"type":"binary-expr","locations":[{"start":{"line":22,"column":16},"end":{"line":22,"column":43}},{"start":{"line":22,"column":47},"end":{"line":22,"column":54}}],"line":22},"17":{"loc":{"start":{"line":23,"column":16},"end":{"line":30,"column":17}},"type":"if","locations":[{"start":{"line":23,"column":16},"end":{"line":30,"column":17}},{"start":{"line":28,"column":21},"end":{"line":30,"column":17}}],"line":23}},"s":{"0":1,"1":0,"2":1,"3":8,"4":1,"5":2,"6":8,"7":8,"8":8,"9":0,"10":8,"11":8,"12":0,"13":8,"14":0,"15":8,"16":0,"17":8,"18":1,"19":8,"20":8,"21":40,"22":40,"23":38,"24":5,"25":10,"26":33,"27":8,"28":1},"f":{"0":0,"1":8,"2":2,"3":8},"b":{"0":[0,0],"1":[0,0],"2":[0,8],"3":[8,8],"4":[0,2],"5":[2,2],"6":[0,8],"7":[8,8],"8":[0,8],"9":[8,2],"10":[0,8],"11":[0,8],"12":[8,3],"13":[1,7],"14":[15,25],"15":[38,2],"16":[40,38],"17":[5,33]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"80fd36b9ee94369b7cca5c581f270664f3f5aca3"}}
@@ -1 +0,0 @@
1
- {"parent":"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d","pid":9476,"argv":["C:\\Program Files\\nodejs\\node.exe","C:\\GIT\\@static-pages\\core\\node_modules\\coveralls\\bin\\coveralls.js"],"execArgv":[],"cwd":"C:\\GIT\\@static-pages\\core","time":1678227702592,"ppid":11104,"coverageFilename":"C:\\GIT\\@static-pages\\core\\.nyc_output\\015dd439-d35a-4d0f-8849-4f4e5e318451.json","externalId":"","uuid":"015dd439-d35a-4d0f-8849-4f4e5e318451","files":[]}
@@ -1 +0,0 @@
1
- {"parent":"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d","pid":3048,"argv":["C:\\Program Files\\nodejs\\node.exe","C:\\GIT\\@static-pages\\core\\tests\\cjs.test.cjs"],"execArgv":["--no-warnings","--experimental-loader","@istanbuljs/esm-loader-hook"],"cwd":"C:\\GIT\\@static-pages\\core","time":1678227700722,"ppid":11104,"coverageFilename":"C:\\GIT\\@static-pages\\core\\.nyc_output\\237ea20f-400d-4317-bf97-aafba8b4e7ac.json","externalId":"tests/cjs.test.cjs","uuid":"237ea20f-400d-4317-bf97-aafba8b4e7ac","files":[]}
@@ -1 +0,0 @@
1
- {"parent":"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d","pid":14148,"argv":["C:\\Program Files\\nodejs\\node.exe","C:\\GIT\\@static-pages\\core\\tests\\throws.test.js"],"execArgv":["--no-warnings","--experimental-loader","@istanbuljs/esm-loader-hook"],"cwd":"C:\\GIT\\@static-pages\\core","time":1678227700747,"ppid":11104,"coverageFilename":"C:\\GIT\\@static-pages\\core\\.nyc_output\\594fdb08-d829-4ada-8764-9e9df75c0774.json","externalId":"tests/throws.test.js","uuid":"594fdb08-d829-4ada-8764-9e9df75c0774","files":["C:\\GIT\\@static-pages\\core\\esm\\index.js"]}
@@ -1 +0,0 @@
1
- {"parent":"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d","pid":14308,"argv":["C:\\Program Files\\nodejs\\node.exe","C:\\GIT\\@static-pages\\core\\tests\\general.test.js"],"execArgv":["--no-warnings","--experimental-loader","@istanbuljs/esm-loader-hook"],"cwd":"C:\\GIT\\@static-pages\\core","time":1678227700748,"ppid":11104,"coverageFilename":"C:\\GIT\\@static-pages\\core\\.nyc_output\\8c2469b0-021e-4019-b01c-d549686484e1.json","externalId":"tests/general.test.js","uuid":"8c2469b0-021e-4019-b01c-d549686484e1","files":["C:\\GIT\\@static-pages\\core\\esm\\index.js"]}
@@ -1 +0,0 @@
1
- {"parent":null,"pid":11104,"argv":["C:\\Program Files\\nodejs\\node.exe","C:\\GIT\\@static-pages\\core\\node_modules\\tap\\bin\\run.js","--nyc-arg=--exclude=cjs/index.js","--node-arg=--no-warnings","--node-arg=--experimental-loader","--node-arg=@istanbuljs/esm-loader-hook"],"execArgv":[],"cwd":"C:\\GIT\\@static-pages\\core","time":1678227699966,"ppid":6252,"coverageFilename":"C:\\GIT\\@static-pages\\core\\.nyc_output\\8c2eda8d-6774-4bc0-85a0-ce3f3170a62d.json","externalId":"","uuid":"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d","files":[]}
@@ -1 +0,0 @@
1
- {"parent":"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d","pid":2788,"argv":["C:\\Program Files\\nodejs\\node.exe","C:\\GIT\\@static-pages\\core\\node_modules\\nyc\\bin\\nyc.js","report","--reporter=text-lcov"],"execArgv":[],"cwd":"C:\\GIT\\@static-pages\\core","time":1678227702542,"ppid":11104,"coverageFilename":"C:\\GIT\\@static-pages\\core\\.nyc_output\\9cc8ac00-9b88-4d97-972e-4ed95af09b45.json","externalId":"","uuid":"9cc8ac00-9b88-4d97-972e-4ed95af09b45","files":[]}
@@ -1 +0,0 @@
1
- {"processes":{"015dd439-d35a-4d0f-8849-4f4e5e318451":{"parent":"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d","children":[]},"237ea20f-400d-4317-bf97-aafba8b4e7ac":{"parent":"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d","externalId":"tests/cjs.test.cjs","children":[]},"594fdb08-d829-4ada-8764-9e9df75c0774":{"parent":"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d","externalId":"tests/throws.test.js","children":[]},"8c2469b0-021e-4019-b01c-d549686484e1":{"parent":"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d","externalId":"tests/general.test.js","children":[]},"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d":{"parent":null,"children":["015dd439-d35a-4d0f-8849-4f4e5e318451","237ea20f-400d-4317-bf97-aafba8b4e7ac","594fdb08-d829-4ada-8764-9e9df75c0774","8c2469b0-021e-4019-b01c-d549686484e1","9cc8ac00-9b88-4d97-972e-4ed95af09b45"]},"9cc8ac00-9b88-4d97-972e-4ed95af09b45":{"parent":"8c2eda8d-6774-4bc0-85a0-ce3f3170a62d","children":[]}},"files":{"C:\\GIT\\@static-pages\\core\\esm\\index.js":["594fdb08-d829-4ada-8764-9e9df75c0774","8c2469b0-021e-4019-b01c-d549686484e1"]},"externalIds":{"tests/cjs.test.cjs":{"root":"237ea20f-400d-4317-bf97-aafba8b4e7ac","children":[]},"tests/throws.test.js":{"root":"594fdb08-d829-4ada-8764-9e9df75c0774","children":[]},"tests/general.test.js":{"root":"8c2469b0-021e-4019-b01c-d549686484e1","children":[]}}}