@thednp/shorty
Advanced tools
Comparing version 2.0.0-alpha7 to 2.0.0-alpha8
@@ -1055,3 +1055,3 @@ /** | ||
*/ | ||
export declare const getDocumentBody: (node?: Node) => HTMLElement; | ||
export declare const getDocumentBody: (node?: Node | Document | Window) => HTMLElement; | ||
/** | ||
@@ -1063,3 +1063,3 @@ * Returns the `document.documentElement` or the `<HTML>` element. | ||
*/ | ||
export declare const getDocumentElement: (node?: Node) => HTMLElement; | ||
export declare const getDocumentElement: (node?: Node | Document | Window) => HTMLElement; | ||
/** | ||
@@ -1071,3 +1071,3 @@ * Returns the `document.head` or the `<head>` element. | ||
*/ | ||
export declare const getDocumentHead: (node?: Node) => HTMLElement & HTMLHeadElement; | ||
export declare const getDocumentHead: (node?: Node | Document | Window) => HTMLElement & HTMLHeadElement; | ||
/** | ||
@@ -1074,0 +1074,0 @@ * Utility to get the computed `animationDuration` |
{ | ||
"name": "@thednp/shorty", | ||
"version": "2.0.0alpha7", | ||
"version": "2.0.0alpha8", | ||
"type": "module", | ||
@@ -55,10 +55,8 @@ "description": "TypeScript shorties for the web", | ||
"@cypress/code-coverage": "^3.10.0", | ||
"@rollup/plugin-json": "^5.0.2", | ||
"@types/istanbul-lib-instrument": "^1.7.4", | ||
"@typescript-eslint/eslint-plugin": "^5.35.1", | ||
"@typescript-eslint/parser": "^5.35.1", | ||
"cypress": "^12.0.2", | ||
"dts-bundle-generator": "^7.1.0", | ||
"esbuild": "^0.14.30", | ||
"eslint": "^8.23.0", | ||
"cypress": "^12.4.1", | ||
"dts-bundle-generator": "^7.2.0", | ||
"eslint": "^8.29.0", | ||
"eslint-plugin-jsdoc": "^39.3.6", | ||
@@ -70,9 +68,8 @@ "eslint-plugin-prefer-arrow": "^1.2.3", | ||
"ncp": "^2.0.0", | ||
"npm-run-all": "^4.1.5", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.7.1", | ||
"prettier": "^2.8.3", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.9.4", | ||
"vite": "^3.0.9" | ||
"vite": "^4.0.4" | ||
} | ||
} |
@@ -8,6 +8,6 @@ # shorty | ||
[](https://www.jsdelivr.com/package/npm/@thednp/shorty) | ||
[](https://www.typescriptlang.org/) | ||
[](https://github.com/eslint) | ||
[](https://prettier.io/) | ||
[](https://cypress.io/) | ||
[](https://www.typescriptlang.org/) | ||
[](https://esbuild.github.io/) | ||
[](https://github.com/eslint) | ||
[](https://github.com/vitejs) | ||
@@ -14,0 +14,0 @@ |
@@ -9,3 +9,3 @@ import getDocument from './getDocument'; | ||
*/ | ||
const getDocumentBody = (node?: Node): HTMLElement => { | ||
const getDocumentBody = (node?: Node | Document | Window): HTMLElement => { | ||
return getDocument(node).body; | ||
@@ -12,0 +12,0 @@ }; |
@@ -9,3 +9,3 @@ import getDocument from './getDocument'; | ||
*/ | ||
const getDocumentElement = (node?: Node): HTMLElement => { | ||
const getDocumentElement = (node?: Node | Document | Window): HTMLElement => { | ||
return getDocument(node).documentElement; | ||
@@ -12,0 +12,0 @@ }; |
@@ -8,3 +8,3 @@ import getDocument from './getDocument'; | ||
*/ | ||
const getDocumentHead = (node?: Node): HTMLElement & HTMLHeadElement => { | ||
const getDocumentHead = (node?: Node | Document | Window): HTMLElement & HTMLHeadElement => { | ||
return getDocument(node).head; | ||
@@ -11,0 +11,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
522633
19