@sasjs/api 0.20.0 → 0.20.1
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/build/browser.js +10 -5
- package/build/cjs/corpus/home.js +7 -3
- package/build/cjs/home/service.js +6 -4
- package/build/cjs/routes/overlay.js +6 -4
- package/build/esm/corpus/home.d.ts +4 -3
- package/build/esm/corpus/home.d.ts.map +1 -1
- package/build/esm/corpus/home.js +7 -3
- package/build/esm/home/service.d.ts.map +1 -1
- package/build/esm/home/service.js +6 -4
- package/build/esm/routes/overlay.d.ts.map +1 -1
- package/build/esm/routes/overlay.js +6 -4
- package/package.json +1 -1
package/build/browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @sasjs/api 0.20.
|
|
1
|
+
/* @sasjs/api 0.20.1 - the SASjs Server API, for a service worker. https://github.com/sasjs/api */
|
|
2
2
|
"use strict";
|
|
3
3
|
var SASjsApi = (() => {
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -2646,10 +2646,12 @@ var SASjsApi = (() => {
|
|
|
2646
2646
|
"GET /": {
|
|
2647
2647
|
implemented: true,
|
|
2648
2648
|
// public: the shell is what an unauthenticated browser asks for first
|
|
2649
|
-
capabilities: []
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2649
|
+
capabilities: []
|
|
2650
|
+
// No body annotation: this status carries two, and neither is a value a
|
|
2651
|
+
// client keys on. The usual answer is the host's own page, stamped with its
|
|
2652
|
+
// bundle token (its bytes are the host's, so the corpus pins the transform
|
|
2653
|
+
// rather than the page); the fallback is NO_WEB_BUILD, which is a constant
|
|
2654
|
+
// here rather than a literal copied into this table.
|
|
2653
2655
|
},
|
|
2654
2656
|
"POST /SASLogon/login": {
|
|
2655
2657
|
implemented: true,
|
|
@@ -4406,6 +4408,9 @@ var SASjsApi = (() => {
|
|
|
4406
4408
|
' <script src="./index.bundle.js"></script>',
|
|
4407
4409
|
' <script src="./vendor.js?v=keepme"></script>',
|
|
4408
4410
|
' <link rel="stylesheet" href="./index.bundle.css" />',
|
|
4411
|
+
// a name that merely begins with the bundle's: stamped by an `includes`
|
|
4412
|
+
// match, left alone here - see BUNDLE_REFERENCE
|
|
4413
|
+
' <link rel="stylesheet" href="./index.bundle.js.css" />',
|
|
4409
4414
|
"</head>",
|
|
4410
4415
|
"<body>",
|
|
4411
4416
|
" <p>The page loads index.bundle.js from the folder beside it.</p>",
|
package/build/cjs/corpus/home.js
CHANGED
|
@@ -6,9 +6,10 @@ exports.HOME_CORPUS = exports.CORPUS_WEB_BODY = exports.CORPUS_WEB_PAGE = void 0
|
|
|
6
6
|
*
|
|
7
7
|
* A bundle reference the stamping rule must rewrite, a second reference that
|
|
8
8
|
* already carries a query string (left alone, which is what makes the transform
|
|
9
|
-
* idempotent),
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* idempotent), a stylesheet whose name merely begins with the bundle's (left
|
|
10
|
+
* alone, which is where this rule differs from sasjs/server's `includes`), and
|
|
11
|
+
* the bundle's name in prose (left as prose). The page a real host reads looks
|
|
12
|
+
* like this; the values are a fixture so a case can pin the exact bytes.
|
|
12
13
|
*/
|
|
13
14
|
exports.CORPUS_WEB_PAGE = {
|
|
14
15
|
version: '4a26a3d1b2c3',
|
|
@@ -19,6 +20,9 @@ exports.CORPUS_WEB_PAGE = {
|
|
|
19
20
|
' <script src="./index.bundle.js"></script>',
|
|
20
21
|
' <script src="./vendor.js?v=keepme"></script>',
|
|
21
22
|
' <link rel="stylesheet" href="./index.bundle.css" />',
|
|
23
|
+
// a name that merely begins with the bundle's: stamped by an `includes`
|
|
24
|
+
// match, left alone here - see BUNDLE_REFERENCE
|
|
25
|
+
' <link rel="stylesheet" href="./index.bundle.js.css" />',
|
|
22
26
|
'</head>',
|
|
23
27
|
'<body>',
|
|
24
28
|
' <p>The page loads index.bundle.js from the folder beside it.</p>',
|
|
@@ -44,10 +44,12 @@ const FILE_ATTRIBUTE = /(\s(?:src|href)=)("[^"]*"|'[^']*'|[^\s>]+)/g;
|
|
|
44
44
|
/**
|
|
45
45
|
* A reference that names the bundle file itself.
|
|
46
46
|
*
|
|
47
|
-
* Anchored at the end (and at a path boundary) rather than
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
47
|
+
* Anchored at the end (and at a path boundary) rather than matched with
|
|
48
|
+
* `includes`, which is what sasjs/server's copy does: `includes` stamps
|
|
49
|
+
* `index.bundle.js.css` with a token derived from a different file, and a token
|
|
50
|
+
* that describes something it did not is worse than no token. The divergence is
|
|
51
|
+
* deliberate and is pinned by the corpus case every host runs, so an adopting
|
|
52
|
+
* host changes this behaviour knowingly rather than by accident.
|
|
51
53
|
*/
|
|
52
54
|
const BUNDLE_REFERENCE = new RegExp(`(^|/)${exports.BUNDLE_NAME.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}$`);
|
|
53
55
|
/**
|
|
@@ -40,10 +40,12 @@ exports.OVERLAY = {
|
|
|
40
40
|
'GET /': {
|
|
41
41
|
implemented: true,
|
|
42
42
|
// public: the shell is what an unauthenticated browser asks for first
|
|
43
|
-
capabilities: []
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
capabilities: []
|
|
44
|
+
// No body annotation: this status carries two, and neither is a value a
|
|
45
|
+
// client keys on. The usual answer is the host's own page, stamped with its
|
|
46
|
+
// bundle token (its bytes are the host's, so the corpus pins the transform
|
|
47
|
+
// rather than the page); the fallback is NO_WEB_BUILD, which is a constant
|
|
48
|
+
// here rather than a literal copied into this table.
|
|
47
49
|
},
|
|
48
50
|
'POST /SASLogon/login': {
|
|
49
51
|
implemented: true,
|
|
@@ -5,9 +5,10 @@ import type { WebPage } from '../home/service.js';
|
|
|
5
5
|
*
|
|
6
6
|
* A bundle reference the stamping rule must rewrite, a second reference that
|
|
7
7
|
* already carries a query string (left alone, which is what makes the transform
|
|
8
|
-
* idempotent),
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* idempotent), a stylesheet whose name merely begins with the bundle's (left
|
|
9
|
+
* alone, which is where this rule differs from sasjs/server's `includes`), and
|
|
10
|
+
* the bundle's name in prose (left as prose). The page a real host reads looks
|
|
11
|
+
* like this; the values are a fixture so a case can pin the exact bytes.
|
|
11
12
|
*/
|
|
12
13
|
export declare const CORPUS_WEB_PAGE: WebPage;
|
|
13
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"home.d.ts","sourceRoot":"","sources":["../../../src/corpus/home.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD
|
|
1
|
+
{"version":3,"file":"home.d.ts","sourceRoot":"","sources":["../../../src/corpus/home.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,OAmB7B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAG3B,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,UAAU,EASnC,CAAA"}
|
package/build/esm/corpus/home.js
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* A bundle reference the stamping rule must rewrite, a second reference that
|
|
5
5
|
* already carries a query string (left alone, which is what makes the transform
|
|
6
|
-
* idempotent),
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* idempotent), a stylesheet whose name merely begins with the bundle's (left
|
|
7
|
+
* alone, which is where this rule differs from sasjs/server's `includes`), and
|
|
8
|
+
* the bundle's name in prose (left as prose). The page a real host reads looks
|
|
9
|
+
* like this; the values are a fixture so a case can pin the exact bytes.
|
|
9
10
|
*/
|
|
10
11
|
export const CORPUS_WEB_PAGE = {
|
|
11
12
|
version: '4a26a3d1b2c3',
|
|
@@ -16,6 +17,9 @@ export const CORPUS_WEB_PAGE = {
|
|
|
16
17
|
' <script src="./index.bundle.js"></script>',
|
|
17
18
|
' <script src="./vendor.js?v=keepme"></script>',
|
|
18
19
|
' <link rel="stylesheet" href="./index.bundle.css" />',
|
|
20
|
+
// a name that merely begins with the bundle's: stamped by an `includes`
|
|
21
|
+
// match, left alone here - see BUNDLE_REFERENCE
|
|
22
|
+
' <link rel="stylesheet" href="./index.bundle.js.css" />',
|
|
19
23
|
'</head>',
|
|
20
24
|
'<body>',
|
|
21
25
|
' <p>The page loads index.bundle.js from the folder beside it.</p>',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/home/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,mDAAmD;AACnD,eAAO,MAAM,WAAW,oBAAoB,CAAA;AAE5C;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,oEAC0C,CAAA;AAEnE,6EAA6E;AAC7E,MAAM,WAAW,OAAO;IACtB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,qDAAqD;IACrD,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACxB;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/home/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,mDAAmD;AACnD,eAAO,MAAM,WAAW,oBAAoB,CAAA;AAE5C;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,oEAC0C,CAAA;AAEnE,6EAA6E;AAC7E,MAAM,WAAW,OAAO;IACtB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,qDAAqD;IACrD,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAA;CACxB;AAmBD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,SAAS,MAAM,KAAG,MAQ9D,CAAA;AAoCJ;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAC5B,MAAM,MAAM,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,KACvC,WAKD,CAAA"}
|
|
@@ -41,10 +41,12 @@ const FILE_ATTRIBUTE = /(\s(?:src|href)=)("[^"]*"|'[^']*'|[^\s>]+)/g;
|
|
|
41
41
|
/**
|
|
42
42
|
* A reference that names the bundle file itself.
|
|
43
43
|
*
|
|
44
|
-
* Anchored at the end (and at a path boundary) rather than
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
44
|
+
* Anchored at the end (and at a path boundary) rather than matched with
|
|
45
|
+
* `includes`, which is what sasjs/server's copy does: `includes` stamps
|
|
46
|
+
* `index.bundle.js.css` with a token derived from a different file, and a token
|
|
47
|
+
* that describes something it did not is worse than no token. The divergence is
|
|
48
|
+
* deliberate and is pinned by the corpus case every host runs, so an adopting
|
|
49
|
+
* host changes this behaviour knowingly rather than by accident.
|
|
48
50
|
*/
|
|
49
51
|
const BUNDLE_REFERENCE = new RegExp(`(^|/)${BUNDLE_NAME.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}$`);
|
|
50
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/routes/overlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAGzD,yDAAyD;AACzD,UAAU,aAAa;IAC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BD,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAiUhD,CAAA;AAED,wEAAwE;AACxE,eAAO,MAAM,OAAO,EAAE,UAAU,EAA8C,CAAA"}
|
|
@@ -37,10 +37,12 @@ export const OVERLAY = {
|
|
|
37
37
|
'GET /': {
|
|
38
38
|
implemented: true,
|
|
39
39
|
// public: the shell is what an unauthenticated browser asks for first
|
|
40
|
-
capabilities: []
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
capabilities: []
|
|
41
|
+
// No body annotation: this status carries two, and neither is a value a
|
|
42
|
+
// client keys on. The usual answer is the host's own page, stamped with its
|
|
43
|
+
// bundle token (its bytes are the host's, so the corpus pins the transform
|
|
44
|
+
// rather than the page); the fallback is NO_WEB_BUILD, which is a constant
|
|
45
|
+
// here rather than a literal copied into this table.
|
|
44
46
|
},
|
|
45
47
|
'POST /SASLogon/login': {
|
|
46
48
|
implemented: true,
|
package/package.json
CHANGED