Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@forge/api

Package Overview
Dependencies
Maintainers
8
Versions
360
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forge/api - npm Package Compare versions

Comparing version 0.6.1 to 0.7.0-next.0

11

CHANGELOG.md
# @forge/api
## 0.7.0-next.0
### Minor Changes
- 843a703: Add forge-storage library
### Patch Changes
- Updated dependencies [843a703]
- @forge/storage@0.0.2-next.0
## 0.6.1

@@ -4,0 +15,0 @@

6

out/index.d.ts
import { RequestInit, Response } from 'node-fetch';
import { QueryApi } from './storage';
import { QueryApi } from '@forge/storage';
export declare type APIResponse = Pick<Response, 'json' | 'text' | 'arrayBuffer' | 'ok' | 'status' | 'statusText' | 'headers'>;

@@ -48,4 +48,4 @@ export declare type FetchMethod = (url: string, init?: RequestInit) => Promise<APIResponse>;

export { asUser, asApp, fetch, requestJira, requestConfluence, store, storage, properties };
export { QueryBuilder, QueryApi, Condition, ListResult, Predicate, Result, Value } from './storage/storage-adapter';
export { startsWith } from './storage/conditions';
export { QueryBuilder, QueryApi, Condition, ListResult, Predicate, Result, Value } from '@forge/storage';
export { startsWith } from '@forge/storage';
//# sourceMappingURL=index.d.ts.map

@@ -6,3 +6,3 @@ "use strict";

const properties_1 = require("./properties");
const storage_1 = require("./storage");
const storage_1 = require("@forge/storage");
function withDeprecatedMessage(method, message) {

@@ -36,3 +36,3 @@ const wrappedMethod = (...args) => {

exports.store = store;
const storage = storage_1.storageApi;
const storage = storage_1.getStorageInstanceWithQuery(new storage_1.GlobalStorage(global.api.__getAppAri, global.api.asApp().__requestAtlassian));
exports.storage = storage;

@@ -43,3 +43,3 @@ const properties = properties_1.propertiesApi;

exports.default = API;
var conditions_1 = require("./storage/conditions");
Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return conditions_1.startsWith; } });
var storage_2 = require("@forge/storage");
Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return storage_2.startsWith; } });

@@ -5,3 +5,3 @@ "use strict";

const product_scoped_storage_1 = require("./product-scoped-storage");
const errors_1 = require("../errors");
const storage_1 = require("@forge/storage");
class ConfluenceVersionedStorage extends product_scoped_storage_1.ProductScopedStorage {

@@ -11,3 +11,3 @@ async versionedSet(key, value) {

if (!versionResponse.ok && versionResponse.status !== 404) {
throw errors_1.APIError.forStatus(versionResponse.status);
throw storage_1.APIError.forStatus(versionResponse.status);
}

@@ -14,0 +14,0 @@ const updatedVersionNumber = await this.getUpdatedVersion(versionResponse);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProductScopedStorage = void 0;
const errors_1 = require("../errors");
const storage_1 = require("@forge/storage");
class ProductScopedStorage {

@@ -16,3 +16,3 @@ constructor(storageApiPath, apiClient) {

}
throw errors_1.APIError.forStatus(response.status);
throw storage_1.APIError.forStatus(response.status);
}

@@ -25,3 +25,3 @@ const { value } = await response.json();

if (!response.ok) {
throw errors_1.APIError.forStatus(response.status);
throw storage_1.APIError.forStatus(response.status);
}

@@ -32,3 +32,3 @@ }

if (!response.ok) {
throw errors_1.APIError.forStatus(response.status);
throw storage_1.APIError.forStatus(response.status);
}

@@ -35,0 +35,0 @@ }

{
"name": "@forge/api",
"version": "0.6.1",
"version": "0.7.0-next.0",
"description": "Forge API methods",

@@ -21,2 +21,3 @@ "author": "Atlassian",

"dependencies": {
"@forge/storage": "^0.0.2-next.0",
"@types/node-fetch": "^2.5.7",

@@ -23,0 +24,0 @@ "node-fetch": "^2.6.1"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc