@sasjs/api 0.20.0 → 0.21.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/build/browser.js CHANGED
@@ -1,4 +1,4 @@
1
- /* @sasjs/api 0.20.0 - the SASjs Server API, for a service worker. https://github.com/sasjs/api */
1
+ /* @sasjs/api 0.21.0 - 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
- responses: {
2651
- 200: "<html><head></head><body>Web Build is not present</body></html>"
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>",
@@ -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), and the bundle's name in prose (left as prose). The page a real
10
- * host reads looks like this; the values are a fixture so a case can pin the
11
- * exact bytes.
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>',
@@ -38,10 +38,12 @@ const groupsOf = (groups) => {
38
38
  /**
39
39
  * The import, over the host's store.
40
40
  *
41
- * `IdentityStore` is the port rather than `RecordService`, because the records
41
+ * `DirectoryStore` is the port rather than `RecordService`, because the records
42
42
  * routes require a password (a local account has one to set) and a
43
43
  * provider-managed account does not: the host's directory is where it
44
- * authenticates, and `passwordMatches` answers for it.
44
+ * authenticates. It is narrower than `IdentityStore` for the same reason - an
45
+ * import is not a sign-in, and a host should not implement token storage to run
46
+ * one.
45
47
  */
46
48
  const createDirectoryService = (store, source, options = {}) => {
47
49
  const provider = options.provider || 'ldap';
@@ -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 `includes`, so an
48
- * asset whose name merely begins with the bundle's - `index.bundle.js.css` - is
49
- * left alone: it is a different file, and stamping it would suggest the token
50
- * described something it did not.
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
- responses: {
45
- 200: '<html><head></head><body>Web Build is not present</body></html>'
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), and the bundle's name in prose (left as prose). The page a real
9
- * host reads looks like this; the values are a fixture so a case can pin the
10
- * exact bytes.
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;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,OAgB7B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAG3B,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,UAAU,EASnC,CAAA"}
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"}
@@ -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), and the bundle's name in prose (left as prose). The page a real
7
- * host reads looks like this; the values are a fixture so a case can pin the
8
- * exact bytes.
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>',
@@ -26,7 +26,7 @@
26
26
  * here. The document's description - "Users and groups that already exist are
27
27
  * left untouched" - is what this service implements.
28
28
  */
