@ada-support/embed2 1.0.58 → 1.0.62

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.
@@ -1,3 +1,6 @@
1
+ /// <reference types="lodash" />
2
+ export declare const DEFAULT_LOG_SAMPLE_RATE = 0.01;
3
+ export declare const shouldLog: ((sampleRate?: number) => boolean) & import("lodash").MemoizedFunction;
1
4
  /**
2
5
  * Sends log to Datadog
3
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/embed2",
3
- "version": "1.0.58",
3
+ "version": "1.0.62",
4
4
  "description": "",
5
5
  "main": "dist/npm-entry",
6
6
  "typings": "dist/npm-entry/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "build:modern": "NODE_ENV=production BROWSERSLIST_ENV=modern npx webpack --config webpack.prod.ts",
11
11
  "build:npm-types": "tsc --project tsconfig.npm.json --declaration --outDir dist/npm-entry --emitDeclarationOnly --allowJs false --checkJs false",
12
12
  "build:npm": "./npm-build.sh",
13
- "lint": "tsc --noEmit --strict false && ./node_modules/.bin/eslint --report-unused-disable-directives --ext .js,.jsx,.ts,.tsx . --max-warnings 80",
13
+ "lint": "tsc --noEmit --strict false && ./node_modules/.bin/eslint --report-unused-disable-directives --ext .js,.jsx,.ts,.tsx . --max-warnings 74",
14
14
  "lint:fix": "yarn lint --fix",
15
15
  "deploy-legacy": "TS_NODE_PROJECT=wp.tsconfig.json NODE_ENV=production BROWSERSLIST_ENV=legacy npx webpack --config webpack.prod.ts",
16
16
  "deploy-modern": "TS_NODE_PROJECT=wp.tsconfig.json NODE_ENV=production BROWSERSLIST_ENV=modern npx webpack --config webpack.prod.ts",
@@ -54,11 +54,12 @@
54
54
  "author": "",
55
55
  "license": "ISC",
56
56
  "devDependencies": {
57
- "@ada-support/eslint-config-ada": "^1.1.5",
57
+ "@ada-support/eslint-config-ada": "^1.2.0",
58
58
  "@types/enzyme": "^3.10.11",
59
59
  "@types/jest": "^27.0.2",
60
60
  "@types/json-stable-stringify": "^1.0.33",
61
61
  "@types/lodash.debounce": "^4.0.6",
62
+ "@types/lodash.memoize": "^4.1.6",
62
63
  "@types/node": "^16.7.1",
63
64
  "@types/uniqid": "^5.3.2",
64
65
  "@types/webpack": "^5.28.0",
@@ -69,10 +70,11 @@
69
70
  "depcheck": "^1.4.3",
70
71
  "enzyme": "^3.11.0",
71
72
  "enzyme-adapter-preact-pure": "^2.2.0",
72
- "eslint": "^8.6.0",
73
+ "eslint": "^8.8.0",
73
74
  "eslint-plugin-chai-friendly": "^0.7.2",
74
75
  "eslint-plugin-compat": "^3.13.0",
75
76
  "eslint-plugin-cypress": "^2.11.3",
77
+ "eslint-plugin-sonarjs": "^0.11.0",
76
78
  "husky": "^7.0.0",
77
79
  "jest": "^27.3.1",
78
80
  "jest-localstorage-mock": "^2.4.0",
@@ -108,6 +110,7 @@
108
110
  "html-webpack-plugin": "^5.5.0",
109
111
  "json-stable-stringify": "^1.0.1",
110
112
  "lodash.debounce": "^4.0.8",
113
+ "lodash.memoize": "^4.1.2",
111
114
  "preact": "10.4.5",
112
115
  "typescript": "^4.5.5",
113
116
  "uniqid": "^5.3.0",