lucia-sdk 0.0.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/CHANGELOG.md +3 -0
- package/README.md +29 -0
- package/dist/README.md +29 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +2 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/package.json +69 -0
- package/dist/sdk/index.d.ts +6 -0
- package/dist/umd/lucia-sdk-0.0.1.min.js +1 -0
- package/dist/umd/lucia-sdk-latest.min.js +1 -0
- package/package.json +69 -0
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[](http://commitizen.github.io/cz-cli/)
|
|
2
|
+
|
|
3
|
+
# Lucia JavaScript Library
|
|
4
|
+
|
|
5
|
+
The Lucia JavaScript Library is a set of methods attached to a global `LuciaSDK` object intended to be used by websites wishing to send data to Lucia Ad Attribution.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
### Install via npm
|
|
10
|
+
|
|
11
|
+
You can use `npm` or `yarn` to install this library:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
npm install lucia-sdk
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
or
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
yarn add lucia-sdk
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Install via CDN
|
|
24
|
+
|
|
25
|
+
You can add the following script to use global `LuciaSDK` object.
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
<script src="https://cdn.luciaprotocol.com/lucia-sdk-latest.min.js"></script>
|
|
29
|
+
```
|
package/dist/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[](http://commitizen.github.io/cz-cli/)
|
|
2
|
+
|
|
3
|
+
# Lucia JavaScript Library
|
|
4
|
+
|
|
5
|
+
The Lucia JavaScript Library is a set of methods attached to a global `LuciaSDK` object intended to be used by websites wishing to send data to Lucia Ad Attribution.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
### Install via npm
|
|
10
|
+
|
|
11
|
+
You can use `npm` or `yarn` to install this library:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
npm install lucia-sdk
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
or
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
yarn add lucia-sdk
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Install via CDN
|
|
24
|
+
|
|
25
|
+
You can add the following script to use global `LuciaSDK` object.
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
<script src="https://cdn.luciaprotocol.com/lucia-sdk-latest.min.js"></script>
|
|
29
|
+
```
|
package/dist/index.d.ts
ADDED
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var i=function(){function i(i,n){this.apiKey=i,this.clientId=n}return i.prototype.debug=function(){console.log("debug",{apiKey:this.apiKey,clientId:this.clientId})},i}(),n=null,t={init:function(t,e){n=new i(t,e)},debug:function(){if(!n)throw new Error("SDK is not initialized");return n.debug()}};export{t as default};
|
|
2
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var i=function(){function i(i,t){this.apiKey=i,this.clientId=t}return i.prototype.debug=function(){console.log("debug",{apiKey:this.apiKey,clientId:this.clientId})},i}(),t=null,n={init:function(n,e){t=new i(n,e)},debug:function(){if(!t)throw new Error("SDK is not initialized");return t.debug()}};module.exports=n;
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lucia-sdk",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Lucia JavaScript Library",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.es.js",
|
|
7
|
+
"umd": "dist/umd",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "rollup -c",
|
|
13
|
+
"test": "jest --passWithNoTests",
|
|
14
|
+
"package:clean": "rm -rf dist",
|
|
15
|
+
"package:copy": "cp package.json dist && cp README.md dist",
|
|
16
|
+
"package:build": "yarn package:clean && rollup -c && yarn package:copy",
|
|
17
|
+
"package:release": "release-it",
|
|
18
|
+
"package:publish": "yarn package:build && yarn publish",
|
|
19
|
+
"tsc": "tsc --pretty --noEmit",
|
|
20
|
+
"prepare": "husky install",
|
|
21
|
+
"validate": "npm-run-all --parallel lint tsc",
|
|
22
|
+
"commitlint": "commitlint",
|
|
23
|
+
"lint": "eslint . --ext .js,.ts",
|
|
24
|
+
"lint:fix": "yarn lint --fix",
|
|
25
|
+
"format": "npx prettier --config .prettierrc \"**/*.{css,scss,js,ts,md}\" --write",
|
|
26
|
+
"format:test": "npx prettier --config .prettierrc \"**/*.{css,scss,js,ts,md}\" -l"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@commitlint/config-conventional": "^17.4.2",
|
|
30
|
+
"@release-it/conventional-changelog": "^8.0.1",
|
|
31
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
32
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
33
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
34
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
35
|
+
"@types/jest": "^29.2.4",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.50.0",
|
|
37
|
+
"@typescript-eslint/parser": "^5.50.0",
|
|
38
|
+
"babel-eslint": "^10.1.0",
|
|
39
|
+
"commitlint": "^17.4.2",
|
|
40
|
+
"eslint": "^8.33.0",
|
|
41
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
42
|
+
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
43
|
+
"eslint-config-prettier": "^8.6.0",
|
|
44
|
+
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
45
|
+
"eslint-plugin-filenames": "^1.3.2",
|
|
46
|
+
"eslint-plugin-import": "^2.27.5",
|
|
47
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
48
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
49
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
50
|
+
"eslint-plugin-sort-destructure-keys": "^1.4.0",
|
|
51
|
+
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
52
|
+
"eslint-plugin-unicorn": "^45.0.2",
|
|
53
|
+
"eslint-plugin-unused-imports": "^2.0.0",
|
|
54
|
+
"husky": "^8.0.3",
|
|
55
|
+
"jest": "^29.3.1",
|
|
56
|
+
"jest-environment-jsdom": "^29.4.1",
|
|
57
|
+
"lint-staged": "^13.1.0",
|
|
58
|
+
"npm-run-all": "^4.1.5",
|
|
59
|
+
"release-it": "^17.4.0",
|
|
60
|
+
"rollup": "^2.70.1",
|
|
61
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
62
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
63
|
+
"ts-jest": "^29.0.3",
|
|
64
|
+
"typescript": "^4.9.4"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {},
|
|
67
|
+
"peerDependencies": {},
|
|
68
|
+
"resolutions": {}
|
|
69
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(e="undefined"!=typeof globalThis?globalThis:e||self).LuciaSDK=i()}(this,(function(){"use strict";var e=function(){function e(e,i){this.apiKey=e,this.clientId=i}return e.prototype.debug=function(){console.log("debug",{apiKey:this.apiKey,clientId:this.clientId})},e}(),i=null;return{init:function(n,t){i=new e(n,t)},debug:function(){if(!i)throw new Error("SDK is not initialized");return i.debug()}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(e="undefined"!=typeof globalThis?globalThis:e||self).LuciaSDK=i()}(this,(function(){"use strict";var e=function(){function e(e,i){this.apiKey=e,this.clientId=i}return e.prototype.debug=function(){console.log("debug",{apiKey:this.apiKey,clientId:this.clientId})},e}(),i=null;return{init:function(n,t){i=new e(n,t)},debug:function(){if(!i)throw new Error("SDK is not initialized");return i.debug()}}}));
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lucia-sdk",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Lucia JavaScript Library",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.es.js",
|
|
7
|
+
"umd": "dist/umd",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "rollup -c",
|
|
13
|
+
"test": "jest --passWithNoTests",
|
|
14
|
+
"package:clean": "rm -rf dist",
|
|
15
|
+
"package:copy": "cp package.json dist && cp README.md dist",
|
|
16
|
+
"package:build": "yarn package:clean && rollup -c && yarn package:copy",
|
|
17
|
+
"package:release": "release-it",
|
|
18
|
+
"package:publish": "yarn package:build && yarn publish",
|
|
19
|
+
"tsc": "tsc --pretty --noEmit",
|
|
20
|
+
"prepare": "husky install",
|
|
21
|
+
"validate": "npm-run-all --parallel lint tsc",
|
|
22
|
+
"commitlint": "commitlint",
|
|
23
|
+
"lint": "eslint . --ext .js,.ts",
|
|
24
|
+
"lint:fix": "yarn lint --fix",
|
|
25
|
+
"format": "npx prettier --config .prettierrc \"**/*.{css,scss,js,ts,md}\" --write",
|
|
26
|
+
"format:test": "npx prettier --config .prettierrc \"**/*.{css,scss,js,ts,md}\" -l"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@commitlint/config-conventional": "^17.4.2",
|
|
30
|
+
"@release-it/conventional-changelog": "^8.0.1",
|
|
31
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
32
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
33
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
34
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
35
|
+
"@types/jest": "^29.2.4",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.50.0",
|
|
37
|
+
"@typescript-eslint/parser": "^5.50.0",
|
|
38
|
+
"babel-eslint": "^10.1.0",
|
|
39
|
+
"commitlint": "^17.4.2",
|
|
40
|
+
"eslint": "^8.33.0",
|
|
41
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
42
|
+
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
43
|
+
"eslint-config-prettier": "^8.6.0",
|
|
44
|
+
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
45
|
+
"eslint-plugin-filenames": "^1.3.2",
|
|
46
|
+
"eslint-plugin-import": "^2.27.5",
|
|
47
|
+
"eslint-plugin-jest": "^27.2.1",
|
|
48
|
+
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
49
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
50
|
+
"eslint-plugin-sort-destructure-keys": "^1.4.0",
|
|
51
|
+
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
52
|
+
"eslint-plugin-unicorn": "^45.0.2",
|
|
53
|
+
"eslint-plugin-unused-imports": "^2.0.0",
|
|
54
|
+
"husky": "^8.0.3",
|
|
55
|
+
"jest": "^29.3.1",
|
|
56
|
+
"jest-environment-jsdom": "^29.4.1",
|
|
57
|
+
"lint-staged": "^13.1.0",
|
|
58
|
+
"npm-run-all": "^4.1.5",
|
|
59
|
+
"release-it": "^17.4.0",
|
|
60
|
+
"rollup": "^2.70.1",
|
|
61
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
62
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
63
|
+
"ts-jest": "^29.0.3",
|
|
64
|
+
"typescript": "^4.9.4"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {},
|
|
67
|
+
"peerDependencies": {},
|
|
68
|
+
"resolutions": {}
|
|
69
|
+
}
|