@appsemble/node-utils 0.20.7 → 0.20.10

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/dist/fs.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import { Dirent } from 'fs';
3
4
  import { Promisable } from 'type-fest';
4
5
  /**
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export * from './logger';
2
2
  export * from './AppsembleError';
3
3
  export * from './basicAuth';
4
- export * from './commandDirOptions';
5
4
  export * from './formData';
6
5
  export * from './getWorkspaces';
7
6
  export * from './handleError';
package/dist/index.js CHANGED
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./logger"), exports);
18
18
  __exportStar(require("./AppsembleError"), exports);
19
19
  __exportStar(require("./basicAuth"), exports);
20
- __exportStar(require("./commandDirOptions"), exports);
21
20
  __exportStar(require("./formData"), exports);
22
21
  __exportStar(require("./getWorkspaces"), exports);
23
22
  __exportStar(require("./handleError"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,mDAAiC;AACjC,8CAA4B;AAC5B,sDAAoC;AACpC,6CAA2B;AAC3B,kDAAgC;AAChC,gDAA8B;AAC9B,iDAA+B;AAC/B,qDAAmC;AACnC,qDAAmC;AACnC,uCAAqB;AACrB,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,mDAAiC;AACjC,8CAA4B;AAC5B,6CAA2B;AAC3B,kDAAgC;AAChC,gDAA8B;AAC9B,iDAA+B;AAC/B,qDAAmC;AACnC,qDAAmC;AACnC,uCAAqB;AACrB,iDAA+B"}
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import { ReadStream } from 'fs';
3
4
  /**
4
5
  * Set the test fixture base path. This folder should contain a folder named `__fixtures__`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/node-utils",
3
- "version": "0.20.7",
3
+ "version": "0.20.10",
4
4
  "description": "NodeJS utilities used by Appsemble internally.",
5
5
  "keywords": [
6
6
  "app",
@@ -29,7 +29,7 @@
29
29
  "test": "jest"
30
30
  },
31
31
  "dependencies": {
32
- "@appsemble/utils": "0.20.7",
32
+ "@appsemble/utils": "0.20.10",
33
33
  "@types/koa": "^2.0.0",
34
34
  "axios": "^0.27.0",
35
35
  "chalk": "^4.0.0",
@@ -1,12 +0,0 @@
1
- import { RequireDirectoryOptions } from 'yargs';
2
- /**
3
- * Generate `yargs.commandDir()` options based on a filename.
4
- *
5
- * The passed filename must match the directory name in which to look for subcommands.
6
- *
7
- * The extension is set correctly for JavaScript and TypeScript files automatically.
8
- *
9
- * @param filename - The filename for which to get command dir options.
10
- * @returns Options that work for JavaScript as well as TypeScript.
11
- */
12
- export declare function commandDirOptions(filename: string): [string, RequireDirectoryOptions];
@@ -1,24 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.commandDirOptions = void 0;
7
- const path_1 = require("path");
8
- const normalize_path_1 = __importDefault(require("normalize-path"));
9
- /**
10
- * Generate `yargs.commandDir()` options based on a filename.
11
- *
12
- * The passed filename must match the directory name in which to look for subcommands.
13
- *
14
- * The extension is set correctly for JavaScript and TypeScript files automatically.
15
- *
16
- * @param filename - The filename for which to get command dir options.
17
- * @returns Options that work for JavaScript as well as TypeScript.
18
- */
19
- function commandDirOptions(filename) {
20
- const { dir, ext, name } = (0, path_1.parse)(filename);
21
- return [(0, normalize_path_1.default)((0, path_1.join)(dir, name)), { extensions: [ext.slice(1)] }];
22
- }
23
- exports.commandDirOptions = commandDirOptions;
24
- //# sourceMappingURL=commandDirOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commandDirOptions.js","sourceRoot":"","sources":["../src/commandDirOptions.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAmC;AAEnC,oEAA2C;AAG3C;;;;;;;;;GASG;AACH,SAAgB,iBAAiB,CAAC,QAAgB;IAChD,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,IAAA,YAAK,EAAC,QAAQ,CAAC,CAAC;IAC3C,OAAO,CAAC,IAAA,wBAAa,EAAC,IAAA,WAAI,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAC1E,CAAC;AAHD,8CAGC"}