mqfunctions
Advanced tools
Comparing version 0.2.0 to 0.2.1
/*! | ||
Mqfunctions.js v0.2.0 | ||
Mqfunctions.js v0.2.1 | ||
https://github.com/kimulaco/mqfunctions | ||
@@ -4,0 +4,0 @@ Released under the MIT License. |
/*! | ||
Mqfunctions.js v0.2.0 | ||
Mqfunctions.js v0.2.1 | ||
https://github.com/kimulaco/mqfunctions | ||
@@ -4,0 +4,0 @@ Released under the MIT License. |
/*! | ||
Mqfunctions.js v0.2.0 | ||
Mqfunctions.js v0.2.1 | ||
https://github.com/kimulaco/mqfunctions | ||
@@ -4,0 +4,0 @@ Released under the MIT License. |
/*! | ||
Mqfunctions.js v0.2.0 | ||
Mqfunctions.js v0.2.1 | ||
https://github.com/kimulaco/mqfunctions | ||
@@ -4,0 +4,0 @@ Released under the MIT License. |
@@ -1,7 +0,7 @@ | ||
export declare type HandlerEvent = { | ||
export type HandlerEvent = { | ||
readonly matches: boolean; | ||
readonly media: string; | ||
}; | ||
export declare type HandlerFunction = (event: HandlerEvent) => void; | ||
export declare type MqFunctions = { | ||
export type HandlerFunction = (event: HandlerEvent) => void; | ||
export type MqFunctions = { | ||
functions: Map<string, HandlerFunction>; | ||
@@ -8,0 +8,0 @@ readonly mql: MediaQueryList; |
{ | ||
"name": "mqfunctions", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"engines": { | ||
"node": ">=18", | ||
"npm": ">=9" | ||
}, | ||
"type": "module", | ||
"description": "JavaScript library to manage matchMedia handlers.", | ||
@@ -36,40 +41,40 @@ "keywords": [ | ||
"lint:eslint": "eslint .", | ||
"lint:prettier": "prettier --write .", | ||
"test:unit": "jest -c jest.unit.config.js --verbose --coverage", | ||
"test:e2e": "jest -c jest.e2e.config.js --verbose", | ||
"pretest:e2e": "node scripts/setupE2E.js", | ||
"lint:prettier": "prettier --check .", | ||
"test:unit": "jest -c jest.unit.config.cjs --verbose --coverage", | ||
"test:e2e": "jest -c jest.e2e.config.cjs --verbose", | ||
"pretest:e2e": "node scripts/setupE2E.cjs", | ||
"test:serve": "serve test/fixtures -p 3000" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.4.0" | ||
"tslib": "^2.6.2" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-commonjs": "^22.0.2", | ||
"@rollup/plugin-node-resolve": "^14.1.0", | ||
"@rollup/plugin-typescript": "^8.5.0", | ||
"@types/expect-puppeteer": "^5.0.1", | ||
"@types/jest": "^29.0.3", | ||
"@types/jest-environment-puppeteer": "^5.0.2", | ||
"@types/puppeteer": "^5.4.6", | ||
"@typescript-eslint/eslint-plugin": "^5.38.1", | ||
"@typescript-eslint/parser": "^5.38.1", | ||
"eslint": "^8.24.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"jest": "^29.0.3", | ||
"jest-environment-jsdom": "^29.0.3", | ||
"@rollup/plugin-babel": "^6.0.3", | ||
"@rollup/plugin-commonjs": "^25.0.4", | ||
"@rollup/plugin-node-resolve": "^15.2.1", | ||
"@rollup/plugin-terser": "^0.4.3", | ||
"@rollup/plugin-typescript": "^11.1.4", | ||
"@types/expect-puppeteer": "^5.0.4", | ||
"@types/jest": "^29.5.5", | ||
"@types/jest-environment-puppeteer": "^5.0.4", | ||
"@types/puppeteer": "^5.4.7", | ||
"@typescript-eslint/eslint-plugin": "^6.7.3", | ||
"@typescript-eslint/parser": "^6.7.3", | ||
"eslint": "^8.50.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"jest-matchmedia-mock": "^1.1.0", | ||
"jest-puppeteer": "^6.1.1", | ||
"jest-puppeteer": "^9.0.0", | ||
"lodash.camelcase": "^4.3.0", | ||
"lodash.upperfirst": "^4.3.1", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^2.7.1", | ||
"puppeteer": "^18.0.5", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.79.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"serve": "^14.0.1", | ||
"ts-jest": "^29.0.2", | ||
"typescript": "^4.8.3" | ||
"prettier": "^3.0.3", | ||
"puppeteer": "^21.3.5", | ||
"rimraf": "^5.0.4", | ||
"rollup": "^3.29.3", | ||
"serve": "^14.2.1", | ||
"ts-jest": "^29.1.1", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
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
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
40453
Yes
Updatedtslib@^2.6.2