@wixc3/common
Advanced tools
Comparing version 16.2.1 to 16.3.0
{ | ||
"name": "@wixc3/common", | ||
"version": "16.2.1", | ||
"version": "16.3.0", | ||
"description": "Common utils, usable in all environments", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -29,3 +29,5 @@ [![npm version](https://badge.fury.io/js/@wixc3%2Fcommon.svg)](https://badge.fury.io/js/@wixc3%2Fcommon) | ||
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| [addToSet(target, source)](https://wixplosives.github.io/core3-utils/common.addtoset) | | | ||
| [assertIsString(value, errorMessage)](https://wixplosives.github.io/core3-utils/common.assertisstring) | Throws if value is not a string | | ||
| [asyncNoop()](https://wixplosives.github.io/core3-utils/common.asyncnoop) | | | ||
| [at(iterable, index)](https://wixplosives.github.io/core3-utils/common.at) | Finds element by index, including negative index | | ||
@@ -46,2 +48,3 @@ | [awaitRecord(obj)](https://wixplosives.github.io/core3-utils/common.awaitrecord) | Awaits a record of promises, and returns a record of their results. | | ||
| [errorToPlainObject(error)](https://wixplosives.github.io/core3-utils/common.errortoplainobject) | | | ||
| [escapeCSS(str)](https://wixplosives.github.io/core3-utils/common.escapecss) | Replaced non alphanumeric character with [CSS unicode representation](https://drafts.csswg.org/cssom/#escape-a-character-as-code-point) | | ||
| [escapeRegExp(str)](https://wixplosives.github.io/core3-utils/common.escaperegexp) | Returns a string safe to be used in RegExp | | ||
@@ -61,2 +64,3 @@ | [every(iterable, predicate)](https://wixplosives.github.io/core3-utils/common.every) | | | ||
| [getIn(obj, path)](https://wixplosives.github.io/core3-utils/common.getin) | | | ||
| [getOs()](https://wixplosives.github.io/core3-utils/common.getos) | | | ||
| [getValue(map, key, errorMessage)](https://wixplosives.github.io/core3-utils/common.getvalue) | Returns a value by key, throws if the value is missing or the map null | | ||
@@ -77,2 +81,3 @@ | [getValue(map, key, errorMessage)](https://wixplosives.github.io/core3-utils/common.getvalue_1) | | | ||
| [isIterable(x)](https://wixplosives.github.io/core3-utils/common.isiterable) | | | ||
| [isMap(m)](https://wixplosives.github.io/core3-utils/common.ismap) | Validates s is an instance of Map | | ||
| [isObject(value)](https://wixplosives.github.io/core3-utils/common.isobject) | <p>Checks if value is an object, e.g. a plain object, an array, a function, a regex, but not a primitive value.</p><p>Common usage scenario:</p> | | ||
@@ -88,2 +93,4 @@ | ||
| [isPlainObject(value)](https://wixplosives.github.io/core3-utils/common.isplainobject) | Checks that value is a POJO | | ||
| [isSet(s)](https://wixplosives.github.io/core3-utils/common.isset) | Validates s is an instance of Set | | ||
| [isString(value)](https://wixplosives.github.io/core3-utils/common.isstring) | Checks is value is a string | | ||
| [isValidNamingConvention(namingConvention)](https://wixplosives.github.io/core3-utils/common.isvalidnamingconvention) | Checks if namingConvention is supported | | ||
@@ -101,4 +108,6 @@ | [join(iterable, separator)](https://wixplosives.github.io/core3-utils/common.join) | | | ||
| [mulberry32(a)](https://wixplosives.github.io/core3-utils/common.mulberry32) | | | ||
| [newMacrotask()](https://wixplosives.github.io/core3-utils/common.newmacrotask) | | | ||
| [next(iterable, item)](https://wixplosives.github.io/core3-utils/common.next) | Find the element following an item | | ||
| [noIdents(modified, separator)](https://wixplosives.github.io/core3-utils/common.noidents) | Remove line indentation (heading whitespace) | | ||
| [noop()](https://wixplosives.github.io/core3-utils/common.noop) | | | ||
| [normToRage(normal, min, max)](https://wixplosives.github.io/core3-utils/common.normtorage) | | | ||
@@ -115,2 +124,3 @@ | [noWhiteSpace(str)](https://wixplosives.github.io/core3-utils/common.nowhitespace) | Remove white spaces including empty lines | | ||
| [same(a, b, unordered)](https://wixplosives.github.io/core3-utils/common.same) | Deep comparison of two objects | | ||
| [seededRandomInt(min, max)](https://wixplosives.github.io/core3-utils/common.seededrandomint) | | | ||
| [shuffle(array)](https://wixplosives.github.io/core3-utils/common.shuffle) | Shuffles an array | | ||
@@ -121,2 +131,3 @@ | [size(iterable)](https://wixplosives.github.io/core3-utils/common.size) | Evaluate the size of an iterable | | ||
| [sort(iterable, by)](https://wixplosives.github.io/core3-utils/common.sort) | | | ||
| [splitIntoWords(str)](https://wixplosives.github.io/core3-utils/common.splitintowords) | Breaks down a string to words, dropping non letters and numbers | | ||
| [stringifyErrorStack(error)](https://wixplosives.github.io/core3-utils/common.stringifyerrorstack) | | | ||
@@ -130,2 +141,3 @@ | [swap(array, i, j)](https://wixplosives.github.io/core3-utils/common.swap) | Swaps elements of an array in place | | ||
| [toKebabCase(str)](https://wixplosives.github.io/core3-utils/common.tokebabcase) | Converts a string to kebab-case | | ||
| [toMap(obj)](https://wixplosives.github.io/core3-utils/common.tomap) | Coverts and object into a Map | | ||
| [toNamingConvention(str, namingConvention)](https://wixplosives.github.io/core3-utils/common.tonamingconvention) | Converts string formatting to a naming convention | | ||
@@ -140,20 +152,8 @@ | [toPascalCase(str)](https://wixplosives.github.io/core3-utils/common.topascalcase) | Converts a string to PascalCase | | ||
| Variable | Description | | ||
| ------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | ||
| [addToSet](https://wixplosives.github.io/core3-utils/common.addtoset) | | | ||
| [asyncNoop](https://wixplosives.github.io/core3-utils/common.asyncnoop) | | | ||
| [escapeCSS](https://wixplosives.github.io/core3-utils/common.escapecss) | Replaced non alphanumeric character with [CSS unicode representation](https://drafts.csswg.org/cssom/#escape-a-character-as-code-point) | | ||
| [getOs](https://wixplosives.github.io/core3-utils/common.getos) | | | ||
| [isElectronRendererProcess](https://wixplosives.github.io/core3-utils/common.iselectronrendererprocess) | | | ||
| [isMac](https://wixplosives.github.io/core3-utils/common.ismac) | | | ||
| [isMap](https://wixplosives.github.io/core3-utils/common.ismap) | Validates s is an instance of Map | | ||
| [isSet](https://wixplosives.github.io/core3-utils/common.isset) | Validates s is an instance of Set | | ||
| [isString](https://wixplosives.github.io/core3-utils/common.isstring) | Checks is value is a string | | ||
| [isWindows](https://wixplosives.github.io/core3-utils/common.iswindows) | | | ||
| [newMacrotask](https://wixplosives.github.io/core3-utils/common.newmacrotask) | | | ||
| [noop](https://wixplosives.github.io/core3-utils/common.noop) | | | ||
| [remap](https://wixplosives.github.io/core3-utils/common.remap) | remaps keys of obj based on rename map object, | | ||
| [seededRandomInt](https://wixplosives.github.io/core3-utils/common.seededrandomint) | | | ||
| [splitIntoWords](https://wixplosives.github.io/core3-utils/common.splitintowords) | Breaks down a string to words, dropping non letters and numbers | | ||
| [toMap](https://wixplosives.github.io/core3-utils/common.tomap) | Coverts and object into a Map | | ||
| Variable | Description | | ||
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | | ||
| [isElectronRendererProcess](https://wixplosives.github.io/core3-utils/common.iselectronrendererprocess) | | | ||
| [isMac](https://wixplosives.github.io/core3-utils/common.ismac) | | | ||
| [isWindows](https://wixplosives.github.io/core3-utils/common.iswindows) | | | ||
| [remap](https://wixplosives.github.io/core3-utils/common.remap) | remaps keys of obj based on rename map object, | | ||
@@ -160,0 +160,0 @@ ## Type Aliases |
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
378629