@sasjs/api 0.44.2 → 0.44.3
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 +17 -2
- package/build/cjs/code/service.js +5 -1
- package/build/cjs/host/dispatch.js +25 -1
- package/build/cjs/routes/generated.js +6 -0
- package/build/esm/code/service.d.ts +11 -0
- package/build/esm/code/service.d.ts.map +1 -1
- package/build/esm/code/service.js +5 -1
- package/build/esm/host/dispatch.d.ts.map +1 -1
- package/build/esm/host/dispatch.js +25 -1
- package/build/esm/routes/generated.d.ts.map +1 -1
- package/build/esm/routes/generated.js +6 -0
- package/package.json +2 -1
package/build/browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @sasjs/api 0.44.
|
|
1
|
+
/* @sasjs/api 0.44.3 - 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;
|
|
@@ -1567,6 +1567,12 @@ var SASjsApi = (() => {
|
|
|
1567
1567
|
in: "body",
|
|
1568
1568
|
required: false,
|
|
1569
1569
|
type: "string"
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
name: "layout",
|
|
1573
|
+
in: "body",
|
|
1574
|
+
required: false,
|
|
1575
|
+
type: "boolean"
|
|
1570
1576
|
}
|
|
1571
1577
|
],
|
|
1572
1578
|
requestBodies: ["application/json"],
|
|
@@ -6784,6 +6790,12 @@ var SASjsApi = (() => {
|
|
|
6784
6790
|
}
|
|
6785
6791
|
};
|
|
6786
6792
|
var APP_ENTRY_FILE = "index.html";
|
|
6793
|
+
var flagOf = (value) => {
|
|
6794
|
+
if (typeof value === "boolean") return value;
|
|
6795
|
+
if (value === "true") return true;
|
|
6796
|
+
if (value === "false") return false;
|
|
6797
|
+
return void 0;
|
|
6798
|
+
};
|
|
6787
6799
|
var APP_NOT_REGISTERED = "No App Stream is registered with that id.";
|
|
6788
6800
|
var appNotRegistered = () => new ApiError(404, APP_NOT_REGISTERED, {
|
|
6789
6801
|
status: "failure",
|
|
@@ -7402,7 +7414,10 @@ var SASjsApi = (() => {
|
|
|
7402
7414
|
status: 200,
|
|
7403
7415
|
body: await code.format(await caller(), {
|
|
7404
7416
|
code: body.code,
|
|
7405
|
-
filePath: body.filePath
|
|
7417
|
+
filePath: body.filePath,
|
|
7418
|
+
// the body is rebuilt field by field here, so a flag the service reads
|
|
7419
|
+
// has to be named or the request's own answer is lost on the way
|
|
7420
|
+
layout: flagOf(body.layout)
|
|
7406
7421
|
})
|
|
7407
7422
|
};
|
|
7408
7423
|
case "GET /SASjsApi/info/authorizedRoutes":
|
|
@@ -50,8 +50,12 @@ const createCodeService = (options = {}) => {
|
|
|
50
50
|
},
|
|
51
51
|
async format(caller, body) {
|
|
52
52
|
requireCaller(caller);
|
|
53
|
+
// A caller that asked for the rules alone gets them alone. The flag is read
|
|
54
|
+
// here and not left to a host: a browser host always has its engine to hand,
|
|
55
|
+
// so a request that could not turn it off would be laid out anyway - which is
|
|
56
|
+
// two buttons in the Studio doing one job.
|
|
53
57
|
return (0, lint_1.formatText)(codeOf(body), await configFor(body.filePath), {
|
|
54
|
-
reprint: options.reprint
|
|
58
|
+
reprint: body.layout === false ? undefined : options.reprint
|
|
55
59
|
});
|
|
56
60
|
}
|
|
57
61
|
};
|
|
@@ -105,6 +105,27 @@ const validate = (route, request) => {
|
|
|
105
105
|
};
|
|
106
106
|
/** The file an app is served from for a directory request, as the surface serves it. */
|
|
107
107
|
const APP_ENTRY_FILE = 'index.html';
|
|
108
|
+
/**
|
|
109
|
+
* A body field the document states as a boolean, read the way the server reads it.
|
|
110
|
+
*
|
|
111
|
+
* The server validates this one with `Joi.boolean()`, which converts the two
|
|
112
|
+
* strings `'true'` and `'false'` as well as real booleans, and refuses anything
|
|
113
|
+
* else. There is no schema in this package to run, so the two spellings a caller
|
|
114
|
+
* might mean are read here: a client that sent the string `"false"` and had its
|
|
115
|
+
* buffer laid out anyway would find two hosts disagreeing about which button it
|
|
116
|
+
* pressed. Anything else is left undefined, which is the field's default rather
|
|
117
|
+
* than a refusal - the Studio's own client sends a boolean, so this is the
|
|
118
|
+
* boundary making sense of a caller the package did not write.
|
|
119
|
+
*/
|
|
120
|
+
const flagOf = (value) => {
|
|
121
|
+
if (typeof value === 'boolean')
|
|
122
|
+
return value;
|
|
123
|
+
if (value === 'true')
|
|
124
|
+
return true;
|
|
125
|
+
if (value === 'false')
|
|
126
|
+
return false;
|
|
127
|
+
return undefined;
|
|
128
|
+
};
|
|
108
129
|
/**
|
|
109
130
|
* An app the index does not hold, in the wording the route answers with.
|
|
110
131
|
*
|
|
@@ -769,7 +790,10 @@ const dispatch = async (services, routeId, request = {}) => {
|
|
|
769
790
|
status: 200,
|
|
770
791
|
body: await code.format(await caller(), {
|
|
771
792
|
code: body.code,
|
|
772
|
-
filePath: body.filePath
|
|
793
|
+
filePath: body.filePath,
|
|
794
|
+
// the body is rebuilt field by field here, so a flag the service reads
|
|
795
|
+
// has to be named or the request's own answer is lost on the way
|
|
796
|
+
layout: flagOf(body.layout)
|
|
773
797
|
})
|
|
774
798
|
};
|
|
775
799
|
case 'GET /SASjsApi/info/authorizedRoutes':
|
|
@@ -5,6 +5,17 @@ export interface CodeRequest {
|
|
|
5
5
|
code: string;
|
|
6
6
|
/** The drive path the code belongs to, so a host can pick that folder's rules. */
|
|
7
7
|
filePath?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Whether the format route runs the host's layout engine as well as the rules.
|
|
10
|
+
* Defaults to true, which is what "format" means.
|
|
11
|
+
*
|
|
12
|
+
* `false` is the editor's "fix lint issues": the rules are the changes that can
|
|
13
|
+
* be made without judgement - trailing spaces, tabs, line endings, the header's
|
|
14
|
+
* macro list, the wrapping a long line gets - and an author who asks for those
|
|
15
|
+
* does not want the engine's statement breaks and indentation rewritten at the
|
|
16
|
+
* same time. The answer is still the rewritten buffer, header and all.
|
|
17
|
+
*/
|
|
18
|
+
layout?: boolean;
|
|
8
19
|
}
|
|
9
20
|
export interface CodeServiceOptions {
|
|
10
21
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/code/service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAGxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAEnD,uFAAuF;AACvF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,kFAAkF;IAClF,QAAQ,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/code/service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAGxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAEnD,uFAAuF;AACvF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,kFAAkF;IAClF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAA;IAClC;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,EAAE,CACX,QAAQ,CAAC,EAAE,MAAM,KACd,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;CAC9D;AAED,MAAM,WAAW,WAAW;IAC1B,gFAAgF;IAChF,IAAI,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAA;IAC3E,4BAA4B;IAC5B,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;CACxE;AAmBD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,GAC5B,UAAS,kBAAuB,KAC/B,WA2BF,CAAA"}
|
|
@@ -47,8 +47,12 @@ export const createCodeService = (options = {}) => {
|
|
|
47
47
|
},
|
|
48
48
|
async format(caller, body) {
|
|
49
49
|
requireCaller(caller);
|
|
50
|
+
// A caller that asked for the rules alone gets them alone. The flag is read
|
|
51
|
+
// here and not left to a host: a browser host always has its engine to hand,
|
|
52
|
+
// so a request that could not turn it off would be laid out anyway - which is
|
|
53
|
+
// two buttons in the Studio doing one job.
|
|
50
54
|
return formatText(codeOf(body), await configFor(body.filePath), {
|
|
51
|
-
reprint: options.reprint
|
|
55
|
+
reprint: body.layout === false ? undefined : options.reprint
|
|
52
56
|
});
|
|
53
57
|
}
|
|
54
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../../src/host/dispatch.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AASvE,OAAO,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QAAQ,GACnB,UAAU,QAAQ,EAClB,SAAS,MAAM,EACf,UAAS,UAAe,KACvB,OAAO,CAAC,WAAW,CAi/BrB,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,GAAI,SAAS,MAAM,KAAG,QAO3C,CAAA;AAED,0DAA0D;AAC1D,eAAO,MAAM,cAAc,EAAE,MAAM,EA+DlC,CAAA"}
|
|
@@ -102,6 +102,27 @@ const validate = (route, request) => {
|
|
|
102
102
|
};
|
|
103
103
|
/** The file an app is served from for a directory request, as the surface serves it. */
|
|
104
104
|
const APP_ENTRY_FILE = 'index.html';
|
|
105
|
+
/**
|
|
106
|
+
* A body field the document states as a boolean, read the way the server reads it.
|
|
107
|
+
*
|
|
108
|
+
* The server validates this one with `Joi.boolean()`, which converts the two
|
|
109
|
+
* strings `'true'` and `'false'` as well as real booleans, and refuses anything
|
|
110
|
+
* else. There is no schema in this package to run, so the two spellings a caller
|
|
111
|
+
* might mean are read here: a client that sent the string `"false"` and had its
|
|
112
|
+
* buffer laid out anyway would find two hosts disagreeing about which button it
|
|
113
|
+
* pressed. Anything else is left undefined, which is the field's default rather
|
|
114
|
+
* than a refusal - the Studio's own client sends a boolean, so this is the
|
|
115
|
+
* boundary making sense of a caller the package did not write.
|
|
116
|
+
*/
|
|
117
|
+
const flagOf = (value) => {
|
|
118
|
+
if (typeof value === 'boolean')
|
|
119
|
+
return value;
|
|
120
|
+
if (value === 'true')
|
|
121
|
+
return true;
|
|
122
|
+
if (value === 'false')
|
|
123
|
+
return false;
|
|
124
|
+
return undefined;
|
|
125
|
+
};
|
|
105
126
|
/**
|
|
106
127
|
* An app the index does not hold, in the wording the route answers with.
|
|
107
128
|
*
|
|
@@ -766,7 +787,10 @@ export const dispatch = async (services, routeId, request = {}) => {
|
|
|
766
787
|
status: 200,
|
|
767
788
|
body: await code.format(await caller(), {
|
|
768
789
|
code: body.code,
|
|
769
|
-
filePath: body.filePath
|
|
790
|
+
filePath: body.filePath,
|
|
791
|
+
// the body is rebuilt field by field here, so a flag the service reads
|
|
792
|
+
// has to be named or the request's own answer is lost on the way
|
|
793
|
+
layout: flagOf(body.layout)
|
|
770
794
|
})
|
|
771
795
|
};
|
|
772
796
|
case 'GET /SASjsApi/info/authorizedRoutes':
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../../../src/routes/generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,gBAAgB,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../../../src/routes/generated.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,eAAO,MAAM,gBAAgB,EAAE,cAAc,EAgrE5C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sasjs/api",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.3",
|
|
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",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"sync:viya": "node scripts/viya-generate.mjs",
|
|
49
49
|
"check:viya": "node scripts/viya-generate.mjs --check",
|
|
50
50
|
"check:builds": "node scripts/check-builds.mjs",
|
|
51
|
+
"check:package": "node scripts/check-package.mjs",
|
|
51
52
|
"audit:gate": "node scripts/audit.mjs",
|
|
52
53
|
"check:appstream": "node scripts/appstream-browser-check.cjs",
|
|
53
54
|
"conformance": "node tools/viya-conformance/conformance.mjs",
|