@segment/browser-destination-runtime 1.7.1-staging.169 → 1.12.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.
@@ -47,6 +47,6 @@ export interface Subscription {
47
47
  mapping: JSONLikeObject;
48
48
  }
49
49
  export interface PluginFactory {
50
- (settings: JSONValue): Plugin | Plugin[] | Promise<Plugin | Plugin[]>;
50
+ (settings: JSONValue): Plugin[] | Promise<Plugin[]>;
51
51
  pluginName: string;
52
52
  }
@@ -47,6 +47,6 @@ export interface Subscription {
47
47
  mapping: JSONLikeObject;
48
48
  }
49
49
  export interface PluginFactory {
50
- (settings: JSONValue): Plugin | Plugin[] | Promise<Plugin | Plugin[]>;
50
+ (settings: JSONValue): Plugin[] | Promise<Plugin[]>;
51
51
  pluginName: string;
52
52
  }
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@segment/browser-destination-runtime",
3
- "version": "1.7.1-staging.169+d38b84c3",
3
+ "version": "1.12.1",
4
4
  "license": "MIT",
5
+ "publishConfig": {
6
+ "access": "public",
7
+ "registry": "https://registry.npmjs.org"
8
+ },
5
9
  "scripts": {
6
10
  "build": "yarn build:esm && yarn build:cjs",
7
11
  "build:esm": "tsc --outDir ./dist/esm",
@@ -56,7 +60,7 @@
56
60
  }
57
61
  },
58
62
  "dependencies": {
59
- "@segment/actions-core": "^3.77.1-staging.169+d38b84c3"
63
+ "@segment/actions-core": "^3.81.1"
60
64
  },
61
65
  "devDependencies": {
62
66
  "@segment/analytics-next": "*"
@@ -64,5 +68,5 @@
64
68
  "peerDependencies": {
65
69
  "@segment/analytics-next": "*"
66
70
  },
67
- "gitHead": "d38b84c334418f692da6338d92f951ea6ee9350b"
71
+ "gitHead": "ffebf899adae02c7ad22dc4f1546776e768b1456"
68
72
  }
package/src/types.ts CHANGED
@@ -64,6 +64,6 @@ export interface Subscription {
64
64
  }
65
65
 
66
66
  export interface PluginFactory {
67
- (settings: JSONValue): Plugin | Plugin[] | Promise<Plugin | Plugin[]>
67
+ (settings: JSONValue): Plugin[] | Promise<Plugin[]>
68
68
  pluginName: string
69
69
  }
package/tsconfig.json CHANGED
@@ -6,4 +6,4 @@
6
6
  "baseUrl": "."
7
7
  },
8
8
  "exclude": ["dist"]
9
- }
9
+ }