npm package diff
Package: @forge/api
Versions: 4.0.0-next.1 - 4.0.0-next.2
Modified:package/out/runtime/fetch-and-storage.js
Index: package/out/runtime/fetch-and-storage.js
===================================================================
--- package/out/runtime/fetch-and-storage.js
+++ package/out/runtime/fetch-and-storage.js
@@ -17,8 +17,11 @@
}
}
exports.getFetchAPI = getFetchAPI;
function getMetrics() {
+ if (global.api) {
+ return undefined;
+ }
return (0, runtime_1.__getRuntime)().metrics;
}
exports.getMetrics = getMetrics;
function getRequestStargate(provider) {
Modified:package/package.json
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
{
"name": "@forge/api",
- "version": "4.0.0-next.1",
+ "version": "4.0.0-next.2",
"description": "Forge API methods",
"author": "Atlassian",
"license": "UNLICENSED",
"main": "out/index.js",
@@ -21,9 +21,9 @@
},
"dependencies": {
"@forge/auth": "0.0.5",
"@forge/egress": "1.2.13",
- "@forge/storage": "1.6.0-next.0",
+ "@forge/storage": "1.6.0-next.1",
"@forge/util": "1.4.4",
"@types/node-fetch": "^2.6.11",
"node-fetch": "2.7.0"
}
Modified:package/out/runtime/fetch-and-storage.d.ts.map
Index: package/out/runtime/fetch-and-storage.d.ts.map
===================================================================
--- package/out/runtime/fetch-and-storage.d.ts.map
+++ package/out/runtime/fetch-and-storage.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"fetch-and-storage.d.ts","sourceRoot":"","sources":["../../src/runtime/fetch-and-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,EAA2D,YAAY,EAAE,MAAM,cAAc,CAAC;AAErG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAEtE,wBAAgB,aAAa,QAE5B;AAED,wBAAgB,WAAW,0BAO1B;AAED,wBAAgB,UAAU,IAAI,OAAO,CAEpC;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,YAAY,GAAG,WAAW,CAetE;AAED,eAAO,MAAM,uBAAuB,EAAE,WAAuC,CAAC;AAC9E,eAAO,MAAM,wBAAwB,EAAE,WAAwC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"fetch-and-storage.d.ts","sourceRoot":"","sources":["../../src/runtime/fetch-and-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AACjC,OAAO,EAA2D,YAAY,EAAE,MAAM,cAAc,CAAC;AAErG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAEtE,wBAAgB,aAAa,QAE5B;AAED,wBAAgB,WAAW,0BAO1B;AAED,wBAAgB,UAAU,IAAI,OAAO,GAAG,SAAS,CAOhD;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,YAAY,GAAG,WAAW,CAetE;AAED,eAAO,MAAM,uBAAuB,EAAE,WAAuC,CAAC;AAC9E,eAAO,MAAM,wBAAwB,EAAE,WAAwC,CAAC"}
\ No newline at end of file
Modified:package/CHANGELOG.md
Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,6 +1,14 @@
# @forge/api
+## 4.0.0-next.2
+
+### Patch Changes
+
+- e069ff4: Fixed bug in metric collection in sandbox environment for global storage api
+- Updated dependencies [e069ff4]
+ - @forge/[email protected]
+
## 4.0.0-next.1
### Major Changes
Modified:package/out/runtime/fetch-and-storage.d.ts
Index: package/out/runtime/fetch-and-storage.d.ts
===================================================================
--- package/out/runtime/fetch-and-storage.d.ts
+++ package/out/runtime/fetch-and-storage.d.ts
@@ -2,9 +2,9 @@
import { AuthProvider } from '../api/fetch';
import type { Metrics } from '@forge/util/packages/metrics-interface';
export declare function getContextAri(): any;
export declare function getFetchAPI(): import("..").FetchAPI;
-export declare function getMetrics(): Metrics;
+export declare function getMetrics(): Metrics | undefined;
export declare function getRequestStargate(provider: AuthProvider): FetchMethod;
export declare const __requestAtlassianAsApp: FetchMethod;
export declare const __requestAtlassianAsUser: FetchMethod;
//# sourceMappingURL=fetch-and-storage.d.ts.map
\ No newline at end of file