@sasjs/cli 6.23.1 → 6.24.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.
@@ -489,7 +489,9 @@ function getContentFor(rootDirectory, folderPath, serverType) {
489
489
  contentJSON.members.push({
490
490
  name: file.replace(/.sas$/, ''),
491
491
  type: types_1.MemberType.file,
492
- code: fileContentEncoded
492
+ code: fileContentEncoded,
493
+ // the deploy format carries text by default; a built asset is bytes
494
+ encoding: 'base64'
493
495
  });
494
496
  _b.label = 4;
495
497
  case 4: return [2 /*return*/];
@@ -462,7 +462,7 @@ const adminReports = {
462
462
  cpuCount: navigator.hardwareConcurrency || 1,
463
463
  cpuModel: 'unknown',
464
464
  loadAverage: [],
465
- runTimes: ['js'],
465
+ runTimes: ['js', 'sas'],
466
466
  sasjsRoot: '/'
467
467
  },
468
468
  memory: {
@@ -591,11 +591,12 @@ const SERVICES = {
591
591
  identity: IDENTITY,
592
592
  records: RECORDS,
593
593
  runtime: API.createRuntimeService(IDENTITY_STORE, RUNTIME, {
594
- // The one run time this host executes. A recorded SAS session is answered
595
- // before the runner (see SAS_TRANSCRIPT below), not by claiming a `sas` run
596
- // time - a .sas program with no recording must still be refused, and a route
597
- // that accepted `sas` would compile SAS source as JavaScript instead.
598
- runTimes: ['js']
594
+ // `js` is executed here; `sas` is offered so a SAS program can be run at all
595
+ // in the demo, and answered from the recording when one names it. A `.sas`
596
+ // program with no recording is refused in the runner, deliberately - it must
597
+ // not be handed to the JavaScript runtime as source, which is what the
598
+ // resolveProgram guard in BrowserRuntime.run prevents.
599
+ runTimes: ['js', 'sas']
599
600
  }),
600
601
  session: API.createSessionService(IDENTITY_STORE, RUNTIME),
601
602
  authConfig: API.createAuthConfigService({}),
@@ -210,6 +210,7 @@ describe('sasjs cbd with server type SASJS', function () {
210
210
  {
211
211
  name: 'appinit.js',
212
212
  type: 'file',
213
+ encoding: 'base64',
213
214
  code: (0, js_base64_1.encode)(appinitJSContents)
214
215
  },
215
216
  {
@@ -220,6 +221,7 @@ describe('sasjs cbd with server type SASJS', function () {
220
221
  {
221
222
  name: 'getdata.js',
222
223
  type: 'file',
224
+ encoding: 'base64',
223
225
  code: (0, js_base64_1.encode)(getdataJSContents)
224
226
  },
225
227
  {
package/package.json CHANGED
@@ -74,7 +74,7 @@
74
74
  "@sasjs/api": "0.23.0",
75
75
  "@sasjs/core": "6.1.1",
76
76
  "@sasjs/lint": "^5.1.0",
77
- "@sasjs/utils": "4.9.0",
77
+ "@sasjs/utils": "4.11.0",
78
78
  "axios": "1.20.0",
79
79
  "chalk": "4.1.2",
80
80
  "dotenv": "18.0.8",
@@ -125,5 +125,5 @@
125
125
  "ws": "8.21.0",
126
126
  "nanoid": "3.3.18"
127
127
  },
128
- "version": "6.23.1"
128
+ "version": "6.24.1"
129
129
  }