@supermetry/node 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.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -172,7 +172,7 @@ function sanitizeRevenue(revenue) {
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
// src/index.ts
|
|
175
|
-
var VERSION = "0.2.
|
|
175
|
+
var VERSION = "0.2.1";
|
|
176
176
|
var DEFAULT_USER_AGENT = `supermetry-node/${VERSION}`;
|
|
177
177
|
var EVENTS_PATH = "/api/public/v1/events";
|
|
178
178
|
var DEFAULT_HOST = "https://app.supermetry.com";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type PropValue, type Props, type Revenue, type Traits } from "./validate.js";
|
|
2
2
|
export type { PropValue, Props, Revenue, Traits } from "./validate.js";
|
|
3
3
|
export { sanitizeProps, sanitizeRevenue, sanitizeTraits } from "./validate.js";
|
|
4
|
-
export declare const VERSION = "0.2.
|
|
5
|
-
export declare const DEFAULT_USER_AGENT = "supermetry-node/0.2.
|
|
4
|
+
export declare const VERSION = "0.2.1";
|
|
5
|
+
export declare const DEFAULT_USER_AGENT = "supermetry-node/0.2.1";
|
|
6
6
|
export declare const EVENTS_PATH = "/api/public/v1/events";
|
|
7
7
|
/** Supermetry Cloud, used when `host` is omitted. */
|
|
8
8
|
export declare const DEFAULT_HOST = "https://app.supermetry.com";
|
|
@@ -33,7 +33,7 @@ export interface SupermetryOptions {
|
|
|
33
33
|
endpoint?: string;
|
|
34
34
|
/** Default page URL for events that do not pass one. Relative event URLs resolve against it. */
|
|
35
35
|
url?: string;
|
|
36
|
-
/** User-Agent used when no visitor UA is forwarded. Defaults to `supermetry-node/0.2.
|
|
36
|
+
/** User-Agent used when no visitor UA is forwarded. Defaults to `supermetry-node/0.2.1`. */
|
|
37
37
|
userAgent?: string;
|
|
38
38
|
/** Send nothing (every call resolves immediately). */
|
|
39
39
|
disabled?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -119,7 +119,7 @@ function sanitizeRevenue(revenue) {
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
// src/index.ts
|
|
122
|
-
var VERSION = "0.2.
|
|
122
|
+
var VERSION = "0.2.1";
|
|
123
123
|
var DEFAULT_USER_AGENT = `supermetry-node/${VERSION}`;
|
|
124
124
|
var EVENTS_PATH = "/api/public/v1/events";
|
|
125
125
|
var DEFAULT_HOST = "https://app.supermetry.com";
|