tnp-core 19.0.58 → 19.0.60

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.
Files changed (34) hide show
  1. package/browser/fesm2022/tnp-core.mjs +7 -9
  2. package/browser/fesm2022/tnp-core.mjs.map +1 -1
  3. package/browser/lib/utils.d.ts +0 -1
  4. package/browser/package.json +1 -1
  5. package/cli.backend.js +2 -2
  6. package/env.d.ts +2 -0
  7. package/environments/angular-node-app/env.angular-node-app.__.d.ts +3 -0
  8. package/environments/angular-node-app/env.angular-node-app.dev.d.ts +3 -0
  9. package/environments/angular-node-app/env.angular-node-app.localhost.d.ts +3 -0
  10. package/environments/angular-node-app/env.angular-node-app.prod.d.ts +3 -0
  11. package/environments/angular-node-app/env.angular-node-app.stage.d.ts +3 -0
  12. package/environments/docs-webapp/env.docs-webapp.__.d.ts +3 -0
  13. package/environments/electron-app/env.electron-app.__.d.ts +3 -0
  14. package/environments/electron-app/env.electron-app.prod.d.ts +3 -0
  15. package/environments/mobile-app/env.mobile-app.__.d.ts +3 -0
  16. package/environments/mobile-app/env.mobile-app.prod.d.ts +3 -0
  17. package/environments/npm-lib-and-cli-tool/env.npm-lib-and-cli-tool.__.d.ts +3 -0
  18. package/environments/npm-lib-and-cli-tool/env.npm-lib-and-cli-tool.prod.d.ts +3 -0
  19. package/environments/vscode-plugin/env.vscode-plugin.__.d.ts +6 -0
  20. package/environments/vscode-plugin/env.vscode-plugin.prod.d.ts +4 -0
  21. package/lib/build-info._auto-generated_.d.ts +1 -1
  22. package/lib/build-info._auto-generated_.js +1 -1
  23. package/lib/helpers.js +1 -1
  24. package/lib/helpers.js.map +1 -1
  25. package/lib/node-chalk-mock.js +2 -2
  26. package/lib/node-path-mock.js +2 -2
  27. package/lib/utils.js +2 -2
  28. package/lib/utils.js.map +1 -1
  29. package/package.json +1 -1
  30. package/tmp-environment.json +11 -7
  31. package/websql/fesm2022/tnp-core.mjs +7 -9
  32. package/websql/fesm2022/tnp-core.mjs.map +1 -1
  33. package/websql/lib/utils.d.ts +0 -1
  34. package/websql/package.json +1 -1
@@ -10,7 +10,6 @@ export { dateformat };
10
10
  import * as json5 from 'json5';
11
11
  export { json5 };
12
12
  import { Subject } from 'rxjs';
13
- import { Blob as Blob$1 } from 'buffer';
14
13
  import axios from 'axios';
15
14
 
16
15
  let isBrowser = false;
@@ -953,7 +952,6 @@ var CoreModels;
953
952
  CoreModels.tagForTaskName = '@updateValueWithPortNumForTaskName';
954
953
  })(CoreModels || (CoreModels = {}));
955
954
 
956
- //#region imports
957
955
  //#endregion
958
956
  const BLOB_SUPPORTED_IN_SQLJS = false;
959
957
  //#region utils
@@ -1152,7 +1150,7 @@ var Utils;
1152
1150
  */
1153
1151
  async function arrayBufferToBlob(buffer, contentType) {
1154
1152
  // @ts-ignore
1155
- return new Blob$1([buffer], { type: contentType });
1153
+ return new Blob([buffer], { type: contentType });
1156
1154
  }
1157
1155
  binary.arrayBufferToBlob = arrayBufferToBlob;
1158
1156
  //#endregion
@@ -1226,7 +1224,7 @@ var Utils;
1226
1224
  }
1227
1225
  byteArrays[sliceIndex] = new Uint8Array(bytes);
1228
1226
  }
1229
- return new Blob$1(byteArrays, { type: content_type });
1227
+ return new Blob(byteArrays, { type: content_type });
1230
1228
  }
1231
1229
  binary.base64toBlob = base64toBlob;
1232
1230
  //#endregion
@@ -1335,7 +1333,7 @@ var Utils;
1335
1333
  //#endregion
1336
1334
  //#region binay utils / file to blob
1337
1335
  async function fileToBlob(file) {
1338
- return new Blob$1([new Uint8Array(await file.arrayBuffer())], {
1336
+ return new Blob([new Uint8Array(await file.arrayBuffer())], {
1339
1337
  type: file.type,
1340
1338
  });
1341
1339
  }
@@ -1387,7 +1385,7 @@ var Utils;
1387
1385
  //#endregion
1388
1386
  //#region binay utils / text to blob
1389
1387
  async function textToBlob(text, type = 'text/plain') {
1390
- const blob = new Blob$1([text], { type });
1388
+ const blob = new Blob([text], { type });
1391
1389
  return blob;
1392
1390
  }
1393
1391
  binary.textToBlob = textToBlob;
@@ -1403,7 +1401,7 @@ var Utils;
1403
1401
  // console.log({ path })
1404
1402
  const ext = path.extname(fileRelativePathOrName);
1405
1403
  const type = CoreModels.mimeTypes[ext];
1406
- const blob = new Blob$1([text], { type });
1404
+ const blob = new Blob([text], { type });
1407
1405
  const file = await blobToFile(blob, fileRelativePathOrName);
1408
1406
  // console.log({
1409
1407
  // ext,
@@ -1422,7 +1420,7 @@ var Utils;
1422
1420
  //#endregion
1423
1421
  //#region binay utils / json to blob
1424
1422
  async function jsonToBlob(jsonObj) {
1425
- const blob = new Blob$1([JSON.stringify(jsonObj, null, 2)], {
1423
+ const blob = new Blob([JSON.stringify(jsonObj, null, 2)], {
1426
1424
  type: 'application/json',
1427
1425
  });
1428
1426
  return blob;
@@ -3670,7 +3668,7 @@ var UtilsNetwork;
3670
3668
  return url;
3671
3669
  };
3672
3670
  //#endregion
3673
- //#region utils network / getPortFromUrl
3671
+ //#region utils network / get etc hosts path
3674
3672
  UtilsNetwork.getEtcHostsPath = () => {
3675
3673
  let HOST_FILE_PATH = '';
3676
3674
  /* */