npm package diff

Package: @forge/sql

Versions: 0.1.0-next.1-experimental-470bc94 - 0.1.0

Modified:package/out/errorCodes.js

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

Modified:package/out/sql.js

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

Modified:package/package.json

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/sql",
-  "version": "0.1.0-next.1-experimental-470bc94",
+  "version": "0.1.0",
   "description": "Forge SQL package",
   "author": "Atlassian",
   "license": "UNLICENSED",
   "main": "out/index.js",
@@ -20,7 +20,7 @@
     "expect-type": "^0.17.3",
     "node-fetch": "2.7.0"
   },
   "dependencies": {
-    "@forge/api": "^3.9.2-next.2-experimental-470bc94"
+    "@forge/api": "^3.9.2"
   }
 }

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;;;;;CAKtB,CAAC"}
\ No newline at end of file
+{"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

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;CAMlC;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;CASlC;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,7 +1,6 @@
 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