inviton-powerduck 0.0.166 → 0.0.167

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,9 +21,7 @@ function groupByImpl<T, K>(this: Array<T>, keySelector: (item: T) => K): Map<K,
21
21
 
22
22
  export const remove = Symbol('remove');
23
23
  function removeImpl<T>(this: Array<T>, ...items: T[]) {
24
- for (let i = 1, len = arguments.length; i < len; i++) {
25
- // eslint-disable-next-line prefer-rest-params
26
- const item = arguments[i];
24
+ for (const item of items) {
27
25
  const itemIndex = this.indexOf(item);
28
26
 
29
27
  if (itemIndex > -1) {
@@ -169,4 +169,12 @@ export default class StorageProvider {
169
169
 
170
170
  StorageProvider.setString(key, storeVal);
171
171
  }
172
+
173
+ /**
174
+ * Removes item from the storage
175
+ * @param key Storage key
176
+ */
177
+ static remove(key: string): void {
178
+ storage.removeItem(`private.${key}`);
179
+ }
172
180
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "inviton-powerduck",
3
3
  "type": "module",
4
- "version": "0.0.166",
4
+ "version": "0.0.167",
5
5
  "files": [
6
6
  "app/",
7
7
  "common/",