29
- import type { IdentityStore } from '../identity/types.js';
29
+ import type { IdentityGroupRecord, IdentityUserRecord, NewGroup, NewUser } from '../identity/types.js';
30
30
  export interface DirectoryUser {
31
31
  username: string;
32
32
  displayName: string;
@@ -38,6 +38,22 @@ export interface DirectoryGroup {
38
38
  /** Members the directory says this group holds, by username. */
39
39
  members?: string[];
40
40
  }
41
+ /**
42
+ * The five store methods a directory import needs.
43
+ *
44
+ * Narrower than `IdentityStore` on purpose: importing accounts has nothing to do
45
+ * with issuing tokens or spending authorization codes, and a host that wants to
46
+ * import a directory should not have to implement an identity service to do it.
47
+ * `IdentityStore` satisfies this structurally, so a host that already has one
48
+ * passes it unchanged.
49
+ */
50
+ export interface DirectoryStore {
51
+ users(): Promise<IdentityUserRecord[]>;
52
+ createUser(input: NewUser): Promise<IdentityUserRecord>;
53
+ groups(): Promise<IdentityGroupRecord[]>;
54
+ createGroup(input: NewGroup): Promise<IdentityGroupRecord>;
55
+ addToGroup(groupUid: string, userUid: string): Promise<IdentityGroupRecord | undefined>;
56
+ }
41
57
  /** One look at the directory, as the host read it. */
42
58
  export interface DirectorySource {
43
59
  users(): Promise<DirectoryUser[]>;
@@ -62,10 +78,12 @@ export interface DirectoryServiceOptions {
62
78
  /**
63
79
  * The import, over the host's store.
64
80
  *
65
- * `IdentityStore` is the port rather than `RecordService`, because the records
81
+ * `DirectoryStore` is the port rather than `RecordService`, because the records
66
82
  * routes require a password (a local account has one to set) and a
67
83
  * provider-managed account does not: the host's directory is where it
68
- * authenticates, and `passwordMatches` answers for it.
84
+ * authenticates. It is narrower than `IdentityStore` for the same reason - an
85
+ * import is not a sign-in, and a host should not implement token storage to run
86
+ * one.
69
87
  */
70
- export declare const createDirectoryService: (store: IdentityStore, source: DirectorySource, options?: DirectoryServiceOptions) => DirectoryService;
88
+ export declare const createDirectoryService: (store: DirectoryStore, source: DirectorySource, options?: DirectoryServiceOptions) => DirectoryService;
71
89
  //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/directory/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EAEV,aAAa,EAEd,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB;AAED,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,KAAK,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAAA;IACjC,MAAM,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAA;CACpC;AAED,MAAM,WAAW,mBAAmB;IAClC,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAA;IACjB,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAAA;CAC5C;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AA4DD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,aAAa,EACpB,QAAQ,eAAe,EACvB,UAAS,uBAA4B,KACpC,gBAsFF,CAAA"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/directory/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,QAAQ,EACR,OAAO,EACR,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAA;IACtC,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAA;IACvD,MAAM,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAA;IACxC,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;IAC1D,UAAU,CACR,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAA;CAC5C;AAED,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,KAAK,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC,CAAA;IACjC,MAAM,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAA;CACpC;AAED,MAAM,WAAW,mBAAmB;IAClC,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAA;IACjB,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAAA;CAC5C;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AA4DD;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,cAAc,EACrB,QAAQ,eAAe,EACvB,UAAS,uBAA4B,KACpC,gBAsFF,CAAA"}
@@ -35,10 +35,12 @@ const groupsOf = (groups) => {
35
35
  /**
36
36
  * The import, over the host's store.
37
37
  *
38
- * `IdentityStore` is the port rather than `RecordService`, because the records
38
+ * `DirectoryStore` is the port rather than `RecordService`, because the records
39
39
  * routes require a password (a local account has one to set) and a
40
40
  * provider-managed account does not: the host's directory is where it
41
- * authenticates, and `passwordMatches` answers for it.
41
+ * authenticates. It is narrower than `IdentityStore` for the same reason - an
42
+ * import is not a sign-in, and a host should not implement token storage to run
43
+ * one.
42
44
  */
43
45
  export const createDirectoryService = (store, source, options = {}) => {
44
46
  const provider = options.provider || 'ldap';
@@ -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;AAiBD;;;;;;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"}
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 `includes`, so an
45
- * asset whose name merely begins with the bundle's - `index.bundle.js.css` - is
46
- * left alone: it is a different file, and stamping it would suggest the token
47
- * described something it did not.
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;IACrB,YAAY,CAAC,EAAE,UAAU,EAAE,CAAA;IAC3B;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACpC;AAED;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,GACtC,CAAC;IAAE,WAAW,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,WAAW,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAElE,kFAAkF;AAClF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,CAczD,CAAA;AAmBD,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CA+ThD,CAAA;AAED,wEAAwE;AACxE,eAAO,MAAM,OAAO,EAAE,UAAU,EAA8C,CAAA"}
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;IACrB,YAAY,CAAC,EAAE,UAAU,EAAE,CAAA;IAC3B;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACpC;AAED;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,GACtC,CAAC;IAAE,WAAW,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,WAAW,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAElE,kFAAkF;AAClF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,CAczD,CAAA;AAmBD,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
- responses: {
42
- 200: '<html><head></head><body>Web Build is not present</body></html>'
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sasjs/api",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "The SASjs Server API, described once - a generated route table, the services behind it, and the conformance corpus both hosts run",
5
5
  "license": "MIT",
6
6
  "author": "SASjs",