@letscooee/web-sdk 6.1.20 → 6.1.21

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@letscooee/web-sdk",
3
- "description": "AI driven Personalized Notifications for Better Customer Engagement",
4
- "version": "6.1.20",
3
+ "description": "Engage uniquely and boost conversions with AI-powered customer journeys driven by real-time intent",
4
+ "version": "6.1.21",
5
5
  "scripts": {
6
6
  "lint": "eslint \"**/**/*.ts\" --max-warnings=0",
7
7
  "integrity": "./scripts/validate-integrity.sh",
@@ -72,7 +72,7 @@
72
72
  "fetch-retry": "^5.0.6",
73
73
  "hex-rgb": "^5.0.0",
74
74
  "hex-to-rgba": "^2.0.1",
75
- "isbot": "^5.1.13",
75
+ "isbot": "^5.1.14",
76
76
  "js-logger": "^1.6.1",
77
77
  "localforage": "^1.10.0",
78
78
  "mustache": "^4.2.0",
package/karma.conf.js DELETED
@@ -1,87 +0,0 @@
1
- // Karma configuration file, see link for more information
2
- // https://karma-runner.github.io/1.0/config/configuration-file.html
3
- const testCode = 'src/**/*.spec.ts';
4
-
5
- module.exports = function (config) {
6
- config.set({
7
- basePath: '',
8
- frameworks: ['jasmine', 'webpack'],
9
- plugins: [
10
- require('karma-jasmine'),
11
- require('karma-chrome-launcher'),
12
- require('karma-jasmine-html-reporter'),
13
- require('karma-junit-reporter'),
14
- require('karma-coverage'),
15
- require('karma-webpack'),
16
- ],
17
- files: [
18
- testCode,
19
- ],
20
- client: {
21
- jasmine: {
22
- // you can add configuration options for Jasmine here
23
- // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
24
- // for example, you can disable the random execution with `random: false`
25
- // or set a specific seed with `seed: 4321`
26
- },
27
- clearContext: false, // leave Jasmine Spec Runner output visible in browser
28
- },
29
- jasmineHtmlReporter: {
30
- suppressAll: true, // removes the duplicated traces
31
- },
32
- junitReporter: {
33
- outputDir: './tmp/test-reports',
34
- useBrowserName: true,
35
- },
36
- coverageReporter: {
37
- dir: require('path').join(__dirname, './tmp/coverage'),
38
- subdir: '.',
39
- reporters: [
40
- {type: 'html'},
41
- {type: 'cobertura'},
42
- {type: 'text-summary'},
43
- ],
44
- },
45
- preprocessors: {
46
- [testCode]: ['webpack', 'coverage'],
47
- },
48
- reporters: ['progress', 'kjhtml'],
49
- port: 9876,
50
- colors: true,
51
- logLevel: config.LOG_INFO,
52
- autoWatch: true,
53
- browsers: ['ChromeHeadlessNoSandbox'],
54
- customLaunchers: {
55
- // https://github.com/karma-runner/karma-chrome-launcher/issues/158#issuecomment-339265457
56
- ChromeHeadlessNoSandbox: {
57
- base: 'ChromeHeadless',
58
- flags: ['--no-sandbox'],
59
- },
60
- },
61
- singleRun: true,
62
- restartOnFileChange: true,
63
- webpack: {
64
- target: ['web'],
65
- module: {
66
- rules: [
67
- {
68
- test: /\.tsx?$/,
69
- use: 'ts-loader',
70
- exclude: /node_modules/,
71
- },
72
- ],
73
- },
74
- resolve: {
75
- extensions: ['.tsx', '.ts', '.js'],
76
- },
77
- },
78
- });
79
-
80
- if (process.env.GITLAB_CI) {
81
- process.env.CHROME_BIN = '/usr/bin/google-chrome';
82
- console.log('ChromeHeadless path', process.env.CHROME_BIN);
83
- config.browsers = ['ChromeHeadlessNoSandbox'];
84
-
85
- config.reporters.push('junit');
86
- }
87
- };
@@ -1,5 +0,0 @@
1
- #!/bin/bash -e
2
-
3
- npm run build:main -- --env cooeeEnv=production
4
- npm run build:shopify -- --env cooeeEnv=production
5
- npm run build:preview -- --env cooeeEnv=production
@@ -1,6 +0,0 @@
1
- #!/bin/bash -e
2
-
3
- aws s3 cp --recursive --exclude "*.LICENSE.txt" --include "*.min.ts" dist/ \
4
- s3://cooee-global-assets/js/snapshot/"$(whoami)"/ \
5
- --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers \
6
- --cache-control="no-cache"
@@ -1,18 +0,0 @@
1
- #!/bin/bash -e
2
- # This script is used to do a snapshot release for production use.
3
- # Ideally, this script shouldn't be used frequently because this allows to test uncommited/unverified
4
- # changes to a production Shopify store.
5
-
6
- npm run build:production
7
-
8
- aws s3 cp --recursive --exclude "*.LICENSE.txt" --include "*.min.ts" dist/ \
9
- s3://cooee-global-assets/js/snapshot/production/ \
10
- --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers \
11
- --cache-control="no-cache"
12
-
13
- aws cloudfront create-invalidation \
14
- --distribution-id E15L6C9HWN93MV \
15
- --paths "/js/snapshot/production/*" \
16
- --no-cli-pager
17
-
18
- echo "URL to use: https://cdn.global.letscooee.com/js/snapshot/production/shopify-sdk.min.js"
@@ -1,4 +0,0 @@
1
- #!/bin/bash -e
2
-
3
- npm run lint
4
- npm run build:production
@@ -1,13 +0,0 @@
1
- module.exports = (env) => {
2
- const config = require('./webpack.config')(env);
3
- config.entry = './src/index-preview.ts';
4
- config.output.library = {
5
- name: 'CooeePreview',
6
- type: 'assign',
7
- export: 'default',
8
- };
9
- config.output.filename = 'sdk-preview.min.js';
10
- config.devServer.open = ['/index-preview.html'];
11
-
12
- return config;
13
- };
@@ -1,13 +0,0 @@
1
- module.exports = (env) => {
2
- const config = require('./webpack.config')(env);
3
- config.entry = './src/shopify/index.ts';
4
- config.output.library = {
5
- name: 'CooeeShopify',
6
- type: 'assign',
7
- export: 'default',
8
- };
9
- config.output.filename = 'shopify-sdk.min.js';
10
- config.devServer.open = ['/index-shopify.html'];
11
-
12
- return config;
13
- };