@dbos-inc/dbos-sdk 0.8.48-preview → 0.8.52-preview.g611df9b955
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/packages/communicator-bcrypt/index.d.ts +8 -0
- package/dist/packages/communicator-bcrypt/index.d.ts.map +1 -0
- package/dist/packages/communicator-bcrypt/index.js +43 -0
- package/dist/packages/communicator-bcrypt/index.js.map +1 -0
- package/dist/packages/communicator-datetime/index.d.ts +7 -0
- package/dist/packages/communicator-datetime/index.d.ts.map +1 -0
- package/dist/packages/communicator-datetime/index.js +35 -0
- package/dist/packages/communicator-datetime/index.js.map +1 -0
- package/dist/packages/communicator-random/index.d.ts +6 -0
- package/dist/packages/communicator-random/index.d.ts.map +1 -0
- package/dist/packages/communicator-random/index.js +26 -0
- package/dist/packages/communicator-random/index.js.map +1 -0
- package/dist/src/context.d.ts +0 -1
- package/dist/src/context.d.ts.map +1 -1
- package/dist/src/httpServer/server.d.ts +1 -2
- package/dist/src/httpServer/server.d.ts.map +1 -1
- package/dist/src/testing/testing_runtime.d.ts +1 -2
- package/dist/src/testing/testing_runtime.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/packages/communicator-bcrypt/dist/index.d.ts +8 -0
- package/packages/communicator-bcrypt/dist/index.d.ts.map +1 -0
- package/packages/communicator-bcrypt/dist/index.js +43 -0
- package/packages/communicator-bcrypt/dist/index.js.map +1 -0
- package/packages/communicator-bcrypt/package.json +29 -0
- package/packages/communicator-datetime/dist/index.d.ts +7 -0
- package/packages/communicator-datetime/dist/index.d.ts.map +1 -0
- package/packages/communicator-datetime/dist/index.js +35 -0
- package/packages/communicator-datetime/dist/index.js.map +1 -0
- package/packages/communicator-datetime/package.json +27 -0
- package/packages/communicator-random/dist/index.d.ts +6 -0
- package/packages/communicator-random/dist/index.d.ts.map +1 -0
- package/packages/communicator-random/dist/index.js +26 -0
- package/packages/communicator-random/dist/index.js.map +1 -0
- package/packages/communicator-random/package.json +27 -0
- package/packages/dbos-cloud/package.json +3 -2
- package/packages/dbos-openapi/package.json +1 -1
package/package.json
CHANGED
@@ -0,0 +1,8 @@
|
|
1
|
+
import { CommunicatorContext } from '@dbos-inc/dbos-sdk';
|
2
|
+
declare class BcryptCommunicator {
|
3
|
+
static bcryptGenSalt(_ctx: CommunicatorContext, saltRounds?: number): Promise<string>;
|
4
|
+
static bcryptHash(_ctx: CommunicatorContext, txt: string, saltRounds?: number): Promise<string>;
|
5
|
+
static bcryptCompare(txt: string, hashedTxt: string): Promise<boolean>;
|
6
|
+
}
|
7
|
+
export { BcryptCommunicator };
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAKrE,cAAM,kBAAkB;WAGP,aAAa,CAAC,IAAI,EAAE,mBAAmB,EAAE,UAAU,GAAE,MAAW,GAAI,OAAO,CAAC,MAAM,CAAC;WAMnF,UAAU,CAAC,IAAI,EAAE,mBAAmB,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,GAAE,MAAW,GAAI,OAAO,CAAC,MAAM,CAAC;WAI7F,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAI/E;AAED,OACA,EACI,kBAAkB,EACrB,CAAA"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
exports.BcryptCommunicator = void 0;
|
16
|
+
const dbos_sdk_1 = require("@dbos-inc/dbos-sdk");
|
17
|
+
const bcryptjs_1 = __importDefault(require("bcryptjs"));
|
18
|
+
class BcryptCommunicator {
|
19
|
+
static async bcryptGenSalt(_ctx, saltRounds = 10) {
|
20
|
+
return await bcryptjs_1.default.genSalt(saltRounds);
|
21
|
+
}
|
22
|
+
static async bcryptHash(_ctx, txt, saltRounds = 10) {
|
23
|
+
return await bcryptjs_1.default.hash(txt, saltRounds);
|
24
|
+
}
|
25
|
+
static async bcryptCompare(txt, hashedTxt) {
|
26
|
+
const isMatch = bcryptjs_1.default.compare(txt, hashedTxt);
|
27
|
+
return isMatch;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
exports.BcryptCommunicator = BcryptCommunicator;
|
31
|
+
__decorate([
|
32
|
+
(0, dbos_sdk_1.Communicator)(),
|
33
|
+
__metadata("design:type", Function),
|
34
|
+
__metadata("design:paramtypes", [Object, Number]),
|
35
|
+
__metadata("design:returntype", Promise)
|
36
|
+
], BcryptCommunicator, "bcryptGenSalt", null);
|
37
|
+
__decorate([
|
38
|
+
(0, dbos_sdk_1.Communicator)(),
|
39
|
+
__metadata("design:type", Function),
|
40
|
+
__metadata("design:paramtypes", [Object, String, Number]),
|
41
|
+
__metadata("design:returntype", Promise)
|
42
|
+
], BcryptCommunicator, "bcryptHash", null);
|
43
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,iDAAqE;AAErE,wDAAgC;AAGhC,MAAM,kBAAkB;IAGP,AAAb,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,IAAyB,EAAE,aAAqB,EAAE;QAEzE,OAAO,MAAM,kBAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC9C,CAAC;IAGY,AAAb,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,IAAyB,EAAE,GAAW,EAAE,aAAqB,EAAE;QACnF,OAAO,MAAM,kBAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;IAChD,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,GAAW,EAAE,SAAiB;QACrD,MAAM,OAAO,GAAG,kBAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QACjD,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ;AAIG,gDAAkB;AAlBL;IADZ,IAAA,uBAAY,GAAE;;;;6CAId;AAGY;IADZ,IAAA,uBAAY,GAAE;;;;0CAGd"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"name": "@dbos-inc/communicator-bcrypt",
|
3
|
+
"version": "0.0.0-placeholder",
|
4
|
+
"description": "Communicator library",
|
5
|
+
"license": "MIT",
|
6
|
+
"repository": {
|
7
|
+
"type": "git",
|
8
|
+
"url": "https://github.com/dbos-inc/dbos-ts",
|
9
|
+
"directory": "packages/communicator-bcrypt"
|
10
|
+
},
|
11
|
+
"homepage": "https://docs.dbos.dev/",
|
12
|
+
"main": "dist/index.js",
|
13
|
+
"types": "dist/index.d.ts",
|
14
|
+
"scripts": {
|
15
|
+
"build": "tsc --project tsconfig.json",
|
16
|
+
"test": "echo 'No tests'",
|
17
|
+
"setversion": "grunt setversion"
|
18
|
+
},
|
19
|
+
"devDependencies": {
|
20
|
+
"@types/bcryptjs": "^2.4.6",
|
21
|
+
"grunt": "^1.6.1",
|
22
|
+
"nerdbank-gitversioning": "^3.6.133",
|
23
|
+
"typescript": "^5.3.3"
|
24
|
+
},
|
25
|
+
"dependencies": {
|
26
|
+
"@dbos-inc/dbos-sdk": "^0.8.41-preview",
|
27
|
+
"bcryptjs": "^2.4.3"
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { CommunicatorContext } from '@dbos-inc/dbos-sdk';
|
2
|
+
declare class CurrentTimeCommunicator {
|
3
|
+
static getCurrentDate(_ctx: CommunicatorContext): Promise<Date>;
|
4
|
+
static getCurrentTime(_ctx: CommunicatorContext): Promise<number>;
|
5
|
+
}
|
6
|
+
export { CurrentTimeCommunicator };
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAErE,cAAM,uBAAuB;IAGzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,mBAAmB,GAAI,OAAO,CAAC,IAAI,CAAC;IAKhE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,mBAAmB,GAAI,OAAO,CAAC,MAAM,CAAC;CAGrE;AAED,OACA,EACI,uBAAuB,EAC1B,CAAA"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.CurrentTimeCommunicator = void 0;
|
13
|
+
const dbos_sdk_1 = require("@dbos-inc/dbos-sdk");
|
14
|
+
class CurrentTimeCommunicator {
|
15
|
+
static getCurrentDate(_ctx) {
|
16
|
+
return Promise.resolve(new Date());
|
17
|
+
}
|
18
|
+
static getCurrentTime(_ctx) {
|
19
|
+
return Promise.resolve(new Date().getUTCMilliseconds());
|
20
|
+
}
|
21
|
+
}
|
22
|
+
exports.CurrentTimeCommunicator = CurrentTimeCommunicator;
|
23
|
+
__decorate([
|
24
|
+
(0, dbos_sdk_1.Communicator)(),
|
25
|
+
__metadata("design:type", Function),
|
26
|
+
__metadata("design:paramtypes", [Object]),
|
27
|
+
__metadata("design:returntype", Promise)
|
28
|
+
], CurrentTimeCommunicator, "getCurrentDate", null);
|
29
|
+
__decorate([
|
30
|
+
(0, dbos_sdk_1.Communicator)(),
|
31
|
+
__metadata("design:type", Function),
|
32
|
+
__metadata("design:paramtypes", [Object]),
|
33
|
+
__metadata("design:returntype", Promise)
|
34
|
+
], CurrentTimeCommunicator, "getCurrentTime", null);
|
35
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iDAAqE;AAErE,MAAM,uBAAuB;IAGlB,AAAP,MAAM,CAAC,cAAc,CAAC,IAAyB;QAC3C,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;IACvC,CAAC;IAGM,AAAP,MAAM,CAAC,cAAc,CAAC,IAAyB;QAC3C,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAC5D,CAAC;CACJ;AAIG,0DAAuB;AAZhB;IADN,IAAA,uBAAY,GAAE;;;;mDAGd;AAGM;IADN,IAAA,uBAAY,GAAE;;;;mDAGd"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"name": "@dbos-inc/communicator-datetime",
|
3
|
+
"version": "0.0.0-placeholder",
|
4
|
+
"description": "Communicator library",
|
5
|
+
"license": "MIT",
|
6
|
+
"repository": {
|
7
|
+
"type": "git",
|
8
|
+
"url": "https://github.com/dbos-inc/dbos-ts",
|
9
|
+
"directory": "packages/communicator-datetime"
|
10
|
+
},
|
11
|
+
"homepage": "https://docs.dbos.dev/",
|
12
|
+
"main": "dist/index.js",
|
13
|
+
"types": "dist/index.d.ts",
|
14
|
+
"scripts": {
|
15
|
+
"build": "tsc --project tsconfig.json",
|
16
|
+
"test": "echo 'No tests'",
|
17
|
+
"setversion": "grunt setversion"
|
18
|
+
},
|
19
|
+
"devDependencies": {
|
20
|
+
"grunt": "^1.6.1",
|
21
|
+
"nerdbank-gitversioning": "^3.6.133",
|
22
|
+
"typescript": "^5.3.3"
|
23
|
+
},
|
24
|
+
"dependencies": {
|
25
|
+
"@dbos-inc/dbos-sdk": "^0.8.41-preview"
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAErE,cAAM,kBAAkB;IAGpB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,GAAI,OAAO,CAAC,MAAM,CAAC;CAG7D;AAED,OACA,EACI,kBAAkB,EACrB,CAAA"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.RandomCommunicator = void 0;
|
13
|
+
const dbos_sdk_1 = require("@dbos-inc/dbos-sdk");
|
14
|
+
class RandomCommunicator {
|
15
|
+
static random(_ctx) {
|
16
|
+
return Promise.resolve(Math.random());
|
17
|
+
}
|
18
|
+
}
|
19
|
+
exports.RandomCommunicator = RandomCommunicator;
|
20
|
+
__decorate([
|
21
|
+
(0, dbos_sdk_1.Communicator)(),
|
22
|
+
__metadata("design:type", Function),
|
23
|
+
__metadata("design:paramtypes", [Object]),
|
24
|
+
__metadata("design:returntype", Promise)
|
25
|
+
], RandomCommunicator, "random", null);
|
26
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iDAAqE;AAErE,MAAM,kBAAkB;IAGb,AAAP,MAAM,CAAC,MAAM,CAAC,IAAyB;QACnC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC1C,CAAC;CACJ;AAIG,gDAAkB;AAPX;IADN,IAAA,uBAAY,GAAE;;;;sCAGd"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
{
|
2
|
+
"name": "@dbos-inc/communicator-random",
|
3
|
+
"version": "0.0.0-placeholder",
|
4
|
+
"description": "Communicator library",
|
5
|
+
"license": "MIT",
|
6
|
+
"repository": {
|
7
|
+
"type": "git",
|
8
|
+
"url": "https://github.com/dbos-inc/dbos-ts",
|
9
|
+
"directory": "packages/communicator-random"
|
10
|
+
},
|
11
|
+
"homepage": "https://docs.dbos.dev/",
|
12
|
+
"main": "dist/index.js",
|
13
|
+
"types": "dist/index.d.ts",
|
14
|
+
"scripts": {
|
15
|
+
"build": "tsc --project tsconfig.json",
|
16
|
+
"test": "echo 'No tests'",
|
17
|
+
"setversion": "grunt setversion"
|
18
|
+
},
|
19
|
+
"devDependencies": {
|
20
|
+
"grunt": "^1.6.1",
|
21
|
+
"nerdbank-gitversioning": "^3.6.133",
|
22
|
+
"typescript": "^5.3.3"
|
23
|
+
},
|
24
|
+
"dependencies": {
|
25
|
+
"@dbos-inc/dbos-sdk": "^0.8.41-preview"
|
26
|
+
}
|
27
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dbos-inc/dbos-cloud",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.0.0-placeholder",
|
4
4
|
"description": "Tool for performing application deployment to DBOS cloud",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": {
|
@@ -29,7 +29,8 @@
|
|
29
29
|
"jest": "^29.6.1",
|
30
30
|
"nerdbank-gitversioning": "^3.6.133",
|
31
31
|
"supertest": "^6.3.3",
|
32
|
-
"ts-jest": "^29.1.1"
|
32
|
+
"ts-jest": "^29.1.1",
|
33
|
+
"typescript": "^5.3.3"
|
33
34
|
},
|
34
35
|
"dependencies": {
|
35
36
|
"@opentelemetry/api-logs": "^0.47.0",
|