@concord-consortium/object-storage 1.0.0-pre.0 → 1.0.0-pre.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.
@@ -43,7 +43,7 @@ const ObjectStorageContext = (0, react_1.createContext)(null);
43
43
  * based on the supplied configuration
44
44
  */
45
45
  function ObjectStorageProvider({ config, children }) {
46
- const objectStorage = (0, react_1.useMemo)(() => (0, object_storage_1.createObjectStorage)(config), [config]);
46
+ const objectStorage = (0, react_1.useMemo)(() => (0, object_storage_1.createObjectStorage)(config ?? { version: 1, type: "demo" }), [config]);
47
47
  return (react_1.default.createElement(ObjectStorageContext.Provider, { value: objectStorage }, children));
48
48
  }
49
49
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@concord-consortium/object-storage",
3
- "version": "1.0.0-pre.0",
3
+ "version": "1.0.0-pre.1",
4
4
  "description": "A TypeScript library for object storage",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",