spectrum-ts 0.2.0 → 0.2.1
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/utils/cloud.ts
|
|
2
|
-
var SPECTRUM_CLOUD_URL = `https://${process.env.SPECTRUM_CLOUD_URL ?? "spectrum
|
|
2
|
+
var SPECTRUM_CLOUD_URL = `https://${process.env.SPECTRUM_CLOUD_URL ?? "spectrum.photon.codes"}`;
|
|
3
3
|
var SpectrumCloudError = class extends Error {
|
|
4
4
|
status;
|
|
5
5
|
code;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cloud
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-HXM64ENV.js";
|
|
4
4
|
import {
|
|
5
5
|
mergeStreams,
|
|
6
6
|
stream
|
|
@@ -55,7 +55,7 @@ async function createCloudClients(projectId, projectSecret) {
|
|
|
55
55
|
};
|
|
56
56
|
const buildClients = () => {
|
|
57
57
|
if (tokenData.type === "shared") {
|
|
58
|
-
const address = process.env.SPECTRUM_IMESSAGE_ADDRESS ?? "
|
|
58
|
+
const address = process.env.SPECTRUM_IMESSAGE_ADDRESS ?? "imessage.spectrum.photon.codes:443";
|
|
59
59
|
return [
|
|
60
60
|
createClient({
|
|
61
61
|
address,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spectrum-ts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dev": "tsup --watch"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@photon-ai/advanced-imessage": "^0.
|
|
39
|
+
"@photon-ai/advanced-imessage": "^0.4.2",
|
|
40
40
|
"@photon-ai/whatsapp-business": "^0.1.1",
|
|
41
41
|
"@photon-ai/imessage-kit": "^2.1.2",
|
|
42
42
|
"@repeaterjs/repeater": "^3.0.6",
|
package/src/utils/cloud.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const SPECTRUM_CLOUD_URL = `https://${process.env.SPECTRUM_CLOUD_URL ?? "spectrum
|
|
1
|
+
export const SPECTRUM_CLOUD_URL = `https://${process.env.SPECTRUM_CLOUD_URL ?? "spectrum.photon.codes"}`;
|
|
2
2
|
|
|
3
3
|
// ---------------------------------------------------------------------------
|
|
4
4
|
// API response types (aligned with OpenAPI spec)
|