@sasjs/cli 6.24.0 → 6.24.2

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*/];
@@ -881,7 +881,10 @@ const deployTree = (entries) => {
881
881
  parent.members.push({
882
882
  name: cut < 0 ? entry.name : entry.name.slice(cut + 1),
883
883
  type: 'file',
884
- code: toBase64(entry.contents)
884
+ code: toBase64(entry.contents),
885
+ // The drive's file model carries text by default and base64 only when the
886
+ // member says so (@sasjs/api 0.24.0); an archive's entries are bytes.
887
+ encoding: 'base64'
885
888
  })
886
889
  })
887
890
  return root
@@ -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
@@ -71,10 +71,10 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@sasjs/adapter": "5.1.3",
74
- "@sasjs/api": "0.23.0",
74
+ "@sasjs/api": "0.24.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.24.0"
128
+ "version": "6.24.2"
129
129
  }