@skrr-ai/signals 0.1.0 → 0.1.2
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/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -398,9 +398,9 @@ var SignalPublisher = class {
|
|
|
398
398
|
fetchImplementation;
|
|
399
399
|
traceContextProvider;
|
|
400
400
|
constructor(options) {
|
|
401
|
-
if (!options.endpoint) throw new Error("[
|
|
402
|
-
if (!options.source) throw new Error("[
|
|
403
|
-
if (!options.token) throw new Error("[
|
|
401
|
+
if (!options.endpoint) throw new Error("[skrr Signals] endpoint is required.");
|
|
402
|
+
if (!options.source) throw new Error("[skrr Signals] source is required.");
|
|
403
|
+
if (!options.token) throw new Error("[skrr Signals] source-scoped token is required.");
|
|
404
404
|
this.endpoint = options.endpoint.replace(/\/$/, "");
|
|
405
405
|
this.source = options.source;
|
|
406
406
|
this.token = options.token;
|
package/dist/index.js
CHANGED
|
@@ -363,9 +363,9 @@ var SignalPublisher = class {
|
|
|
363
363
|
fetchImplementation;
|
|
364
364
|
traceContextProvider;
|
|
365
365
|
constructor(options) {
|
|
366
|
-
if (!options.endpoint) throw new Error("[
|
|
367
|
-
if (!options.source) throw new Error("[
|
|
368
|
-
if (!options.token) throw new Error("[
|
|
366
|
+
if (!options.endpoint) throw new Error("[skrr Signals] endpoint is required.");
|
|
367
|
+
if (!options.source) throw new Error("[skrr Signals] source is required.");
|
|
368
|
+
if (!options.token) throw new Error("[skrr Signals] source-scoped token is required.");
|
|
369
369
|
this.endpoint = options.endpoint.replace(/\/$/, "");
|
|
370
370
|
this.source = options.source;
|
|
371
371
|
this.token = options.token;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skrr-ai/signals",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "CloudEvents-native Signal contracts and publisher SDK for OverSky",
|
|
6
6
|
"keywords": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/
|
|
17
|
+
"url": "git+https://github.com/skrr-ai/OverSky.git",
|
|
18
18
|
"directory": "packages/signal-sdk"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^20.0.0",
|
|
58
58
|
"tsup": "^8.0.0",
|
|
59
|
-
"typescript": "^5.3
|
|
59
|
+
"typescript": "^5.9.3",
|
|
60
60
|
"vitest": "^4.1.6"
|
|
61
61
|
}
|
|
62
62
|
}
|