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

@slickgrid-universal/utils

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slickgrid-universal/utils - npm Package Compare versions

Comparing version 4.7.0 to 5.0.0-beta.0

10

dist/cjs/domUtils.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.windowScrollPosition = exports.insertAfterElement = exports.htmlEncodeWithPadding = exports.htmlEntityDecode = exports.htmlEncode = exports.findWidthOrDefault = exports.findFirstAttribute = exports.getStyleProp = exports.getInnerSize = exports.getOffset = exports.getOffsetRelativeToParent = exports.getHtmlStringOutput = exports.getHTMLFromFragment = exports.emptyElement = exports.destroyAllElementProps = exports.classNameToList = exports.createDomElement = exports.calculateAvailableSpace = void 0;
exports.windowScrollPosition = exports.insertAfterElement = exports.htmlEncodeWithPadding = exports.htmlEntityDecode = exports.htmlEncode = exports.findWidthOrDefault = exports.findFirstAttribute = exports.getStyleProp = exports.getInnerSize = exports.getOffset = exports.getOffsetRelativeToParent = exports.getHtmlStringOutput = exports.emptyElement = exports.destroyAllElementProps = exports.classNameToList = exports.createDomElement = exports.calculateAvailableSpace = void 0;
/** calculate available space for each side of the DOM element */

@@ -101,10 +101,2 @@ function calculateAvailableSpace(element) {

/**
* @deprecated @see `getHtmlStringOutput()`
* This function is now deprecated and is an alias to the new `getHtmlStringOutput()`, so please use this new function instead which works with various type of inputs.
*/
function getHTMLFromFragment(input, type = 'innerHTML') {
return getHtmlStringOutput(input, type);
}
exports.getHTMLFromFragment = getHTMLFromFragment;
/**
* From any input provided, return the HTML string (when a string is provided, it will be returned "as is" but when it's a number it will be converted to string)

@@ -111,0 +103,0 @@ * When detecting HTMLElement/DocumentFragment, we can also specify which HTML type to retrieve innerHTML or outerHTML.

@@ -93,9 +93,2 @@ /** calculate available space for each side of the DOM element */

/**
* @deprecated @see `getHtmlStringOutput()`
* This function is now deprecated and is an alias to the new `getHtmlStringOutput()`, so please use this new function instead which works with various type of inputs.
*/
export function getHTMLFromFragment(input, type = 'innerHTML') {
return getHtmlStringOutput(input, type);
}
/**
* From any input provided, return the HTML string (when a string is provided, it will be returned "as is" but when it's a number it will be converted to string)

@@ -102,0 +95,0 @@ * When detecting HTMLElement/DocumentFragment, we can also specify which HTML type to retrieve innerHTML or outerHTML.

@@ -42,7 +42,2 @@ import type { HtmlElementPosition, InferDOMType } from './models/index';

/**
* @deprecated @see `getHtmlStringOutput()`
* This function is now deprecated and is an alias to the new `getHtmlStringOutput()`, so please use this new function instead which works with various type of inputs.
*/
export declare function getHTMLFromFragment(input: DocumentFragment | HTMLElement | string | number, type?: 'innerHTML' | 'outerHTML'): string;
/**
* From any input provided, return the HTML string (when a string is provided, it will be returned "as is" but when it's a number it will be converted to string)

@@ -49,0 +44,0 @@ * When detecting HTMLElement/DocumentFragment, we can also specify which HTML type to retrieve innerHTML or outerHTML.

4

package.json
{
"name": "@slickgrid-universal/utils",
"version": "4.7.0",
"version": "5.0.0-beta.0",
"description": "Common set of small utilities",

@@ -40,3 +40,3 @@ "main": "./dist/cjs/index.js",

],
"gitHead": "185b6f9e44400bec2f1d79568905ca79e4b338a5"
"gitHead": "a4e50f5967805ed05465d664bb858cbaac445a88"
}

@@ -107,10 +107,2 @@ import type { HtmlElementPosition, InferDOMType } from './models/index';

/**
* @deprecated @see `getHtmlStringOutput()`
* This function is now deprecated and is an alias to the new `getHtmlStringOutput()`, so please use this new function instead which works with various type of inputs.
*/
export function getHTMLFromFragment(input: DocumentFragment | HTMLElement | string | number, type: 'innerHTML' | 'outerHTML' = 'innerHTML'): string {
return getHtmlStringOutput(input, type);
}
/**
* From any input provided, return the HTML string (when a string is provided, it will be returned "as is" but when it's a number it will be converted to string)

@@ -117,0 +109,0 @@ * When detecting HTMLElement/DocumentFragment, we can also specify which HTML type to retrieve innerHTML or outerHTML.

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

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