@blotoutio/providers-attentive-sdk 0.42.2

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/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # providers-attentive-sdk
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build providers-attentive-sdk` to build the library.
8
+
9
+ ## Running unit tests
10
+
11
+ Run `nx test providers-attentive-sdk` to execute the unit tests via [Jest](https://jestjs.io).
package/index.cjs.js ADDED
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ const packageName = 'attentive';
4
+
5
+ const sdkVersion = "0.42.2" ;
6
+ const tag = () => {
7
+ let sdkStatus = 'none';
8
+ try {
9
+ const tagScript = document.querySelector('script[src*="dtag.js"]');
10
+ if (tagScript) {
11
+ sdkStatus = 'script';
12
+ }
13
+ if (window.__attnLoaded) {
14
+ sdkStatus = 'loaded';
15
+ }
16
+ }
17
+ catch {
18
+ // do nothing
19
+ }
20
+ return {
21
+ sdkVersion,
22
+ sdkStatus,
23
+ };
24
+ };
25
+
26
+ // eslint-disable-next-line @nx/enforce-module-boundaries
27
+ const data = {
28
+ name: packageName,
29
+ tag,
30
+ };
31
+ try {
32
+ if (window) {
33
+ if (!window.edgetagProviders) {
34
+ window.edgetagProviders = [];
35
+ }
36
+ window.edgetagProviders.push(data);
37
+ }
38
+ }
39
+ catch {
40
+ // No window
41
+ }
42
+
43
+ module.exports = data;
package/index.js ADDED
@@ -0,0 +1,46 @@
1
+ var ProvidersAttentiveSdk = (function () {
2
+ 'use strict';
3
+
4
+ const packageName = 'attentive';
5
+
6
+ const sdkVersion = "0.42.2" ;
7
+ const tag = () => {
8
+ let sdkStatus = 'none';
9
+ try {
10
+ const tagScript = document.querySelector('script[src*="dtag.js"]');
11
+ if (tagScript) {
12
+ sdkStatus = 'script';
13
+ }
14
+ if (window.__attnLoaded) {
15
+ sdkStatus = 'loaded';
16
+ }
17
+ }
18
+ catch {
19
+ // do nothing
20
+ }
21
+ return {
22
+ sdkVersion,
23
+ sdkStatus,
24
+ };
25
+ };
26
+
27
+ // eslint-disable-next-line @nx/enforce-module-boundaries
28
+ const data = {
29
+ name: packageName,
30
+ tag,
31
+ };
32
+ try {
33
+ if (window) {
34
+ if (!window.edgetagProviders) {
35
+ window.edgetagProviders = [];
36
+ }
37
+ window.edgetagProviders.push(data);
38
+ }
39
+ }
40
+ catch {
41
+ // No window
42
+ }
43
+
44
+ return data;
45
+
46
+ })();
package/index.mjs ADDED
@@ -0,0 +1,41 @@
1
+ const packageName = 'attentive';
2
+
3
+ const sdkVersion = "0.42.2" ;
4
+ const tag = () => {
5
+ let sdkStatus = 'none';
6
+ try {
7
+ const tagScript = document.querySelector('script[src*="dtag.js"]');
8
+ if (tagScript) {
9
+ sdkStatus = 'script';
10
+ }
11
+ if (window.__attnLoaded) {
12
+ sdkStatus = 'loaded';
13
+ }
14
+ }
15
+ catch {
16
+ // do nothing
17
+ }
18
+ return {
19
+ sdkVersion,
20
+ sdkStatus,
21
+ };
22
+ };
23
+
24
+ // eslint-disable-next-line @nx/enforce-module-boundaries
25
+ const data = {
26
+ name: packageName,
27
+ tag,
28
+ };
29
+ try {
30
+ if (window) {
31
+ if (!window.edgetagProviders) {
32
+ window.edgetagProviders = [];
33
+ }
34
+ window.edgetagProviders.push(data);
35
+ }
36
+ }
37
+ catch {
38
+ // No window
39
+ }
40
+
41
+ export { data as default };
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@blotoutio/providers-attentive-sdk",
3
+ "version": "0.42.2",
4
+ "description": "Attentive Browser SDK for EdgeTag",
5
+ "author": "Blotout",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/blotoutio/edgetag-sdk",
8
+ "publishConfig": {
9
+ "access": "public"
10
+ },
11
+ "main": "./index.cjs.js",
12
+ "module": "./index.mjs",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/blotoutio/edgetag-sdk.git"
16
+ },
17
+ "files": [
18
+ "index.js",
19
+ "index.cjs.js",
20
+ "index.mjs",
21
+ "package.json",
22
+ "README.md"
23
+ ]
24
+ }