posthog-node 6.0.3 → 6.0.4
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/emails/emails.js +4 -4
- package/dist/emails/emails.mjs +4 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +1 -1
- package/src/emails/emails.ts +4 -4
- package/src/version.ts +1 -1
package/dist/emails/emails.js
CHANGED
|
@@ -35,10 +35,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
35
35
|
const core_namespaceObject = require("@posthog/core");
|
|
36
36
|
const external_attachments_js_namespaceObject = require("./attachments.js");
|
|
37
37
|
const external_errors_js_namespaceObject = require("./errors.js");
|
|
38
|
-
const SEND_PATH = '/api/
|
|
39
|
-
const UPLOADS_PATH = '/api/
|
|
40
|
-
const STATUS_PATH = '/api/
|
|
41
|
-
const PREFERENCES_PATH = '/api/
|
|
38
|
+
const SEND_PATH = '/api/messaging/send/email/';
|
|
39
|
+
const UPLOADS_PATH = '/api/messaging/attachments/uploads/';
|
|
40
|
+
const STATUS_PATH = '/api/messaging/emails/{messageId}/';
|
|
41
|
+
const PREFERENCES_PATH = '/api/messaging/preferences/';
|
|
42
42
|
const US_APP_HOST = 'https://us.posthog.com';
|
|
43
43
|
const EU_APP_HOST = 'https://eu.posthog.com';
|
|
44
44
|
const CLOUD_APP_HOSTS = {
|
package/dist/emails/emails.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { parseRetryAfterMs, removeTrailingSlash, safeJsonStringify } from "@posthog/core";
|
|
2
2
|
import { attachmentFiles, attachmentReference, hashedFiles, refuseRenderedMessageOverLimit } from "./attachments.mjs";
|
|
3
3
|
import { EmailError } from "./errors.mjs";
|
|
4
|
-
const SEND_PATH = '/api/
|
|
5
|
-
const UPLOADS_PATH = '/api/
|
|
6
|
-
const STATUS_PATH = '/api/
|
|
7
|
-
const PREFERENCES_PATH = '/api/
|
|
4
|
+
const SEND_PATH = '/api/messaging/send/email/';
|
|
5
|
+
const UPLOADS_PATH = '/api/messaging/attachments/uploads/';
|
|
6
|
+
const STATUS_PATH = '/api/messaging/emails/{messageId}/';
|
|
7
|
+
const PREFERENCES_PATH = '/api/messaging/preferences/';
|
|
8
8
|
const US_APP_HOST = 'https://us.posthog.com';
|
|
9
9
|
const EU_APP_HOST = 'https://eu.posthog.com';
|
|
10
10
|
const CLOUD_APP_HOSTS = {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "6.0.
|
|
1
|
+
export declare const version = "6.0.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
package/dist/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "6.0.
|
|
1
|
+
const version = "6.0.4";
|
|
2
2
|
export { version };
|
package/package.json
CHANGED
package/src/emails/emails.ts
CHANGED
|
@@ -34,10 +34,10 @@ import type {
|
|
|
34
34
|
TemplateEmailForm,
|
|
35
35
|
} from './types'
|
|
36
36
|
|
|
37
|
-
const SEND_PATH = '/api/
|
|
38
|
-
const UPLOADS_PATH = '/api/
|
|
39
|
-
const STATUS_PATH = '/api/
|
|
40
|
-
const PREFERENCES_PATH = '/api/
|
|
37
|
+
const SEND_PATH = '/api/messaging/send/email/'
|
|
38
|
+
const UPLOADS_PATH = '/api/messaging/attachments/uploads/'
|
|
39
|
+
const STATUS_PATH = '/api/messaging/emails/{messageId}/'
|
|
40
|
+
const PREFERENCES_PATH = '/api/messaging/preferences/'
|
|
41
41
|
const US_APP_HOST = 'https://us.posthog.com'
|
|
42
42
|
const EU_APP_HOST = 'https://eu.posthog.com'
|
|
43
43
|
const CLOUD_APP_HOSTS: Record<string, string> = {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "6.0.
|
|
1
|
+
export const version = "6.0.4"
|