@modern-js/runtime-utils 2.43.0 → 2.44.0

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.
@@ -39,7 +39,7 @@ class Storage {
39
39
  return _values;
40
40
  }
41
41
  /**
42
- * Returns a specified element from the containter. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Containter.
42
+ * Returns a specified element from the container. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Container.
43
43
  * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
44
44
  */
45
45
  get(key) {
@@ -86,9 +86,9 @@ class Storage {
86
86
  checkIsOwnkey(k) {
87
87
  return k.startsWith(this.namespace);
88
88
  }
89
- constructor(namespace, containter) {
89
+ constructor(namespace, container) {
90
90
  this.namespace = namespace;
91
- this.container = containter;
91
+ this.container = container;
92
92
  }
93
93
  }
94
94
  // Annotate the CommonJS export names for ESM import in node:
@@ -3,10 +3,10 @@ import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
3
3
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
4
4
  var Storage = /* @__PURE__ */ function() {
5
5
  "use strict";
6
- function Storage2(namespace, containter) {
6
+ function Storage2(namespace, container) {
7
7
  _class_call_check(this, Storage2);
8
8
  this.namespace = namespace;
9
- this.container = containter;
9
+ this.container = container;
10
10
  }
11
11
  var _proto = Storage2.prototype;
12
12
  _proto.keys = function keys() {
@@ -16,7 +16,7 @@ class Storage {
16
16
  return _values;
17
17
  }
18
18
  /**
19
- * Returns a specified element from the containter. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Containter.
19
+ * Returns a specified element from the container. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Container.
20
20
  * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
21
21
  */
22
22
  get(key) {
@@ -63,9 +63,9 @@ class Storage {
63
63
  checkIsOwnkey(k) {
64
64
  return k.startsWith(this.namespace);
65
65
  }
66
- constructor(namespace, containter) {
66
+ constructor(namespace, container) {
67
67
  this.namespace = namespace;
68
- this.container = containter;
68
+ this.container = container;
69
69
  }
70
70
  }
71
71
  export {
@@ -2,11 +2,11 @@ import { Container } from '@modern-js/types';
2
2
  export declare class Storage<V = unknown> {
3
3
  private namespace;
4
4
  private container;
5
- constructor(namespace: string, containter: Container<string, V>);
5
+ constructor(namespace: string, container: Container<string, V>);
6
6
  keys?(): Promise<string[]>;
7
7
  values?(): Promise<V[]>;
8
8
  /**
9
- * Returns a specified element from the containter. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Containter.
9
+ * Returns a specified element from the container. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Container.
10
10
  * @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
11
11
  */
12
12
  get(key: string): Promise<V | undefined>;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.43.0",
18
+ "version": "2.44.0",
19
19
  "_comment": "Provide ESM and CJS exports, ESM is used by runtime package, for treeshaking",
20
20
  "exports": {
21
21
  "./router": {
@@ -106,7 +106,7 @@
106
106
  "react-router-dom": "6.17.0",
107
107
  "@remix-run/router": "1.10.0",
108
108
  "@swc/helpers": "0.5.3",
109
- "@modern-js/utils": "2.43.0"
109
+ "@modern-js/utils": "2.44.0"
110
110
  },
111
111
  "peerDependencies": {
112
112
  "react": ">=17.0.0",
@@ -129,9 +129,9 @@
129
129
  "jest": "^29",
130
130
  "typescript": "^5",
131
131
  "@types/serialize-javascript": "^5.0.1",
132
- "@modern-js/types": "2.43.0",
133
- "@scripts/build": "2.43.0",
134
- "@scripts/jest-config": "2.43.0"
132
+ "@modern-js/types": "2.44.0",
133
+ "@scripts/build": "2.44.0",
134
+ "@scripts/jest-config": "2.44.0"
135
135
  },
136
136
  "sideEffects": false,
137
137
  "scripts": {