@sasjs/api 0.23.0 → 0.24.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 +41 -9
- package/build/cjs/corpus/deploy.js +29 -1
- package/build/cjs/drive/deploy.js +20 -4
- package/build/cjs/drive/service.js +2 -2
- package/build/esm/corpus/deploy.d.ts.map +1 -1
- package/build/esm/corpus/deploy.js +29 -1
- package/build/esm/drive/deploy.d.ts +41 -2
- package/build/esm/drive/deploy.d.ts.map +1 -1
- package/build/esm/drive/deploy.js +20 -4
- package/build/esm/drive/service.d.ts +2 -1
- package/build/esm/drive/service.d.ts.map +1 -1
- package/build/esm/drive/service.js +2 -2
- package/build/esm/index.d.ts +1 -1
- package/build/esm/index.d.ts.map +1 -1
- package/package.json +2 -2
package/build/browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @sasjs/api 0.
|
|
1
|
+
/* @sasjs/api 0.24.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;
|
|
@@ -191,7 +191,7 @@ var SASjsApi = (() => {
|
|
|
191
191
|
return bytes3;
|
|
192
192
|
};
|
|
193
193
|
var memberName = (member) => member.type === "service" ? `${member.name}.sas` : member.name;
|
|
194
|
-
var memberBytes = (member) => member.type === "file" ? base64Length(member.code) : utf8Length(member.code);
|
|
194
|
+
var memberBytes = (member) => member.type === "file" && member.encoding === "base64" ? base64Length(member.code) : utf8Length(member.code);
|
|
195
195
|
var MEGABYTE = 1024 * 1024;
|
|
196
196
|
var describeSize = (bytes3) => bytes3 < MEGABYTE ? `${bytes3} bytes` : `${Math.ceil(bytes3 / MEGABYTE * 10) / 10} MB`;
|
|
197
197
|
var describeLimit = (bytes3) => bytes3 < MEGABYTE ? `${bytes3} bytes` : `${Math.round(bytes3 / MEGABYTE * 10) / 10} MB`;
|
|
@@ -276,11 +276,13 @@ var SASjsApi = (() => {
|
|
|
276
276
|
if (typeof member.name !== "string") return false;
|
|
277
277
|
if (member.type === "folder")
|
|
278
278
|
return Array.isArray(member.members) && member.members.every(isDeployMember);
|
|
279
|
-
if (member.type === "service"
|
|
280
|
-
|
|
279
|
+
if (member.type === "service") return typeof member.code === "string";
|
|
280
|
+
if (member.type === "file")
|
|
281
|
+
return typeof member.code === "string" && (member.encoding === void 0 || member.encoding === "utf8" || member.encoding === "base64");
|
|
281
282
|
return false;
|
|
282
283
|
};
|
|
283
|
-
var deployTree = async (store, appLoc, tree,
|
|
284
|
+
var deployTree = async (store, appLoc, tree, options = {}) => {
|
|
285
|
+
const limits = options.limits ?? DEPLOY_LIMITS;
|
|
284
286
|
if (!isDeployTree(tree))
|
|
285
287
|
throw new ApiError(400, "Provided not supported data format.", {
|
|
286
288
|
status: "failure",
|
|
@@ -299,6 +301,8 @@ var SASjsApi = (() => {
|
|
|
299
301
|
message: refusal.message
|
|
300
302
|
});
|
|
301
303
|
try {
|
|
304
|
+
if (options.replace && await store.exists(root)) await store.remove(root);
|
|
305
|
+
await store.mkdirp(root);
|
|
302
306
|
await writeMembers(store, tree.members, root);
|
|
303
307
|
} catch {
|
|
304
308
|
throw new ApiError(500, "Deployment failed!", {
|
|
@@ -317,7 +321,7 @@ var SASjsApi = (() => {
|
|
|
317
321
|
}
|
|
318
322
|
await store.write(
|
|
319
323
|
path,
|
|
320
|
-
member.type === "file" ? decodeBase64(member.code) : member.code
|
|
324
|
+
member.type === "file" && member.encoding === "base64" ? decodeBase64(member.code) : member.code
|
|
321
325
|
);
|
|
322
326
|
}
|
|
323
327
|
};
|
|
@@ -462,8 +466,8 @@ var SASjsApi = (() => {
|
|
|
462
466
|
if (!stat.directory) throw new ApiError(400, "Not a Folder.");
|
|
463
467
|
return { status: "success", tree: await treeOf(path) };
|
|
464
468
|
},
|
|
465
|
-
async deploy(appLoc, tree) {
|
|
466
|
-
await deployTree(store, appLoc, tree);
|
|
469
|
+
async deploy(appLoc, tree, options) {
|
|
470
|
+
await deployTree(store, appLoc, tree, options);
|
|
467
471
|
return { status: "success" };
|
|
468
472
|
}
|
|
469
473
|
};
|
|
@@ -6171,7 +6175,35 @@ var SASjsApi = (() => {
|
|
|
6171
6175
|
appLoc: "/Public/apps/uploaded",
|
|
6172
6176
|
fileTree: {
|
|
6173
6177
|
members: [
|
|
6174
|
-
{
|
|
6178
|
+
{
|
|
6179
|
+
name: "index.html",
|
|
6180
|
+
type: "file",
|
|
6181
|
+
code: "PGgxPkhlbGxvPC9oMT4=",
|
|
6182
|
+
encoding: "base64"
|
|
6183
|
+
}
|
|
6184
|
+
]
|
|
6185
|
+
}
|
|
6186
|
+
}
|
|
6187
|
+
},
|
|
6188
|
+
expect: {
|
|
6189
|
+
status: 200,
|
|
6190
|
+
body: {
|
|
6191
|
+
status: "success",
|
|
6192
|
+
message: "Files deployed successfully to @sasjs/server."
|
|
6193
|
+
}
|
|
6194
|
+
}
|
|
6195
|
+
},
|
|
6196
|
+
{
|
|
6197
|
+
id: "upload-text-file",
|
|
6198
|
+
route: "POST /SASjsApi/drive/deploy/upload",
|
|
6199
|
+
description: "writes a file member as its own text when no encoding is stated",
|
|
6200
|
+
request: {
|
|
6201
|
+
subject: SUBJECT,
|
|
6202
|
+
body: {
|
|
6203
|
+
appLoc: "/Public/apps/text",
|
|
6204
|
+
fileTree: {
|
|
6205
|
+
members: [
|
|
6206
|
+
{ name: "index.html", type: "file", code: "<h1>Hello</h1>" }
|
|
6175
6207
|
]
|
|
6176
6208
|
}
|
|
6177
6209
|
}
|
|
@@ -66,7 +66,35 @@ exports.DEPLOY_CORPUS = [
|
|
|
66
66
|
appLoc: '/Public/apps/uploaded',
|
|
67
67
|
fileTree: {
|
|
68
68
|
members: [
|
|
69
|
-
{
|
|
69
|
+
{
|
|
70
|
+
name: 'index.html',
|
|
71
|
+
type: 'file',
|
|
72
|
+
code: 'PGgxPkhlbGxvPC9oMT4=',
|
|
73
|
+
encoding: 'base64'
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
expect: {
|
|
80
|
+
status: 200,
|
|
81
|
+
body: {
|
|
82
|
+
status: 'success',
|
|
83
|
+
message: 'Files deployed successfully to @sasjs/server.'
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: 'upload-text-file',
|
|
89
|
+
route: 'POST /SASjsApi/drive/deploy/upload',
|
|
90
|
+
description: 'writes a file member as its own text when no encoding is stated',
|
|
91
|
+
request: {
|
|
92
|
+
subject: SUBJECT,
|
|
93
|
+
body: {
|
|
94
|
+
appLoc: '/Public/apps/text',
|
|
95
|
+
fileTree: {
|
|
96
|
+
members: [
|
|
97
|
+
{ name: 'index.html', type: 'file', code: '<h1>Hello</h1>' }
|
|
70
98
|
]
|
|
71
99
|
}
|
|
72
100
|
}
|
|
@@ -91,7 +91,9 @@ const utf8Length = (value) => {
|
|
|
91
91
|
/** The name a member is written under - a service gains the extension. */
|
|
92
92
|
const memberName = (member) => member.type === 'service' ? `${member.name}.sas` : member.name;
|
|
93
93
|
/** The bytes a member writes. */
|
|
94
|
-
const memberBytes = (member) => member.type === 'file'
|
|
94
|
+
const memberBytes = (member) => member.type === 'file' && member.encoding === 'base64'
|
|
95
|
+
? base64Length(member.code)
|
|
96
|
+
: utf8Length(member.code);
|
|
95
97
|
const MEGABYTE = 1024 * 1024;
|
|
96
98
|
/**
|
|
97
99
|
* A MEASURED size, rounded UP to one decimal in binary megabytes.
|
|
@@ -249,8 +251,13 @@ const isDeployMember = (value) => {
|
|
|
249
251
|
return false;
|
|
250
252
|
if (member.type === 'folder')
|
|
251
253
|
return Array.isArray(member.members) && member.members.every(isDeployMember);
|
|
252
|
-
if (member.type === 'service'
|
|
254
|
+
if (member.type === 'service')
|
|
253
255
|
return typeof member.code === 'string';
|
|
256
|
+
if (member.type === 'file')
|
|
257
|
+
return (typeof member.code === 'string' &&
|
|
258
|
+
(member.encoding === undefined ||
|
|
259
|
+
member.encoding === 'utf8' ||
|
|
260
|
+
member.encoding === 'base64'));
|
|
254
261
|
return false;
|
|
255
262
|
};
|
|
256
263
|
/**
|
|
@@ -264,7 +271,8 @@ const isDeployMember = (value) => {
|
|
|
264
271
|
* A write that fails part-way answers the deploy routes' `500`; the tree before
|
|
265
272
|
* the failure is already on the drive, which the message does not hide.
|
|
266
273
|
*/
|
|
267
|
-
const deployTree = async (store, appLoc, tree,
|
|
274
|
+
const deployTree = async (store, appLoc, tree, options = {}) => {
|
|
275
|
+
const limits = options.limits ?? exports.DEPLOY_LIMITS;
|
|
268
276
|
if (!(0, exports.isDeployTree)(tree))
|
|
269
277
|
throw new types_js_1.ApiError(400, 'Provided not supported data format.', {
|
|
270
278
|
status: 'failure',
|
|
@@ -285,6 +293,12 @@ const deployTree = async (store, appLoc, tree, limits = exports.DEPLOY_LIMITS) =
|
|
|
285
293
|
message: refusal.message
|
|
286
294
|
});
|
|
287
295
|
try {
|
|
296
|
+
if (options.replace && (await store.exists(root)))
|
|
297
|
+
await store.remove(root);
|
|
298
|
+
// The app's own folder is created before the first member is written: a tree
|
|
299
|
+
// whose root holds only files has no folder member to create it, and a store
|
|
300
|
+
// that writes through to a filesystem refuses a missing parent.
|
|
301
|
+
await store.mkdirp(root);
|
|
288
302
|
await writeMembers(store, tree.members, root);
|
|
289
303
|
}
|
|
290
304
|
catch {
|
|
@@ -304,6 +318,8 @@ const writeMembers = async (store, members, parentPath) => {
|
|
|
304
318
|
await writeMembers(store, member.members, path);
|
|
305
319
|
continue;
|
|
306
320
|
}
|
|
307
|
-
await store.write(path, member.type === 'file'
|
|
321
|
+
await store.write(path, member.type === 'file' && member.encoding === 'base64'
|
|
322
|
+
? (0, exports.decodeBase64)(member.code)
|
|
323
|
+
: member.code);
|
|
308
324
|
}
|
|
309
325
|
};
|
|
@@ -153,8 +153,8 @@ const createDriveService = (store) => {
|
|
|
153
153
|
throw new types_js_1.ApiError(400, 'Not a Folder.');
|
|
154
154
|
return { status: 'success', tree: await treeOf(path) };
|
|
155
155
|
},
|
|
156
|
-
async deploy(appLoc, tree) {
|
|
157
|
-
await (0, deploy_js_1.deployTree)(store, appLoc, tree);
|
|
156
|
+
async deploy(appLoc, tree, options) {
|
|
157
|
+
await (0, deploy_js_1.deployTree)(store, appLoc, tree, options);
|
|
158
158
|
return { status: 'success' };
|
|
159
159
|
}
|
|
160
160
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/corpus/deploy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAW5C,eAAO,MAAM,aAAa,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/corpus/deploy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAW5C,eAAO,MAAM,aAAa,EAAE,UAAU,EAgKrC,CAAA"}
|
|
@@ -63,7 +63,35 @@ export const DEPLOY_CORPUS = [
|
|
|
63
63
|
appLoc: '/Public/apps/uploaded',
|
|
64
64
|
fileTree: {
|
|
65
65
|
members: [
|
|
66
|
-
{
|
|
66
|
+
{
|
|
67
|
+
name: 'index.html',
|
|
68
|
+
type: 'file',
|
|
69
|
+
code: 'PGgxPkhlbGxvPC9oMT4=',
|
|
70
|
+
encoding: 'base64'
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
expect: {
|
|
77
|
+
status: 200,
|
|
78
|
+
body: {
|
|
79
|
+
status: 'success',
|
|
80
|
+
message: 'Files deployed successfully to @sasjs/server.'
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 'upload-text-file',
|
|
86
|
+
route: 'POST /SASjsApi/drive/deploy/upload',
|
|
87
|
+
description: 'writes a file member as its own text when no encoding is stated',
|
|
88
|
+
request: {
|
|
89
|
+
subject: SUBJECT,
|
|
90
|
+
body: {
|
|
91
|
+
appLoc: '/Public/apps/text',
|
|
92
|
+
fileTree: {
|
|
93
|
+
members: [
|
|
94
|
+
{ name: 'index.html', type: 'file', code: '<h1>Hello</h1>' }
|
|
67
95
|
]
|
|
68
96
|
}
|
|
69
97
|
}
|
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
import type { DriveStore } from '../types.js';
|
|
20
20
|
/** The three member kinds the wire format carries. */
|
|
21
21
|
export type DeployMemberType = 'folder' | 'service' | 'file';
|
|
22
|
+
/**
|
|
23
|
+
* How a `file` member carries its bytes.
|
|
24
|
+
*
|
|
25
|
+
* `utf8` is the default: `code` is the file's text, which is what most of a
|
|
26
|
+
* deployment is. `base64` is for bytes that are not text - an image, a font, a
|
|
27
|
+
* zip - and is the only form that survives the trip through JSON unchanged.
|
|
28
|
+
*/
|
|
29
|
+
export type DeployFileEncoding = 'utf8' | 'base64';
|
|
22
30
|
export interface DeployFolderMember {
|
|
23
31
|
name: string;
|
|
24
32
|
type: 'folder';
|
|
@@ -30,11 +38,20 @@ export interface DeployServiceMember {
|
|
|
30
38
|
type: 'service';
|
|
31
39
|
code: string;
|
|
32
40
|
}
|
|
33
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* A file; `code` is its text, or base64 of its bytes when `encoding` says so.
|
|
43
|
+
*
|
|
44
|
+
* An absent `encoding` means `utf8` - a caller publishing an HTML page or a
|
|
45
|
+
* JSON config writes the text it already holds. A binary member states
|
|
46
|
+
* `base64` and nothing is guessed from the contents: `test` and `data` are
|
|
47
|
+
* both valid base64, so sniffing would corrupt short text rather than decode a
|
|
48
|
+
* file.
|
|
49
|
+
*/
|
|
34
50
|
export interface DeployFileMember {
|
|
35
51
|
name: string;
|
|
36
52
|
type: 'file';
|
|
37
53
|
code: string;
|
|
54
|
+
encoding?: DeployFileEncoding;
|
|
38
55
|
}
|
|
39
56
|
export type DeployMember = DeployFolderMember | DeployServiceMember | DeployFileMember;
|
|
40
57
|
export interface DeployTree {
|
|
@@ -138,6 +155,28 @@ export declare const checkDeployTree: (members: DeployMember[], limits?: DeployL
|
|
|
138
155
|
* a string `name`. Anything else is the `400` the routes already answer.
|
|
139
156
|
*/
|
|
140
157
|
export declare const isDeployTree: (value: unknown) => value is DeployTree;
|
|
158
|
+
/**
|
|
159
|
+
* What a deploy may be told beyond the tree itself.
|
|
160
|
+
*
|
|
161
|
+
* `replace` writes the tree as the folder's whole contents: the folder is
|
|
162
|
+
* removed first, so a file the new version renamed or dropped stops answering
|
|
163
|
+
* at its old URL. It is opt-in because a caller may deploy one folder of a
|
|
164
|
+
* larger app, and a deploy that quietly deleted the rest would be worse than a
|
|
165
|
+
* stale file.
|
|
166
|
+
*
|
|
167
|
+
* The removal happens AFTER the tree is accepted (shape, containment, cap), so
|
|
168
|
+
* a request that is going to be refused never destroys what is already there.
|
|
169
|
+
*
|
|
170
|
+
* A folder can hold two published apps as a special case - the unpublish
|
|
171
|
+
* contract documents that - and replacing it removes both. The delete names the
|
|
172
|
+
* folder, not an app.
|
|
173
|
+
*/
|
|
174
|
+
export interface DeployOptions {
|
|
175
|
+
/** Remove the app folder before writing the tree. Default `false`. */
|
|
176
|
+
replace?: boolean;
|
|
177
|
+
/** The cap to apply. Defaults to `DEPLOY_LIMITS`. */
|
|
178
|
+
limits?: DeployLimits;
|
|
179
|
+
}
|
|
141
180
|
/**
|
|
142
181
|
* Deploys a tree into `appLoc`, or refuses without writing.
|
|
143
182
|
*
|
|
@@ -149,5 +188,5 @@ export declare const isDeployTree: (value: unknown) => value is DeployTree;
|
|
|
149
188
|
* A write that fails part-way answers the deploy routes' `500`; the tree before
|
|
150
189
|
* the failure is already on the drive, which the message does not hide.
|
|
151
190
|
*/
|
|
152
|
-
export declare const deployTree: (store: DriveStore, appLoc: unknown, tree: unknown,
|
|
191
|
+
export declare const deployTree: (store: DriveStore, appLoc: unknown, tree: unknown, options?: DeployOptions) => Promise<void>;
|
|
153
192
|
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/drive/deploy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAI7C,sDAAsD;AACtD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;AAE5D,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,QAAQ,CAAA;IACd,OAAO,EAAE,YAAY,EAAE,CAAA;CACxB;AAED,6EAA6E;AAC7E,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/drive/deploy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAI7C,sDAAsD;AACtD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAA;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,QAAQ,CAAA;AAElD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,QAAQ,CAAA;IACd,OAAO,EAAE,YAAY,EAAE,CAAA;CACxB;AAED,6EAA6E;AAC7E,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,IAA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iBAAiB,GAC5B,SAAS,YAAY,EAAE,KACtB,kBAUF,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,GAC1B,SAAS,YAAY,EAAE,EACvB,SAAQ,YAA4B,KACnC,aAAa,GAAG,IAoClB,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,UAMtD,CAAA;AAyBD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,aAAa;IAC5B,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,qDAAqD;IACrD,MAAM,CAAC,EAAE,YAAY,CAAA;CACtB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,GACrB,OAAO,UAAU,EACjB,QAAQ,OAAO,EACf,MAAM,OAAO,EACb,UAAS,aAAkB,KAC1B,OAAO,CAAC,IAAI,CA0Cd,CAAA"}
|
|
@@ -87,7 +87,9 @@ const utf8Length = (value) => {
|
|
|
87
87
|
/** The name a member is written under - a service gains the extension. */
|
|
88
88
|
const memberName = (member) => member.type === 'service' ? `${member.name}.sas` : member.name;
|
|
89
89
|
/** The bytes a member writes. */
|
|
90
|
-
const memberBytes = (member) => member.type === 'file'
|
|
90
|
+
const memberBytes = (member) => member.type === 'file' && member.encoding === 'base64'
|
|
91
|
+
? base64Length(member.code)
|
|
92
|
+
: utf8Length(member.code);
|
|
91
93
|
const MEGABYTE = 1024 * 1024;
|
|
92
94
|
/**
|
|
93
95
|
* A MEASURED size, rounded UP to one decimal in binary megabytes.
|
|
@@ -242,8 +244,13 @@ const isDeployMember = (value) => {
|
|
|
242
244
|
return false;
|
|
243
245
|
if (member.type === 'folder')
|
|
244
246
|
return Array.isArray(member.members) && member.members.every(isDeployMember);
|
|
245
|
-
if (member.type === 'service'
|
|
247
|
+
if (member.type === 'service')
|
|
246
248
|
return typeof member.code === 'string';
|
|
249
|
+
if (member.type === 'file')
|
|
250
|
+
return (typeof member.code === 'string' &&
|
|
251
|
+
(member.encoding === undefined ||
|
|
252
|
+
member.encoding === 'utf8' ||
|
|
253
|
+
member.encoding === 'base64'));
|
|
247
254
|
return false;
|
|
248
255
|
};
|
|
249
256
|
/**
|
|
@@ -257,7 +264,8 @@ const isDeployMember = (value) => {
|
|
|
257
264
|
* A write that fails part-way answers the deploy routes' `500`; the tree before
|
|
258
265
|
* the failure is already on the drive, which the message does not hide.
|
|
259
266
|
*/
|
|
260
|
-
export const deployTree = async (store, appLoc, tree,
|
|
267
|
+
export const deployTree = async (store, appLoc, tree, options = {}) => {
|
|
268
|
+
const limits = options.limits ?? DEPLOY_LIMITS;
|
|
261
269
|
if (!isDeployTree(tree))
|
|
262
270
|
throw new ApiError(400, 'Provided not supported data format.', {
|
|
263
271
|
status: 'failure',
|
|
@@ -278,6 +286,12 @@ export const deployTree = async (store, appLoc, tree, limits = DEPLOY_LIMITS) =>
|
|
|
278
286
|
message: refusal.message
|
|
279
287
|
});
|
|
280
288
|
try {
|
|
289
|
+
if (options.replace && (await store.exists(root)))
|
|
290
|
+
await store.remove(root);
|
|
291
|
+
// The app's own folder is created before the first member is written: a tree
|
|
292
|
+
// whose root holds only files has no folder member to create it, and a store
|
|
293
|
+
// that writes through to a filesystem refuses a missing parent.
|
|
294
|
+
await store.mkdirp(root);
|
|
281
295
|
await writeMembers(store, tree.members, root);
|
|
282
296
|
}
|
|
283
297
|
catch {
|
|
@@ -296,6 +310,8 @@ const writeMembers = async (store, members, parentPath) => {
|
|
|
296
310
|
await writeMembers(store, member.members, path);
|
|
297
311
|
continue;
|
|
298
312
|
}
|
|
299
|
-
await store.write(path, member.type === 'file'
|
|
313
|
+
await store.write(path, member.type === 'file' && member.encoding === 'base64'
|
|
314
|
+
? decodeBase64(member.code)
|
|
315
|
+
: member.code);
|
|
300
316
|
}
|
|
301
317
|
};
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* in every consumer.
|
|
13
13
|
*/
|
|
14
14
|
import type { DriveStore, TreeNode } from '../types.js';
|
|
15
|
+
import type { DeployOptions } from './deploy.js';
|
|
15
16
|
export interface DriveResult {
|
|
16
17
|
status: 'success';
|
|
17
18
|
}
|
|
@@ -44,7 +45,7 @@ export interface DriveService {
|
|
|
44
45
|
* the shape is one of the things this decides - a mistyped tree earns the
|
|
45
46
|
* routes' `400` rather than a crash in a host that trusted it.
|
|
46
47
|
*/
|
|
47
|
-
deploy(appLoc: string, tree: unknown): Promise<DriveResult>;
|
|
48
|
+
deploy(appLoc: string, tree: unknown, options?: DeployOptions): Promise<DriveResult>;
|
|
48
49
|
}
|
|
49
50
|
export declare const createDriveService: (store: DriveStore) => DriveService;
|
|
50
51
|
//# sourceMappingURL=service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/drive/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/drive/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAGvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAUhD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,SAAS,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAA;IAC7B,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,QAAQ,CAAA;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAA;IAChD,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;IAC1C,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IAC3E,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IAC7E,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IAC9C,KAAK,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IAC/C,KAAK,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IAC/C,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IAC9D,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;IAC7C;;;;;;OAMG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,OAAO,EACb,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,WAAW,CAAC,CAAA;CACxB;AAqBD,eAAO,MAAM,kBAAkB,GAAI,OAAO,UAAU,KAAG,YAiKtD,CAAA"}
|
|
@@ -150,8 +150,8 @@ export const createDriveService = (store) => {
|
|
|
150
150
|
throw new ApiError(400, 'Not a Folder.');
|
|
151
151
|
return { status: 'success', tree: await treeOf(path) };
|
|
152
152
|
},
|
|
153
|
-
async deploy(appLoc, tree) {
|
|
154
|
-
await deployTree(store, appLoc, tree);
|
|
153
|
+
async deploy(appLoc, tree, options) {
|
|
154
|
+
await deployTree(store, appLoc, tree, options);
|
|
155
155
|
return { status: 'success' };
|
|
156
156
|
}
|
|
157
157
|
};
|
package/build/esm/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export * from './types.js';
|
|
|
17
17
|
export { normaliseDrivePath, hasBlockedExtension, dirname, basename, isRoot } from './drive/paths.js';
|
|
18
18
|
export { createDriveService } from './drive/service.js';
|
|
19
19
|
export { DEPLOY_LIMITS, DEPLOY_PAYLOAD_BYTES, DEPLOY_SUCCESS, checkDeployTree, decodeBase64, deployTree, isDeployTree, measureDeployTree } from './drive/deploy.js';
|
|
20
|
-
export type { DeployLimits, DeployMeasurements, DeployMember, DeployRefusal, DeployTree } from './drive/deploy.js';
|
|
20
|
+
export type { DeployFileEncoding, DeployLimits, DeployMeasurements, DeployMember, DeployOptions, DeployRefusal, DeployTree } from './drive/deploy.js';
|
|
21
21
|
export type { DriveService, DriveResult, DriveListing, DriveFile, DriveTree } from './drive/service.js';
|
|
22
22
|
export { MemoryDriveStore } from './drive/memory-store.js';
|
|
23
23
|
export { ROUTES, routeById, findRoute } from './routes/index.js';
|
package/build/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,cAAc,YAAY,CAAA;AAC1B,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACR,MAAM,EACP,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,iBAAiB,EAClB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,UAAU,EACX,MAA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gBAAgB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC9E,OAAO,EACL,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EACV,aAAa,EACb,UAAU,EACV,UAAU,EACV,aAAa,EACb,cAAc,EACd,cAAc,EACd,qBAAqB,EACrB,aAAa,EACb,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,YAAY,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC3E,OAAO,EACL,aAAa,EACb,eAAe,EACf,gBAAgB,EACjB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACzD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sasjs/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.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",
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
"minimatch": "11.0.4"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@sasjs/lint": "5.
|
|
71
|
+
"@sasjs/lint": "^5.1.0"
|
|
72
72
|
}
|
|
73
73
|
}
|