@aneuhold/core-ts-lib 1.0.11 → 1.0.13
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/lib/index.d.ts
CHANGED
|
@@ -7,8 +7,9 @@ import FileSystemService from './services/applications/FileSystemService';
|
|
|
7
7
|
import ITermService from './services/applications/ITermService';
|
|
8
8
|
import CLIService from './services/CLIService';
|
|
9
9
|
import ConfigService from './services/ConfigService/ConfigService';
|
|
10
|
+
import DOFunctionService, { DOFunctionOutput } from './services/DOFunctionService';
|
|
10
11
|
import StringService from './services/StringService';
|
|
11
12
|
import CurrentEnv, { OperatingSystemType, ShellType, TerminalType } from './utils/CurrentEnv';
|
|
12
13
|
import Logger from './utils/Logger';
|
|
13
|
-
export { CLIService, StringService, CurrentEnv, ChromeService, DockerService, FileSystemService, sleep, OperatingSystemType, ShellType, Logger, TerminalType, datesAreOnSameDay, getFileNameExtension, ITermService, ConfigService };
|
|
14
|
+
export { CLIService, StringService, CurrentEnv, ChromeService, DockerService, FileSystemService, sleep, OperatingSystemType, ShellType, Logger, TerminalType, datesAreOnSameDay, getFileNameExtension, ITermService, ConfigService, DOFunctionService, DOFunctionOutput };
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,iCAAiC,CAAC;AAChE,OAAO,KAAK,MAAM,yBAAyB,CAAC;AAC5C,OAAO,oBAAoB,MAAM,mCAAmC,CAAC;AACrE,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAClE,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAClE,OAAO,iBAAiB,MAAM,2CAA2C,CAAC;AAC1E,OAAO,YAAY,MAAM,sCAAsC,CAAC;AAChE,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAC/C,OAAO,a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aAAa,EACb,iBAAiB,EACjB,gBAAgB,EACjB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ConfigService = exports.ITermService = exports.getFileNameExtension = exports.datesAreOnSameDay = exports.TerminalType = exports.Logger = exports.ShellType = exports.OperatingSystemType = exports.sleep = exports.FileSystemService = exports.DockerService = exports.ChromeService = exports.CurrentEnv = exports.StringService = exports.CLIService = void 0;
|
|
29
|
+
exports.DOFunctionService = exports.ConfigService = exports.ITermService = exports.getFileNameExtension = exports.datesAreOnSameDay = exports.TerminalType = exports.Logger = exports.ShellType = exports.OperatingSystemType = exports.sleep = exports.FileSystemService = exports.DockerService = exports.ChromeService = exports.CurrentEnv = exports.StringService = exports.CLIService = void 0;
|
|
30
30
|
const dateFunctions_1 = __importDefault(require("./helperFunctions/dateFunctions"));
|
|
31
31
|
exports.datesAreOnSameDay = dateFunctions_1.default;
|
|
32
32
|
const sleep_1 = __importDefault(require("./helperFunctions/sleep"));
|
|
@@ -45,6 +45,8 @@ const CLIService_1 = __importDefault(require("./services/CLIService"));
|
|
|
45
45
|
exports.CLIService = CLIService_1.default;
|
|
46
46
|
const ConfigService_1 = __importDefault(require("./services/ConfigService/ConfigService"));
|
|
47
47
|
exports.ConfigService = ConfigService_1.default;
|
|
48
|
+
const DOFunctionService_1 = __importDefault(require("./services/DOFunctionService"));
|
|
49
|
+
exports.DOFunctionService = DOFunctionService_1.default;
|
|
48
50
|
const StringService_1 = __importDefault(require("./services/StringService"));
|
|
49
51
|
exports.StringService = StringService_1.default;
|
|
50
52
|
const CurrentEnv_1 = __importStar(require("./utils/CurrentEnv"));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Output from a Digital Ocean function must always be an object.
|
|
3
|
+
*/
|
|
4
|
+
export type DOFunctionOutput<TOutput extends object> = {
|
|
5
|
+
/**
|
|
6
|
+
* The body is an object, which means it will automatically be serialized to
|
|
7
|
+
* JSON and the Content-Type header will be set to application/json.
|
|
8
|
+
*/
|
|
9
|
+
body: TOutput;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A service to provide some utility common to multiple Digital Ocean functions.
|
|
13
|
+
*/
|
|
14
|
+
export default class DOFunctionService {
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=DOFunctionService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DOFunctionService.d.ts","sourceRoot":"","sources":["../../src/services/DOFunctionService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,OAAO,SAAS,MAAM,IAAI;IACrD;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAiB;CAAG"}
|