mqfunctions
Advanced tools
Comparing version 0.1.0-alpha.3 to 0.1.0-alpha.4
@@ -1,2 +0,2 @@ | ||
import type { MqFunctions, HandlerFunction } from './MqFunctions'; | ||
import type { MqFunctions, HandlerFunction } from './types/MqFunctions'; | ||
export declare const addMqFunction: (mqf: MqFunctions, id: string, fn: HandlerFunction) => void; |
@@ -1,2 +0,2 @@ | ||
import type { MqFunctions } from './MqFunctions'; | ||
import type { MqFunctions } from './types/MqFunctions'; | ||
export declare const createMqFunctions: (query: string) => MqFunctions; |
@@ -1,8 +0,5 @@ | ||
export type { MqFunctions, HandlerEvent, HandlerFunction } from './MqFunctions'; | ||
declare const _default: { | ||
createMqFunctions: (query: string) => import("./MqFunctions").MqFunctions; | ||
addMqFunction: (mqf: import("./MqFunctions").MqFunctions, id: string, fn: import("./MqFunctions").HandlerFunction) => void; | ||
removeMqFunction: (mqf: import("./MqFunctions").MqFunctions, id: string) => void; | ||
runMqFunction: (mqf: import("./MqFunctions").MqFunctions, id: string) => void; | ||
}; | ||
export default _default; | ||
export { createMqFunctions } from './createMqFunctions'; | ||
export { addMqFunction } from './addMqFunction'; | ||
export { removeMqFunction } from './removeMqFunction'; | ||
export { runMqFunction } from './runMqFunction'; | ||
export type { MqFunctions, HandlerEvent, HandlerFunction, } from './types/MqFunctions'; |
/*! | ||
Mqfunctions.js v0.1.0-alpha.3 | ||
Mqfunctions.js v0.1.0-alpha.4 | ||
https://github.com/kimulaco/mqfunctions | ||
@@ -82,2 +82,2 @@ Released under the MIT License. | ||
export { addMqFunction, createMqFunctions, removeMqFunction, runMqFunction }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZXMuanMiLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVNcUZ1bmN0aW9ucy50cyIsIi4uL3NyYy91dGlscy9ldmVudExpc3RlbmVyLnRzIiwiLi4vc3JjL2FkZE1xRnVuY3Rpb24udHMiLCIuLi9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VLEtBQVU7SUFDbEUsSUFBSSxDQUFDLEVBQUUsRUFBRTtBQUNQLFFBQUEsTUFBTSxJQUFJLEtBQUssQ0FBQyxzQkFBc0IsQ0FBQyxDQUFBO0FBQ3hDLEtBQUE7SUFDRCxJQUFJLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEVBQUU7QUFDMUIsUUFBQSxNQUFNLElBQUksS0FBSyxDQUFDLEdBQUcsRUFBRSxDQUFBLGVBQUEsQ0FBaUIsQ0FBQyxDQUFBO0FBQ3hDLEtBQUE7SUFFRCxNQUFNLEVBQUUsR0FBRyxHQUFHLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsQ0FBQTtBQUNoQyxJQUFBLE1BQU0sYUFBYSxHQUFHLENBQUMsSUFBa0IsS0FBVTtBQUNqRCxRQUFBLElBQUksT0FBTyxFQUFFLEtBQUssVUFBVSxFQUFFO1lBQzVCLEVBQUUsQ0FBQyxJQUFJLENBQUMsQ0FBQTtBQUNULFNBQUE7QUFDSCxLQUFDLENBQUE7QUFFRCxJQUFBLGFBQWEsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUE7QUFDeEI7Ozs7In0= |
/*! | ||
Mqfunctions.js v0.1.0-alpha.3 | ||
Mqfunctions.js v0.1.0-alpha.4 | ||
https://github.com/kimulaco/mqfunctions | ||
@@ -83,3 +83,3 @@ Released under the MIT License. | ||
var index = { | ||
var mqfunctions = { | ||
createMqFunctions, | ||
@@ -91,3 +91,3 @@ addMqFunction, | ||
module.exports = index; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVNcUZ1bmN0aW9ucy50cyIsIi4uL3NyYy91dGlscy9ldmVudExpc3RlbmVyLnRzIiwiLi4vc3JjL2FkZE1xRnVuY3Rpb24udH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|
/*! | ||
Mqfunctions.js v0.1.0-alpha.3 | ||
Mqfunctions.js v0.1.0-alpha.4 | ||
https://github.com/kimulaco/mqfunctions | ||
@@ -84,3 +84,3 @@ Released under the MIT License. | ||
var index = { | ||
var mqfunctions = { | ||
createMqFunctions, | ||
@@ -92,5 +92,5 @@ addMqFunction, | ||
return index; | ||
return mqfunctions; | ||
})(); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXFmdW5jdGlvbnMuanMiLCJzb3VyY2VzIjpbIi4uL3NyYy9jcmVhdGVNcUZ1bmN0aW9ucy50cyIsIi4uL3NyYy91dGlscy9ldmVudExpc3RlbmVyLnRzIiwiLi4vc3JjL2FkZE1xRnVuY3Rpb24udHMiLCIuLi9zcmMvcmVtb3ZlTXFGdW5jdGlvbi50cyIsIi4uL3NyYy9ydW5NcUZ1bmN0aW9uLnRzIiwiLi4vc3JjL2luZGV4LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB0eXBlIHsgTXFGdW5jdGlvbnMsIEhhbmRsZXJGdW5jdGlvbiwgSGFuZGxlckV2ZW50IH0gZnJvbSAnLi9NcUZ1bmN0aW9ucydcblxuZXhwb3J0IGNvbnN0IGNyZWF0ZU1xRnVuY3Rpb25zID0gKHF1ZXJ5OiBzdHJpbmcpOiBNcUZ1bmN0aW9ucyA9PiB7XG4gIGlmICghcXVlcnkpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoJ3JlcXVpcmVkIHF1ZXJ5JylcbiAgfVxuXG4gIGNvbnN0IGZ1bmN0aW9ucyA9IG5ldyBNYXA8c3RyaW5nLCBIYW5kbGVyRnVuY3Rpb24+KClcblxuICByZXR1cm4ge1xuICAgIGZ1bmN0aW9ucyxcbiAgICBtcWw6IHdpbmRvdy5tYXRjaE1lZGlhKHF1ZXJ5KSxcbiAgICBfaGFuZGxlQ2hhbmdlOiAoZXZlbnQ6IEhhbmRsZXJFdmVudCk6IHZ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UFTLENBQUMsR0FBRyxDQUFDLEVBQUUsQ0FBQyxDQUFBO0lBQ2hDLElBQUEsTUFBTSxhQUFhLEdBQUcsQ0FBQyxJQUFrQixLQUFVO0lBQ2pELFFBQUEsSUFBSSxPQUFPLEVBQUUsS0FBSyxVQUFVLEVBQUU7Z0JBQzVCLEVBQUUsQ0FBQyxJQUFJLENBQUMsQ0FBQTtJQUNULFNBQUE7SUFDSCxLQUFDLENBQUE7SUFFRCxJQUFBLGFBQWEsQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUE7SUFDeEIsQ0FBQzs7QUNQRCxzQkFBZTtRQUNiLGlCQUFpQjtRQUNqQixhQUFhO1FBQ2IsZ0JBQWdCO1FBQ2hCLGFBQWE7S0FDZDs7Ozs7Ozs7In0= |
/*! | ||
Mqfunctions.js v0.1.0-alpha.3 | ||
Mqfunctions.js v0.1.0-alpha.4 | ||
https://github.com/kimulaco/mqfunctions | ||
@@ -4,0 +4,0 @@ Released under the MIT License. |
@@ -1,2 +0,2 @@ | ||
import type { MqFunctions } from './MqFunctions'; | ||
import type { MqFunctions } from './types/MqFunctions'; | ||
export declare const removeMqFunction: (mqf: MqFunctions, id: string) => void; |
@@ -1,2 +0,2 @@ | ||
import type { MqFunctions } from './MqFunctions'; | ||
import type { MqFunctions } from './types/MqFunctions'; | ||
export declare const runMqFunction: (mqf: MqFunctions, id: string) => void; |
{ | ||
"name": "mqfunctions", | ||
"version": "0.1.0-alpha.3", | ||
"version": "0.1.0-alpha.4", | ||
"description": "JavaScript library to manage matchMedia handlers.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
37943