New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thednp/shorty

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thednp/shorty - npm Package Compare versions

Comparing version 2.0.0-alpha7 to 2.0.0-alpha8

6

dist/shorty.d.ts

@@ -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

[![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hw/@thednp/shorty)](https://www.jsdelivr.com/package/npm/@thednp/shorty)
[![typescript version](https://img.shields.io/badge/typescript-4.9.4-brightgreen)](https://www.typescriptlang.org/)
[![eslint version](https://img.shields.io/badge/eslint-8.29.0-brightgreen)](https://github.com/eslint)
[![prettier version](https://img.shields.io/badge/prettier-2.7.1-brightgreen)](https://prettier.io/)
[![cypress version](https://img.shields.io/badge/cypress-12.0.2-brightgreen)](https://cypress.io/)
[![typescript version](https://img.shields.io/badge/typescript-4.9.4-brightgreen)](https://www.typescriptlang.org/)
[![esbuild version](https://img.shields.io/badge/esbuild-0.16.4-brightgreen)](https://esbuild.github.io/)
[![eslint version](https://img.shields.io/badge/eslint-8.23.0-brightgreen)](https://github.com/eslint)
[![vite version](https://img.shields.io/badge/vite-4.0.0-brightgreen)](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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc