@buildable/utils
Advanced tools
+0
-1
@@ -9,3 +9,2 @@ "use strict"; | ||
| tslib_1.__exportStar(require("./integrationDefinitionIds"), exports); | ||
| tslib_1.__exportStar(require("./client"), exports); | ||
| //# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,mDAAyB;AACzB,kDAAwB;AACxB,oDAA0B;AAC1B,qEAA2C;AAC3C,mDAAwB"} | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,mDAAyB;AACzB,kDAAwB;AACxB,oDAA0B;AAC1B,qEAA2C"} |
+1
-2
@@ -5,3 +5,2 @@ export * from "./errors"; | ||
| export * from './network'; | ||
| export * from './integrationDefinitionIds'; | ||
| export * from './client' | ||
| export * from './integrationDefinitionIds'; |
+3
-3
| { | ||
| "name": "@buildable/utils", | ||
| "version": "0.0.16", | ||
| "version": "0.0.17", | ||
| "description": "", | ||
@@ -14,3 +14,3 @@ "main": "dist/index.js", | ||
| "dependencies": { | ||
| "@buildable/types": "^0.0.14", | ||
| "@buildable/types": "^0.0.15", | ||
| "@temporalio/client": "^1.5.2", | ||
@@ -29,3 +29,3 @@ "axios": "1.2.0", | ||
| }, | ||
| "gitHead": "4b5e14ac5b386123f0fec75589000ca44e81ad52" | ||
| "gitHead": "daeed7345b6bddd1e7bd8b3194eed90dac013ced" | ||
| } |
| import { ValidAccessKey } from '@buildable/types'; | ||
| export class Client { | ||
| private secret: ValidAccessKey; | ||
| private configs: Record<string, string>; | ||
| constructor(secret: ValidAccessKey, configs: Record<string, string>) { | ||
| this.secret = secret; | ||
| this.configs = configs; | ||
| } | ||
| /** | ||
| * Not for use outside the SDK lib | ||
| */ | ||
| get _clientInfo() { | ||
| return { | ||
| secret: this.secret, | ||
| configs: this.configs, | ||
| }; | ||
| } | ||
| } | ||
| export const createClient = ( | ||
| secret: ValidAccessKey, | ||
| configs: Record<string, string> = {} | ||
| ) => { | ||
| return new Client(secret, configs); | ||
| }; | ||
39755
-1.6%23
-4.17%782
-3.22%+ Added
- Removed
Updated