avo-inspector 1.4.1 → 2.0.0
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/CHANGELOG.md +9 -0
- package/bsconfig.json +1 -1
- package/dist/index.js +1 -1
- package/dist-browser/AvoBatcher.d.ts +24 -0
- package/dist-browser/AvoDeduplicator.d.ts +20 -0
- package/dist-browser/AvoGuid.d.ts +3 -0
- package/dist-browser/AvoInspector.d.ts +49 -0
- package/dist-browser/AvoInspectorEnv.d.ts +7 -0
- package/dist-browser/AvoInstallationId.d.ts +5 -0
- package/dist-browser/AvoNetworkCallsHandler.d.ts +48 -0
- package/dist-browser/AvoSchemaParser.d.ts +9 -0
- package/dist-browser/AvoSessionTracker.d.ts +15 -0
- package/dist-browser/AvoStorage.d.ts +22 -0
- package/dist-browser/__mocks__/xhr.d.ts +12 -0
- package/dist-browser/__mocks__/xhrError.d.ts +12 -0
- package/dist-browser/__tests__/AvoInspector.d.ts +1 -0
- package/dist-browser/__tests__/Batcher.d.ts +1 -0
- package/dist-browser/__tests__/BatcherPublic.d.ts +1 -0
- package/dist-browser/__tests__/Deduplicator.d.ts +1 -0
- package/dist-browser/__tests__/InstallationId.d.ts +1 -0
- package/dist-browser/__tests__/NetworkCallsHandler.d.ts +1 -0
- package/dist-browser/__tests__/Parsing.d.ts +1 -0
- package/dist-browser/__tests__/Sessions.d.ts +1 -0
- package/dist-browser/__tests__/Storage.d.ts +1 -0
- package/dist-browser/__tests__/constants.d.ts +36 -0
- package/dist-browser/index.d.ts +2 -0
- package/dist-browser/utils.d.ts +3 -0
- package/dist-native/AvoBatcher.d.ts +24 -0
- package/dist-native/AvoBatcher.js +82 -0
- package/dist-native/AvoDeduplicator.d.ts +36 -0
- package/dist-native/AvoDeduplicator.js +142 -0
- package/dist-native/AvoGuid.d.ts +3 -0
- package/dist-native/AvoGuid.js +14 -0
- package/dist-native/AvoInspector.d.ts +53 -0
- package/dist-native/AvoInspector.js +220 -0
- package/dist-native/AvoInspectorEnv.d.ts +7 -0
- package/dist-native/AvoInspectorEnv.js +8 -0
- package/dist-native/AvoInstallationId.d.ts +5 -0
- package/dist-native/AvoInstallationId.js +36 -0
- package/dist-native/AvoNetworkCallsHandler.d.ts +48 -0
- package/dist-native/AvoNetworkCallsHandler.js +142 -0
- package/dist-native/AvoSchemaParser.d.ts +11 -0
- package/dist-native/AvoSchemaParser.js +95 -0
- package/dist-native/AvoSessionTracker.d.ts +15 -0
- package/dist-native/AvoSessionTracker.js +104 -0
- package/dist-native/AvoStorage.d.ts +22 -0
- package/dist-native/AvoStorage.js +345 -0
- package/dist-native/__mocks__/xhr.d.ts +12 -0
- package/dist-native/__mocks__/xhr.js +14 -0
- package/dist-native/__mocks__/xhrError.d.ts +12 -0
- package/dist-native/__mocks__/xhrError.js +14 -0
- package/dist-native/__tests__/AvoInspector.d.ts +1 -0
- package/dist-native/__tests__/AvoInspector.js +207 -0
- package/dist-native/__tests__/Batcher.d.ts +1 -0
- package/dist-native/__tests__/Batcher.js +280 -0
- package/dist-native/__tests__/BatcherPublic.d.ts +1 -0
- package/dist-native/__tests__/BatcherPublic.js +82 -0
- package/dist-native/__tests__/Deduplicator.d.ts +1 -0
- package/dist-native/__tests__/Deduplicator.js +111 -0
- package/dist-native/__tests__/InstallationId.d.ts +1 -0
- package/dist-native/__tests__/InstallationId.js +40 -0
- package/dist-native/__tests__/NetworkCallsHandler.d.ts +1 -0
- package/dist-native/__tests__/NetworkCallsHandler.js +132 -0
- package/dist-native/__tests__/Parsing.d.ts +1 -0
- package/dist-native/__tests__/Parsing.js +174 -0
- package/dist-native/__tests__/Sessions.d.ts +1 -0
- package/dist-native/__tests__/Sessions.js +179 -0
- package/dist-native/__tests__/Storage.d.ts +1 -0
- package/dist-native/__tests__/Storage.js +173 -0
- package/dist-native/__tests__/constants.d.ts +36 -0
- package/dist-native/__tests__/constants.js +47 -0
- package/dist-native/index.d.ts +2 -0
- package/dist-native/index.js +7 -0
- package/dist-native/utils.d.ts +3 -0
- package/dist-native/utils.js +42 -0
- package/package.json +4 -3
- package/rescript/AvoInspector.res +19 -0
- package/rescript/AvoInspector.resi +7 -0
- package/reason/AvoInspector.re +0 -26
- package/reason/AvoInspector.rei +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "avo-inspector",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"browser": "dist/index.js",
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "tsc --emitDeclarationOnly && webpack --config webpack.config.js",
|
|
10
10
|
"build-for-script-tag": "tsc --outDir dist-browser --emitDeclarationOnly && webpack --config webpack.browserConfig.js",
|
|
11
|
-
"lint": "eslint
|
|
11
|
+
"lint": "eslint",
|
|
12
12
|
"test": "jest",
|
|
13
13
|
"test:browser": "BROWSER=1 jest",
|
|
14
|
-
"typecheck": "tsc --noEmit"
|
|
14
|
+
"typecheck": "tsc --noEmit",
|
|
15
|
+
"prepublishOnly": "yarn build && yarn test:browser && rm -rf examples/ts-avo-inspector-example/node_modules/ && cd examples/ts-avo-inspector-example/ && yarn && yarn test --watchAll=false"
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type t
|
|
2
|
+
|
|
3
|
+
type env = [
|
|
4
|
+
| #dev
|
|
5
|
+
| #staging
|
|
6
|
+
| #prod
|
|
7
|
+
]
|
|
8
|
+
|
|
9
|
+
type options = {
|
|
10
|
+
apiKey: string,
|
|
11
|
+
env: env,
|
|
12
|
+
version: string,
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@new @module("avo-inspector")
|
|
16
|
+
external make: options => t = "AvoInspector"
|
|
17
|
+
|
|
18
|
+
@send
|
|
19
|
+
external trackSchemaFromEvent: (t, string, Js.Json.t) => unit = "trackSchemaFromEvent"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type t
|
|
2
|
+
type env = [#dev | #prod | #staging]
|
|
3
|
+
type options = {apiKey: string, env: env, version: string}
|
|
4
|
+
@new @module("avo-inspector")
|
|
5
|
+
external make: options => t = "AvoInspector"
|
|
6
|
+
@send
|
|
7
|
+
external trackSchemaFromEvent: (t, string, Js.Json.t) => unit = "trackSchemaFromEvent"
|
package/reason/AvoInspector.re
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
type t;
|
|
2
|
-
|
|
3
|
-
[@bs.deriving jsConverter]
|
|
4
|
-
type env = [
|
|
5
|
-
| [@bs.as "dev"] `Dev
|
|
6
|
-
| [@bs.as "staging"] `Staging
|
|
7
|
-
| [@bs.as "prod"] `Prod
|
|
8
|
-
];
|
|
9
|
-
|
|
10
|
-
[@bs.deriving abstract]
|
|
11
|
-
type options = {
|
|
12
|
-
apiKey: string,
|
|
13
|
-
env: string,
|
|
14
|
-
version: string
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
[@bs.new] [@bs.module "avo-inspector"]
|
|
18
|
-
external make: options => t = "AvoInspector";
|
|
19
|
-
|
|
20
|
-
let make = (~apiKey, ~env, ~version, ()) => {
|
|
21
|
-
make(options(~apiKey, ~env=envToJs(env), ~version))
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
[@bs.send]
|
|
25
|
-
external trackSchemaFromEvent: t => string => Js.Json.t => unit = "trackSchemaFromEvent";
|
|
26
|
-
|