@ada-support/embed2 1.0.57 → 1.0.61

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.57",
3
+ "version": "1.0.61",
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 77",
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,7 +70,7 @@
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",
@@ -108,6 +109,7 @@
108
109
  "html-webpack-plugin": "^5.5.0",
109
110
  "json-stable-stringify": "^1.0.1",
110
111
  "lodash.debounce": "^4.0.8",
112
+ "lodash.memoize": "^4.1.2",
111
113
  "preact": "10.4.5",
112
114
  "typescript": "^4.5.5",
113
115
  "uniqid": "^5.3.0",