Comparing version 6.0.8 to 7.0.0
@@ -42,4 +42,3 @@ "use strict"; | ||
var isRunningInBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; // eslint-disable-next-line @typescript-eslint/ban-types, no-use-before-define | ||
// eslint-disable-next-line @typescript-eslint/ban-types, no-use-before-define | ||
var isObject = _isobject["default"]; | ||
@@ -138,3 +137,3 @@ | ||
if (isRunningInBrowser && data instanceof Event) { | ||
if (typeof Event !== 'undefined' && data instanceof Event) { | ||
result = (0, _domEvent.extractEventHiddenProperties)(result); | ||
@@ -141,0 +140,0 @@ wasMutated = true; |
@@ -25,4 +25,3 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
import memoize from 'memoizerific'; | ||
import { extractEventHiddenProperties } from './dom-event'; | ||
var isRunningInBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; // eslint-disable-next-line @typescript-eslint/ban-types, no-use-before-define | ||
import { extractEventHiddenProperties } from './dom-event'; // eslint-disable-next-line @typescript-eslint/ban-types, no-use-before-define | ||
@@ -119,3 +118,3 @@ var isObject = isObjectAny; | ||
if (isRunningInBrowser && data instanceof Event) { | ||
if (typeof Event !== 'undefined' && data instanceof Event) { | ||
result = extractEventHiddenProperties(result); | ||
@@ -122,0 +121,0 @@ wasMutated = true; |
{ | ||
"name": "telejson", | ||
"version": "6.0.8", | ||
"version": "7.0.0", | ||
"description": "", | ||
@@ -23,14 +23,14 @@ "keywords": [ | ||
}, | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist/*" | ||
"dist/**/*", | ||
"README.md", | ||
"*.js", | ||
"*.d.ts" | ||
], | ||
"license": "MIT", | ||
"main": "dist/cjs/index.js", | ||
"types": "dist/types/index.d.ts", | ||
"module": "dist/esm/index.js", | ||
"scripts": { | ||
"build:cjs": "babel src --out-dir dist/cjs --extensions \".ts\"", | ||
"build:esm": "BABEL_ESM=true babel src --out-dir dist/esm --extensions \".ts\"", | ||
"build:tsc": "tsc --emitDeclarationOnly", | ||
"build": "yarn build:cjs && yarn build:esm && yarn build:tsc", | ||
"build": "tsup", | ||
"lint": "eslint src --ext .js,.ts", | ||
@@ -43,12 +43,25 @@ "prepublish": "yarn build", | ||
"eslintConfig": { | ||
"env": { | ||
"browser": true | ||
}, | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"extends": [ | ||
"@storybook/eslint-config-storybook" | ||
], | ||
"env": { | ||
"browser": true | ||
} | ||
] | ||
}, | ||
"jest": {}, | ||
"dependencies": { | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.20.0", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@storybook/eslint-config-storybook": "^3.1.2", | ||
"@types/is-function": "^1.0.0", | ||
"@types/jest": "^26.0.22", | ||
"@types/lodash-es": "^4.17.6", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-jest": "^26.6.3", | ||
"common-tags": "^1.8.0", | ||
"eslint": "^7.23.0", | ||
"global": "^4.4.0", | ||
@@ -59,20 +72,7 @@ "is-function": "^1.0.2", | ||
"isobject": "^4.0.0", | ||
"lodash": "^4.17.21", | ||
"memoizerific": "^1.11.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.13.14", | ||
"@babel/core": "^7.13.14", | ||
"@babel/preset-env": "^7.13.12", | ||
"@babel/preset-typescript": "^7.13.0", | ||
"@storybook/eslint-config-storybook": "^3.0.0", | ||
"@types/jest": "^26.0.22", | ||
"@types/lodash": "^4.14.168", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-jest": "^26.6.3", | ||
"common-tags": "^1.8.0", | ||
"eslint": "^7.23.0", | ||
"jest": "^26.6.3", | ||
"lodash-es": "^4.17.21", | ||
"memoizerific": "^1.11.3", | ||
"prettier": "^2.2.1", | ||
"regenerator-runtime": "^0.13.7", | ||
"tsup": "^6.2.2", | ||
"typescript": "^4.2.3" | ||
@@ -79,0 +79,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
170028
0
21
4390
21
6
13
- Removed@types/is-function@^1.0.0
- Removedglobal@^4.4.0
- Removedis-function@^1.0.2
- Removedis-regex@^1.1.2
- Removedis-symbol@^1.0.3
- Removedisobject@^4.0.0
- Removedlodash@^4.17.21
- Removedmemoizerific@^1.11.3
- Removed@types/is-function@1.0.3(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddom-walk@0.1.2(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedglobal@4.4.0(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedis-function@1.0.2(transitive)
- Removedis-regex@1.1.4(transitive)
- Removedis-symbol@1.0.4(transitive)
- Removedisobject@4.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmap-or-similar@1.5.0(transitive)
- Removedmemoizerific@1.11.3(transitive)
- Removedmin-document@2.19.0(transitive)
- Removedprocess@0.11.10(transitive)
- Removedset-function-length@1.2.2(transitive)