@opengeoweb/api 6.0.0 → 6.0.1
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.
- package/index.js +12 -14
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -135,7 +135,10 @@ function _regeneratorRuntime() {
|
|
|
135
135
|
if ("executing" === state) throw new Error("Generator is already running");
|
|
136
136
|
if ("completed" === state) {
|
|
137
137
|
if ("throw" === method) throw arg;
|
|
138
|
-
return
|
|
138
|
+
return {
|
|
139
|
+
value: void 0,
|
|
140
|
+
done: !0
|
|
141
|
+
};
|
|
139
142
|
}
|
|
140
143
|
for (context.method = method, context.arg = arg;;) {
|
|
141
144
|
var delegate = context.delegate;
|
|
@@ -188,7 +191,7 @@ function _regeneratorRuntime() {
|
|
|
188
191
|
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
189
192
|
}
|
|
190
193
|
function values(iterable) {
|
|
191
|
-
if (iterable) {
|
|
194
|
+
if (iterable || "" === iterable) {
|
|
192
195
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
193
196
|
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
194
197
|
if ("function" == typeof iterable.next) return iterable;
|
|
@@ -201,15 +204,7 @@ function _regeneratorRuntime() {
|
|
|
201
204
|
return next.next = next;
|
|
202
205
|
}
|
|
203
206
|
}
|
|
204
|
-
|
|
205
|
-
next: doneResult
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
function doneResult() {
|
|
209
|
-
return {
|
|
210
|
-
value: undefined,
|
|
211
|
-
done: !0
|
|
212
|
-
};
|
|
207
|
+
throw new TypeError(typeof iterable + " is not iterable");
|
|
213
208
|
}
|
|
214
209
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
215
210
|
value: GeneratorFunctionPrototype,
|
|
@@ -530,10 +525,13 @@ var ApiProvider = function ApiProvider(_a) {
|
|
|
530
525
|
return function () {
|
|
531
526
|
};
|
|
532
527
|
}, [handleNewApi, name]);
|
|
533
|
-
|
|
534
|
-
|
|
528
|
+
var contextValue = React.useMemo(function () {
|
|
529
|
+
return {
|
|
535
530
|
api: api
|
|
536
|
-
}
|
|
531
|
+
};
|
|
532
|
+
}, [api]);
|
|
533
|
+
return /*#__PURE__*/React.createElement(ApiContext.Provider, {
|
|
534
|
+
value: contextValue
|
|
537
535
|
}, children);
|
|
538
536
|
};
|
|
539
537
|
function useApiContext() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/api",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "GeoWeb API library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"types": "./src/index.d.ts",
|
|
14
14
|
"dependencies": {},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@opengeoweb/shared": "6.0.
|
|
17
|
-
"axios": "1.
|
|
16
|
+
"@opengeoweb/shared": "6.0.1",
|
|
17
|
+
"axios": "1.2.0",
|
|
18
18
|
"react": "18.2.0"
|
|
19
19
|
}
|
|
20
20
|
}
|