@awesomate/sdk 0.17.0 → 0.18.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.
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* Docs: https://hub.awesomate.ai/docs/sdk/
|
|
25
25
|
*/
|
|
26
26
|
/** This package's version, sent to the hub with every server call. */
|
|
27
|
-
export declare const VERSION = "0.
|
|
27
|
+
export declare const VERSION = "0.18.0";
|
|
28
28
|
/** Augmented by the generated awesomate.d.ts, so each kind's rows are typed. */
|
|
29
29
|
export interface Kinds {
|
|
30
30
|
}
|
|
@@ -290,7 +290,7 @@ export declare class AwesomateClient {
|
|
|
290
290
|
move: (from: string, to: string) => Promise<FileEntry>;
|
|
291
291
|
/** Move a file from private/ or temp/ to the same place under public/, and answer its public_url. Anyone with the address can open it. */
|
|
292
292
|
makePublic: (path: string) => Promise<FileEntry>;
|
|
293
|
-
/** Move a file out of public/ into private/. Its public address stops serving it
|
|
293
|
+
/** Move a file out of public/ into private/. Its public address stops serving it within seconds (a browser that already opened it may keep its own copy for a while). */
|
|
294
294
|
makePrivate: (path: string) => Promise<FileEntry>;
|
|
295
295
|
/** Move to the trash. Not erased, and no longer counted toward the Files space. */
|
|
296
296
|
remove: (path: string) => Promise<{
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* Docs: https://hub.awesomate.ai/docs/sdk/
|
|
25
25
|
*/
|
|
26
26
|
/** This package's version, sent to the hub with every server call. */
|
|
27
|
-
export const VERSION = '0.
|
|
27
|
+
export const VERSION = '0.18.0';
|
|
28
28
|
const DEFAULT_BASE = 'https://hub.awesomate.ai';
|
|
29
29
|
const ERROR_CODES = ['unauthenticated', 'forbidden', 'not_found', 'validation', 'consent_blocked', 'rate_limited', 'conflict', 'unavailable'];
|
|
30
30
|
/**
|
|
@@ -220,7 +220,7 @@ export class AwesomateClient {
|
|
|
220
220
|
throw new AwesomateError('validation', 'Name a file inside the folder.', 0, 'path');
|
|
221
221
|
return this.files.move(path, `public/${rest.join('/')}`);
|
|
222
222
|
},
|
|
223
|
-
/** Move a file out of public/ into private/. Its public address stops serving it
|
|
223
|
+
/** Move a file out of public/ into private/. Its public address stops serving it within seconds (a browser that already opened it may keep its own copy for a while). */
|
|
224
224
|
makePrivate: async (path) => {
|
|
225
225
|
const [top, ...rest] = path.replace(/^\/+/, '').split('/');
|
|
226
226
|
if (top !== 'public' || !rest.length)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awesomate/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Your own Awesomate data from Node and the browser: query contacts and app data with generated types, and sign your app's own users in",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|