@bfwk/utils
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -211,2 +211,3 @@ import { ValueChangedEvent } from '@lwc/wire-service'; | ||
// @ts-ignore | ||
class CustomURLSearchParams { | ||
@@ -281,3 +282,5 @@ constructor(init) { | ||
forEach(callbackfn, thisArg) { | ||
this.map.forEach((values, key, parent) => values.forEach(value => callbackfn(value, key, this))); | ||
this.map.forEach((values, key, parent) => | ||
// @ts-ignore | ||
values.forEach(value => callbackfn(value, key, this))); | ||
} | ||
@@ -291,2 +294,3 @@ toString() { | ||
if (typeof window !== 'undefined' && !window.URLSearchParams) { | ||
// @ts-ignore | ||
window.URLSearchParams = CustomURLSearchParams; | ||
@@ -293,0 +297,0 @@ } |
export declare type FullyQualifiedName = string; | ||
export interface MetadataError { | ||
errorCode: string; | ||
message: string; | ||
} | ||
export interface MetadataResult<T = any> { | ||
errors?: MetadataError[]; | ||
data?: T; | ||
} |
@@ -14,3 +14,3 @@ export { Comparator, stringPropertyComparator, labelComparator, nameComparator, multiComparatorGenerator, } from './sortLib'; | ||
export { Observable, Observer, Subscription } from './observable'; | ||
export { FullyQualifiedName } from './common-types'; | ||
export { FullyQualifiedName, MetadataError, MetadataResult, } from './common-types'; | ||
export { ObservableCreator } from './observable-creator'; | ||
@@ -17,0 +17,0 @@ export { throttle } from './throttle'; |
@@ -12,3 +12,3 @@ export declare type Comparator<T> = (a: T, b: T) => number; | ||
*/ | ||
export declare const stringPropertyComparator: (field: string, reverse?: boolean | undefined) => Comparator<any>; | ||
export declare const stringPropertyComparator: (field: string, reverse?: boolean) => Comparator<any>; | ||
/** | ||
@@ -15,0 +15,0 @@ * A case-insensitive comparison function used to sort arrays of objects by |
{ | ||
"name": "@bfwk/utils", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "LBF Pub Sub", | ||
@@ -11,3 +11,8 @@ "repository": { | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"main": "dist/index.cjs", | ||
"browser": "dist/index.mjs", | ||
"exports": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"typings": "dist/types/index.d.ts", | ||
@@ -14,0 +19,0 @@ "files": [ |
# Utils | ||
[![npm](https://img.shields.io/npm/v/@bfwk/utils)](https://www.npmjs.com/package/@bfwk/utils) | ||
@@ -3,0 +4,0 @@ |
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
172174
4587
14