@coveo/relay 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/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # relay
2
+
3
+ A library to send analytics events using QProtocol.
4
+
5
+ ## Setup
6
+
7
+ 1. Contact Alan Clarke for access to `@qubit` and `@qutics` registeries.
8
+ 2. Run `npm run qubit:login`. The command will adjust your `.npmrc` to let you install packages hosted on Qubit's private registeries.
9
+ 3. Run `npm run setup`.
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Relay</title>
7
+
8
+ <script type="module" crossorigin src="/relay.js"></script>
9
+ </head>
10
+ <body></body>
11
+ </html>
package/dist/relay.js ADDED
@@ -0,0 +1 @@
1
+ const s=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver(e=>{for(const r of e)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function i(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerpolicy&&(r.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?r.credentials="include":e.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(e){if(e.ep)return;e.ep=!0;const r=i(e);fetch(e.href,r)}};s();
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@coveo/relay",
3
+ "version": "0.0.1",
4
+ "description": "A library to send analytics events using QProtocol.",
5
+ "main": "dist/relay.js",
6
+ "files": [
7
+ "dist/"
8
+ ],
9
+ "scripts": {
10
+ "setup": "npm i && husky install",
11
+ "setup:ci": "npm ci",
12
+ "dev": "vite",
13
+ "build": "tsc && vite build",
14
+ "preview": "vite preview",
15
+ "test": "jest",
16
+ "test:watch": "jest --watch --no-cache",
17
+ "lint": "prettier --ignore-path .gitignore --write .",
18
+ "lint:check": "prettier --ignore-path .gitignore --check .",
19
+ "qubit:login": "npx qubit-cli login",
20
+ "bump-version-and-push": "node ./scripts/bump-version.js",
21
+ "version:bump": "standard-version",
22
+ "npm:ci:login": "node ./scripts/npm-login.js",
23
+ "npm:publish:alpha": "npm publish --verbose --access public --tag alpha",
24
+ "npm:tag:beta": "node ./scripts/update-npm-tag.js -- beta",
25
+ "npm:tag:latest": "node ./scripts/update-npm-tag.js -- latest",
26
+ "invalidate:cloudfront": "node ./scripts/invalidate-cloudfront.js"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/coveo/relay.git"
31
+ },
32
+ "keywords": [
33
+ "Coveo",
34
+ "analytics",
35
+ "qprotocol"
36
+ ],
37
+ "author": "Coveo",
38
+ "license": "Apache-2.0",
39
+ "bugs": {
40
+ "url": "https://github.com/coveo/relay/issues"
41
+ },
42
+ "homepage": "https://github.com/coveo/relay#readme",
43
+ "devDependencies": {
44
+ "@types/jest": "^27.4.0",
45
+ "aws-sdk": "^2.1066.0",
46
+ "husky": "^7.0.0",
47
+ "jest": "^27.4.7",
48
+ "lint-staged": "^12.2.1",
49
+ "prettier": "^2.5.1",
50
+ "qubit-cli": "^1.77.9",
51
+ "standard-version": "^9.3.2",
52
+ "ts-jest": "^27.1.3",
53
+ "typescript": "^4.5.4",
54
+ "vite": "^2.7.12"
55
+ },
56
+ "dependencies": {
57
+ "@qubit/biscotti": "^5.19.1",
58
+ "@qubit/jolt": "^7.68.2",
59
+ "@qubit/payment-urls": "^1.8.1",
60
+ "cookieman": "^1.3.0",
61
+ "loglevel": "^1.8.0",
62
+ "really-unique-id": "^1.2.2",
63
+ "uv-api": "^4.3.0"
64
+ },
65
+ "lint-staged": {
66
+ "*.{js,ts,html,md,json}": "prettier --write"
67
+ }
68
+ }