fleek-track-analytics 0.0.4 → 0.0.6
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.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/init/init.d.ts +2 -3
- package/dist/init/init.js +1 -10
- package/dist/init/init.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { init as trackAnalyticsInit } from './init/init';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
exports.trackAnalyticsInit = void 0;
|
|
4
|
+
var init_1 = require("./init/init");
|
|
5
|
+
Object.defineProperty(exports, "trackAnalyticsInit", { enumerable: true, get: function () { return init_1.init; } });
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oCAAyD;AAAhD,0GAAA,IAAI,OAAsB"}
|
package/dist/init/init.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const init:
|
|
3
|
-
export declare const testFunction: () => Promise<void>;
|
|
1
|
+
import { trackAnalyticsInit } from '../types';
|
|
2
|
+
export declare const init: trackAnalyticsInit;
|
package/dist/init/init.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.init = void 0;
|
|
4
4
|
const lazy_load_tool_1 = require("../analytics-tool/lazy-load-tool");
|
|
5
5
|
const failedAnalyticsReurn = {
|
|
6
6
|
track: () => { },
|
|
@@ -23,13 +23,4 @@ const init = async (params) => {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
exports.init = init;
|
|
26
|
-
const testFunction = async () => {
|
|
27
|
-
console.log(await (0, exports.init)({
|
|
28
|
-
platform: 'REACT_NATIVE',
|
|
29
|
-
App: 'CONSUMER_APP',
|
|
30
|
-
segment: true,
|
|
31
|
-
pixel: false,
|
|
32
|
-
}));
|
|
33
|
-
};
|
|
34
|
-
exports.testFunction = testFunction;
|
|
35
26
|
//# sourceMappingURL=init.js.map
|
package/dist/init/init.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/init/init.ts"],"names":[],"mappings":";;;AAAA,qEAAgE;AAGhE,MAAM,oBAAoB,GAAsB;IAC9C,KAAK,EAAE,GAAG,EAAE,GAAE,CAAC;IACf,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;IAClB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;IAChB,IAAI,EAAE,aAAa;CACpB,CAAC;AAEK,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/init/init.ts"],"names":[],"mappings":";;;AAAA,qEAAgE;AAGhE,MAAM,oBAAoB,GAAsB;IAC9C,KAAK,EAAE,GAAG,EAAE,GAAE,CAAC;IACf,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;IAClB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;IAChB,IAAI,EAAE,aAAa;CACpB,CAAC;AAEK,MAAM,IAAI,GAAuB,KAAK,EAAE,MAAM,EAAE,EAAE;IACvD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAGpB,IAAI,CAAC;QACH,MAAM,gBAAgB,GAAG,MAAM,IAAA,6BAAY,EAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;QACzE,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtB,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,gBAAgB,IAAI,oBAAoB,CAAC;IAClD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;QACnD,OAAO,oBAAoB,CAAC;IAC9B,CAAC;AACH,CAAC,CAAC;AAdW,QAAA,IAAI,QAcf"}
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fleek-track-analytics",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/types.d.ts",
|
|
6
|
-
"repository":
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/joinfleek/fleek-track-analytics.git"
|
|
9
|
+
},
|
|
7
10
|
"author": "yugalbfleek <yugal@joinfleek.com>",
|
|
8
11
|
"license": "MIT",
|
|
9
12
|
"scripts": {
|
|
@@ -11,7 +14,8 @@
|
|
|
11
14
|
"lint": "eslint --ignore-path .gitignore src/**/*.ts",
|
|
12
15
|
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"",
|
|
13
16
|
"test": "jest --passWithNoTests",
|
|
14
|
-
"build": "tsc"
|
|
17
|
+
"build": "tsc",
|
|
18
|
+
"prepublish": "lint && build"
|
|
15
19
|
},
|
|
16
20
|
"dependencies": {
|
|
17
21
|
"@segment/analytics-next": "^1.66.0",
|