@naturalcycles/datastore-lib 4.0.0 → 4.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/dist/datastore.db.js +1 -1
- package/package.json +1 -1
- package/src/datastore.db.ts +1 -1
package/dist/datastore.db.js
CHANGED
|
@@ -74,7 +74,7 @@ export class DatastoreDB extends BaseCommonDB {
|
|
|
74
74
|
}
|
|
75
75
|
async getDatastoreLib() {
|
|
76
76
|
// Lazy-loading
|
|
77
|
-
const
|
|
77
|
+
const lib = await import('@google-cloud/datastore');
|
|
78
78
|
return lib;
|
|
79
79
|
}
|
|
80
80
|
async ping() {
|
package/package.json
CHANGED
package/src/datastore.db.ts
CHANGED
|
@@ -142,7 +142,7 @@ export class DatastoreDB extends BaseCommonDB implements CommonDB {
|
|
|
142
142
|
|
|
143
143
|
private async getDatastoreLib(): Promise<any> {
|
|
144
144
|
// Lazy-loading
|
|
145
|
-
const
|
|
145
|
+
const lib = await import('@google-cloud/datastore')
|
|
146
146
|
return lib
|
|
147
147
|
}
|
|
148
148
|
|