Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ribajs/utils

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ribajs/utils - npm Package Compare versions

Comparing version 1.9.0-beta.3 to 1.9.0-beta.4

12

dist/dom.d.ts

@@ -31,2 +31,8 @@ export declare const MAX_UID = 1000;

/**
* Determine if an element is in the viewport
* @param elem The element
* @return Returns true if element is in the viewport
*/
export declare const isInViewport: (elem: Element, offsetTop?: number, offsetBottom?: number) => boolean;
/**
* Select all of an contenteditable or input element

@@ -44,1 +50,7 @@ * @param element The element you want to select

export declare const getUID: (prefix: string) => string;
/**
* Detects if dom element is custom element or native / default html element
* @see https://stackoverflow.com/a/47737765/1465919
* @param element The element you want to test
*/
export declare const isCustomElement: (element: HTMLUnknownElement, mustBeRegistred?: boolean) => boolean;

28

dist/dom.js

@@ -119,2 +119,15 @@ export const MAX_UID = 1000;

/**
* Determine if an element is in the viewport
* @param elem The element
* @return Returns true if element is in the viewport
*/
export const isInViewport = (elem, offsetTop = 0, offsetBottom = 0) => {
if (!elem) {
return false;
}
const distance = elem.getBoundingClientRect();
return (distance.top + distance.height >= offsetBottom &&
distance.bottom - distance.height <= offsetTop);
};
/**
* Select all of an contenteditable or input element

@@ -235,2 +248,15 @@ * @param element The element you want to select

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2RvbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsSUFBSSxDQUFDO0FBRTVCOzs7O0dBSUc7QUFDSCxNQUFNLENBQUMsTUFBTSxpQkFBaUIsR0FBRyxDQUFDLEVBQXNCLEVBQUUsRUFBRTtJQUMxRCxJQUFJ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T0FBTyxDQUFDLENBQUMsQ0FBQyw0Q0FBNEM7S0FDcEYsUUFBUSxRQUFRLENBQUMsY0FBYyxDQUFDLE1BQU0sQ0FBQyxFQUFFO0lBRTFDLE9BQU8sTUFBTSxDQUFDO0FBQ2hCLENBQUMsQ0FBQyJ9
/**
* Detects if dom element is custom element or native / default html element
* @see https://stackoverflow.com/a/47737765/1465919
* @param element The element you want to test
*/
export const isCustomElement = (element, mustBeRegistred = false) => {
// A custom element's name is required to contain a -, whereas an HTML-defined element will not. So:
const isCustomElement = element.tagName.includes("-");
if (isCustomElement && mustBeRegistred && customElements) {
return !!customElements.get(element.tagName.toLocaleLowerCase());
}
return isCustomElement;
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2RvbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsSUFBSSxDQUFDO0FBRTVCOzs7O0dBSUc7QUFDSCxNQUFNLENBQUMsTUFBTSxpQkFBaUIsR0FBRyxDQUFDLEVBQXNCLEVBQUUsRUFBRTtJQUMxRCxJQUFJLENBQUMsRUFBRSxDQUFDLGFBQWEsRUFBRSxFQUFFO1FBQ3ZCLE9BQU8sS0FBSyxDQUFDO0tBQ2Q7SUFDRCxNQUFNLFVBQVUsR0FBRyxFQUFFLENBQUMsVUFBVSxDQUFDO0lBQ2pDLElBQUksVUFBVSxDQUFDLE1BQU0sS0FBSyxDQUFDLElBQUksVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDLFFBQVEsS0FBSyxDQUFDLEVBQUU7UUFDM0QsSUFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxTQUFTLElBQUksVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDLFNBQVMsRUFBRSxJQUFJLEVBQUUsS0F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MsRUFBVSxFQUFFO0lBQy9DLEdBQUc7UUFDRCxNQUFNLElBQUksQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsNENBQTRDO0tBQ3BGLFFBQVEsUUFBUSxDQUFDLGNBQWMsQ0FBQyxNQUFNLENBQUMsRUFBRTtJQUUxQyxPQUFPLE1BQU0sQ0FBQztBQUNoQixDQUFDLENBQUM7QUFFRjs7OztHQUlHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sZUFBZSxHQUFHLENBQzdCLE9BQTJCLEVBQzNCLGVBQWUsR0FBRyxLQUFLLEVBQ3ZCLEVBQUU7SUFDRixvR0FBb0c7SUFDcEcsTUFBTSxlQUFlLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDdEQsSUFBSSxlQUFlLElBQUksZUFBZSxJQUFJLGNBQWMsRUFBRTtRQUN4RCxPQUFPLENBQUMsQ0FBQyxjQUFjLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsaUJBQWlCLEVBQUUsQ0FBQyxDQUFDO0tBQ2xFO0lBQ0QsT0FBTyxlQUFlLENBQUM7QUFDekIsQ0FBQyxDQUFDIn0=

@@ -78,2 +78,13 @@ export declare const couldBeJson: (str?: string | null | undefined) => boolean;

/**
* Remove all special chars from a string
* @see https://stackoverflow.com/a/11090301/1465919
* @param str
*/
export declare const withoutSpecialChars: (str: string) => string;
/**
* Removes multiple tabs, newlines, etc from a string
* @param str
*/
export declare const withoutMultiWhitespace: (str: string) => string;
/**
* Formats a string into a handle.

@@ -117,3 +128,3 @@ * E.g. '100% M & Ms!!!' -> 100-m-ms

/**
*
* Get the class "that"
* @param that

@@ -120,0 +131,0 @@ */

9

dist/type.js

@@ -159,3 +159,3 @@ export const couldBeJson = (str) => {

*/
const withoutSpecialChars = (str) => {
export const withoutSpecialChars = (str) => {
// str = str.replace(/[^\w\s]/gi, ""); // http://stackoverflow.com/a/4374890

@@ -169,3 +169,3 @@ str = str.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi, "");

*/
const withoutMultiWhitespace = (str) => {
export const withoutMultiWhitespace = (str) => {
str = str.replace(/\s\s+/g, " ");

@@ -269,5 +269,4 @@ return str;

};
// Get the class "that"
/**
*
* Get the class "that"
* @param that

@@ -288,2 +287,2 @@ */

*/
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy90eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxNQUFNLFdBQVcsR0FBRyxDQUFDLEdBQW1CLEVBQUUsRUFBRTtJQUNqRCxJQUFJLENBQUMsR0FBRyxJQUFJLE9BQU8sR0FBRyxLQUFLLFFBQVEsRUFBRTtRQUNuQyxPQUFPLEtBQUssQ0FBQztLQUNkO0lBQ0QsR0FBRyxHQUFHLEdBQUcsQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUNqQixPQUFPLEdBQUcsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEtBQUssR0FBRyxJQUFJLEdBQUcsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEtBQUssR0FBRyxDQUFDO0FBQ3hELENBQUMsQ0FBQztBQUVGOzs7R0FHRztBQUNILE1BQU0sQ0FBQyxNQUFNLE1BQU0sR0FBRyxDQUFDLEdBQW1CLEVBQUUsRUFBRTtJQUM1QyxJQUFJLENBQUMsR0FBRyxFQUFFO1FBQ1IsT0FBTyxLQUFLLENBQUM7S0FDZDtJQUNELElBQUk7UUFDRixNQUFNLEdBQUcsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQzVCLE9BQU8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FBQVEsQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNqQixPQUFPLE1BQU0sQ0FBQyxJQUFJLEVBQUUsRUFBRSxFQUFFLEdBQUcsQ0FBQyxDQUFDO0tBQzlCO0lBQ0QsSUFBSSxRQUFRLENBQUMsR0FBRyxDQUFDLEVBQUU7UUFDakIsT0FBTyxHQUFHLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDO0tBQ3RCO0lBQ0QsT0FBTyxHQUFHLENBQUM7QUFDYixDQUFDLENBQUM7QUFFRjs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsQ0FBQyxJQUFTLEVBQUUsRUFBRTtJQUNuQyxPQUFPLElBQUksQ0FBQyxXQUFXLENBQUM7QUFDMUIsQ0FBQyxDQUFDO0FBRUY7Ozs7Ozs7OztHQVNHIn0=
{
"name": "@ribajs/utils",
"description": "Utils module of Riba.js",
"version": "1.9.0-beta.3",
"version": "1.9.0-beta.4",
"author": "Pascal Garber <pascal@artandcode.studio>",

@@ -36,5 +36,5 @@ "contributors": [

"scripts": {
"lint": "eslint src --ext .js,.jsx,.ts,.tsx --fix && tsc --noEmit",
"build": "npm run lint && tsc",
"build:ts": "npm run lint",
"lint": "eslint ./src --ext .js,.jsx,.ts,.tsx --fix && tsc --noEmit",
"build": "npm run lint && npm run build:ts",
"build:ts": "tsc",
"clean": "rm -rf ./dist ./lib"

@@ -52,11 +52,11 @@ },

"devDependencies": {
"@babel/runtime": "^7.12.1",
"@babel/runtime-corejs3": "^7.12.1",
"@ribajs/eslint-config": "1.9.0-beta.3",
"@ribajs/tsconfig": "1.9.0-beta.3",
"@types/jest": "^26.0.15",
"babel-jest": "^26.6.1",
"eslint": "^7.11.0",
"typescript": "^4.0.3"
"@babel/runtime": "^7.12.5",
"@babel/runtime-corejs3": "^7.12.5",
"@ribajs/eslint-config": "1.9.0-beta.4",
"@ribajs/tsconfig": "1.9.0-beta.4",
"@types/jest": "^26.0.16",
"babel-jest": "^26.6.3",
"eslint": "^7.14.0",
"typescript": "^4.1.2"
}
}

@@ -141,2 +141,22 @@ export const MAX_UID = 1000;

/**
* Determine if an element is in the viewport
* @param elem The element
* @return Returns true if element is in the viewport
*/
export const isInViewport = (
elem: Element,
offsetTop = 0,
offsetBottom = 0
) => {
if (!elem) {
return false;
}
const distance = elem.getBoundingClientRect();
return (
distance.top + distance.height >= offsetBottom &&
distance.bottom - distance.height <= offsetTop
);
};
/**
* Select all of an contenteditable or input element

@@ -277,1 +297,18 @@ * @param element The element you want to select

};
/**
* Detects if dom element is custom element or native / default html element
* @see https://stackoverflow.com/a/47737765/1465919
* @param element The element you want to test
*/
export const isCustomElement = (
element: HTMLUnknownElement,
mustBeRegistred = false
) => {
// A custom element's name is required to contain a -, whereas an HTML-defined element will not. So:
const isCustomElement = element.tagName.includes("-");
if (isCustomElement && mustBeRegistred && customElements) {
return !!customElements.get(element.tagName.toLocaleLowerCase());
}
return isCustomElement;
};

@@ -174,3 +174,3 @@ export const couldBeJson = (str?: string | null) => {

*/
const withoutSpecialChars = (str: string) => {
export const withoutSpecialChars = (str: string) => {
// str = str.replace(/[^\w\s]/gi, ""); // http://stackoverflow.com/a/4374890

@@ -185,3 +185,3 @@ str = str.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi, "");

*/
const withoutMultiWhitespace = (str: string) => {
export const withoutMultiWhitespace = (str: string) => {
str = str.replace(/\s\s+/g, " ");

@@ -298,5 +298,4 @@ return str;

// Get the class "that"
/**
*
* Get the class "that"
* @param that

@@ -303,0 +302,0 @@ */

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