@forge/sql 0.0.1-experimental-fa2dfba → 0.0.1-experimental-8f73b3e
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/out/sql.d.ts +1 -0
- package/out/sql.d.ts.map +1 -1
- package/out/sql.js +11 -1
- package/package.json +2 -2
package/out/sql.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare class SqlClient {
|
|
|
5
5
|
storageApi(query: string, params?: SqlParameters, method?: string): Promise<Result>;
|
|
6
6
|
prepare(query: string): SqlStatement;
|
|
7
7
|
execute(query: string): Promise<Result>;
|
|
8
|
+
_provision(): Promise<void>;
|
|
8
9
|
}
|
|
9
10
|
export declare const sql: SqlClient;
|
|
10
11
|
//# sourceMappingURL=sql.d.ts.map
|
package/out/sql.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../src/sql.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAY,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG9D,qBAAa,SAAS;YACN,WAAW;IAcnB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,aAAkB,EAAE,MAAM,SAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;IAQ5F,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAI9B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../src/sql.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAY,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG9D,qBAAa,SAAS;YACN,WAAW;IAcnB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,aAAkB,EAAE,MAAM,SAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;IAQ5F,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAI9B,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQvC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CASlC;AAED,eAAO,MAAM,GAAG,WAAkB,CAAC"}
|
package/out/sql.js
CHANGED
|
@@ -20,7 +20,7 @@ class SqlClient {
|
|
|
20
20
|
return response;
|
|
21
21
|
}
|
|
22
22
|
async storageApi(query, params = [], method = 'all') {
|
|
23
|
-
const response = await this.sendRequest('api/v1/
|
|
23
|
+
const response = await this.sendRequest('api/v1/execute', {
|
|
24
24
|
method: 'POST',
|
|
25
25
|
body: JSON.stringify({ query, params, method })
|
|
26
26
|
});
|
|
@@ -37,6 +37,16 @@ class SqlClient {
|
|
|
37
37
|
return { rows: [], err: e };
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
async _provision() {
|
|
41
|
+
try {
|
|
42
|
+
await this.sendRequest('/api/v1/provision', {
|
|
43
|
+
method: 'POST'
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
catch (e) {
|
|
47
|
+
throw e;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
40
50
|
}
|
|
41
51
|
exports.SqlClient = SqlClient;
|
|
42
52
|
exports.sql = new SqlClient();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/sql",
|
|
3
|
-
"version": "0.0.1-experimental-
|
|
3
|
+
"version": "0.0.1-experimental-8f73b3e",
|
|
4
4
|
"description": "Forge SQL package",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
"node-fetch": "2.7.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@forge/api": "^3.9.1-experimental-
|
|
24
|
+
"@forge/api": "^3.9.1-experimental-8f73b3e"
|
|
25
25
|
}
|
|
26
26
|
}
|