npm package diff

Package: @forge/sql

Versions: 0.1.0 - 2.0.0-next.0

Modified:package/out/errorCodes.js

Index: package/out/errorCodes.js
===================================================================
--- package/out/errorCodes.js
+++ package/out/errorCodes.js
@@ -3,6 +3,7 @@
 exports.errorCodes = void 0;
 exports.errorCodes = {
     SQL_EXECUTION_ERROR: 'SQL_EXECUTION_ERROR',
     INVALID_SQL_QUERY: 'INVALID_SQL_QUERY',
-    QUERY_TIMED_OUT: 'QUERY_TIMED_OUT'
+    QUERY_TIMED_OUT: 'QUERY_TIMED_OUT',
+    APP_NOT_ENABLED: 'APP_NOT_ENABLED'
 };

Modified:package/out/sql.js

Index: package/out/sql.js
===================================================================
--- package/out/sql.js
+++ package/out/sql.js
@@ -29,16 +29,12 @@
     async executeRaw(query) {
         return await this.prepare(query).execute();
     }
     async _provision() {
-        try {
-            await this.sendRequest('/api/v1/provision', {
-                method: 'POST'
-            });
-        }
-        catch (e) {
-            throw e;
-        }
+        const response = await this.sendRequest('/api/v1/provision', {
+            method: 'POST'
+        });
+        await (0, response_handler_1.getResponseBody)(response);
     }
 }
 exports.SqlClient = SqlClient;
 exports.sql = new SqlClient();

Modified:package/package.json

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,8 +1,8 @@
 {
   "name": "@forge/sql",
-  "version": "0.1.0",
-  "description": "Forge SQL package",
+  "version": "2.0.0-next.0",
+  "description": "Forge SQL sdk",
   "author": "Atlassian",
   "license": "UNLICENSED",
   "main": "out/index.js",
   "types": "out/index.d.ts",

Modified:package/out/errorCodes.d.ts.map

Index: package/out/errorCodes.d.ts.map
===================================================================
--- package/out/errorCodes.d.ts.map
+++ package/out/errorCodes.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"errorCodes.d.ts","sourceRoot":"","sources":["../src/errorCodes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;CAItB,CAAC"}
\ No newline at end of file
+{"version":3,"file":"errorCodes.d.ts","sourceRoot":"","sources":["../src/errorCodes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;CAKtB,CAAC"}
\ No newline at end of file

Modified:package/out/sql.d.ts.map

Index: package/out/sql.d.ts.map
===================================================================
--- package/out/sql.d.ts.map
+++ package/out/sql.d.ts.map
@@ -1,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;AAE9D,qBAAa,SAAS;YACN,WAAW;IAYnB,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,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI1C,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CASlC;AAED,eAAO,MAAM,GAAG,WAAkB,CAAC"}
\ No newline at end of file
+{"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;AAE9D,qBAAa,SAAS;YACN,WAAW;IAYnB,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,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI1C,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAMlC;AAED,eAAO,MAAM,GAAG,WAAkB,CAAC"}
\ No newline at end of file

Modified:package/out/errorCodes.d.ts

Index: package/out/errorCodes.d.ts
===================================================================
--- package/out/errorCodes.d.ts
+++ package/out/errorCodes.d.ts
@@ -1,6 +1,7 @@
 export declare const errorCodes: {
     SQL_EXECUTION_ERROR: string;
     INVALID_SQL_QUERY: string;
     QUERY_TIMED_OUT: string;
+    APP_NOT_ENABLED: string;
 };
 //# sourceMappingURL=errorCodes.d.ts.map
\ No newline at end of file