@acot/utils
Advanced tools
Comparing version 0.0.2-canary.3 to 0.0.2
@@ -6,2 +6,6 @@ # Change Log | ||
## [0.0.2](https://github.com/acot-a11y/acot/compare/@acot/utils@0.0.2-canary.3...@acot/utils@0.0.2) (2020-12-10) | ||
**Note:** Version bump only for package @acot/utils | ||
## [0.0.2-canary.3](https://github.com/acot-a11y/acot/compare/@acot/utils@0.0.2-canary.2...@acot/utils@0.0.2-canary.3) (2020-11-08) | ||
@@ -8,0 +12,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getEventListeners = void 0; | ||
exports.getEventListeners = async (element) => { | ||
const getEventListeners = async (element) => { | ||
const { listeners, } = await element.executionContext()._client.send('DOMDebugger.getEventListeners', { | ||
@@ -10,1 +10,2 @@ objectId: element._remoteObject.objectId, | ||
}; | ||
exports.getEventListeners = getEventListeners; |
@@ -9,3 +9,3 @@ "use strict"; | ||
const regex = /^\.{1,2}[/\\]/u; | ||
exports.isFilepath = (nameOrPath) => { | ||
const isFilepath = (nameOrPath) => { | ||
return (regex.test(nameOrPath) || | ||
@@ -15,1 +15,2 @@ path_1.default.parse(nameOrPath).ext !== '' || | ||
}; | ||
exports.isFilepath = isFilepath; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.shorthand2pkg = exports.pkg2shorthand = void 0; | ||
exports.pkg2shorthand = (pkg, prefix) => { | ||
const pkg2shorthand = (pkg, prefix) => { | ||
const acot = `acot-${prefix}`; | ||
@@ -18,3 +18,4 @@ if (pkg.startsWith('@')) { | ||
}; | ||
exports.shorthand2pkg = (shorthand, prefix) => { | ||
exports.pkg2shorthand = pkg2shorthand; | ||
const shorthand2pkg = (shorthand, prefix) => { | ||
const acot = `acot-${prefix}`; | ||
@@ -32,1 +33,2 @@ if (shorthand.startsWith('@')) { | ||
}; | ||
exports.shorthand2pkg = shorthand2pkg; |
@@ -6,3 +6,3 @@ "use strict"; | ||
const SIZE_REGEX = /(\d+)x(\d+)/; | ||
exports.parseViewport = (viewport) => { | ||
const parseViewport = (viewport) => { | ||
if (typeof viewport !== 'string') { | ||
@@ -27,1 +27,2 @@ return viewport; | ||
}; | ||
exports.parseViewport = parseViewport; |
@@ -8,3 +8,3 @@ "use strict"; | ||
const resolve_from_1 = __importDefault(require("resolve-from")); | ||
exports.resolveModule = (id, from) => { | ||
const resolveModule = (id, from) => { | ||
var _a; | ||
@@ -15,1 +15,2 @@ const moduleId = from != null ? resolve_from_1.default(from, id) : require.resolve(id); | ||
}; | ||
exports.resolveModule = resolveModule; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sleep = void 0; | ||
exports.sleep = (ms) => new Promise((resolve) => setTimeout(() => resolve(), ms)); | ||
const sleep = (ms) => new Promise((resolve) => setTimeout(() => resolve(), ms)); | ||
exports.sleep = sleep; |
@@ -5,3 +5,3 @@ "use strict"; | ||
const resolve_module_1 = require("./resolve-module"); | ||
exports.tryResolveModule = (id, from) => { | ||
const tryResolveModule = (id, from) => { | ||
try { | ||
@@ -14,1 +14,2 @@ return [resolve_module_1.resolveModule(id, from), null]; | ||
}; | ||
exports.tryResolveModule = tryResolveModule; |
{ | ||
"name": "@acot/utils", | ||
"version": "0.0.2-canary.3", | ||
"version": "0.0.2", | ||
"description": "Utility functions for acot.", | ||
@@ -33,3 +33,3 @@ "homepage": "https://github.com/acot-a11y/acot/tree/master/packages/utils", | ||
"dependencies": { | ||
"puppeteer-core": "^5.4.1", | ||
"puppeteer-core": "^5.5.0", | ||
"resolve-from": "^5.0.0" | ||
@@ -43,3 +43,3 @@ }, | ||
}, | ||
"gitHead": "553e5c3111262f3500eca32fc00b2511aa169061" | ||
"gitHead": "0213161e3b268d769211bcd75d1d5f7f4e1818ad" | ||
} |
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
16430
344
Updatedpuppeteer-core@^5.5.0