@e-mc/cloud 0.14.0 → 0.14.2

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.
Files changed (3) hide show
  1. package/README.md +9 -9
  2. package/index.js +1 -1
  3. package/package.json +4 -7
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ## Interface
11
11
 
12
- * [View Source](https://www.unpkg.com/@e-mc/types@0.14.0/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.14.2/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { IFileManager, IHost, IScopeOrigin } from "./index";
@@ -102,7 +102,7 @@ interface ICloudServiceClient {
102
102
 
103
103
  ```typescript
104
104
  import type { PermittedDirectories } from "./core";
105
- import type { CloudServiceOptions, DbSourceOptions, PurgeComponent } from "./settings";
105
+ import type { CloudServiceOptions, DbSourceOptions, ImportModule, PurgeComponent } from "./settings";
106
106
 
107
107
  interface CloudModule {
108
108
  // handler: "@e-mc/cloud";
@@ -119,7 +119,7 @@ interface CloudModule {
119
119
  cache_dir?: string;
120
120
  session_expires?: number;
121
121
  user_key?: Record<string, DbSourceOptions>;
122
- imports?: StringMap;
122
+ imports?: ImportModule;
123
123
  purge?: PurgeComponent;
124
124
  atlas?: CloudServiceOptions;
125
125
  aws?: CloudServiceOptions;
@@ -180,12 +180,12 @@ const rows = await instance.getDatabaseRows({ service: "aws-v3", credential: "ma
180
180
 
181
181
  ## References
182
182
 
183
- - https://www.unpkg.com/@e-mc/types@0.14.0/lib/asset.d.ts
184
- - https://www.unpkg.com/@e-mc/types@0.14.0/lib/cloud.d.ts
185
- - https://www.unpkg.com/@e-mc/types@0.14.0/lib/core.d.ts
186
- - https://www.unpkg.com/@e-mc/types@0.14.0/lib/db.d.ts
187
- - https://www.unpkg.com/@e-mc/types@0.14.0/lib/logger.d.ts
188
- - https://www.unpkg.com/@e-mc/types@0.14.0/lib/settings.d.ts
183
+ - https://www.unpkg.com/@e-mc/types@0.14.2/lib/asset.d.ts
184
+ - https://www.unpkg.com/@e-mc/types@0.14.2/lib/cloud.d.ts
185
+ - https://www.unpkg.com/@e-mc/types@0.14.2/lib/core.d.ts
186
+ - https://www.unpkg.com/@e-mc/types@0.14.2/lib/db.d.ts
187
+ - https://www.unpkg.com/@e-mc/types@0.14.2/lib/logger.d.ts
188
+ - https://www.unpkg.com/@e-mc/types@0.14.2/lib/settings.d.ts
189
189
 
190
190
  ## LICENSE
191
191
 
package/index.js CHANGED
@@ -814,7 +814,7 @@ class Cloud extends ClientDb {
814
814
  }
815
815
  if (isPlainObject(credential)) {
816
816
  item.credential = credential;
817
- if (this.settingsOf(service, 'coerce', 'credential') === true) {
817
+ if (this.hasCoerce(service, 'credential')) {
818
818
  coerceObject(credential, stored);
819
819
  }
820
820
  return unused ? credential : { ...credential };
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "@e-mc/cloud",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "Cloud constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
7
  "repository": {
11
8
  "type": "git",
12
9
  "url": "git+https://github.com/anpham6/e-mc.git",
@@ -19,9 +16,9 @@
19
16
  "license": "BSD-3-Clause",
20
17
  "homepage": "https://github.com/anpham6/e-mc#readme",
21
18
  "dependencies": {
22
- "@e-mc/core": "0.14.0",
23
- "@e-mc/db": "0.14.0",
24
- "@e-mc/types": "0.14.0",
19
+ "@e-mc/core": "0.14.2",
20
+ "@e-mc/db": "0.14.2",
21
+ "@e-mc/types": "0.14.2",
25
22
  "mime-types": "^3.0.2"
26
23
  }
27
24
  }