npm package diff
Package: @forge/migrations
Versions: 0.6.2-experimental-10722bc - 1.0.0-next.4
File: package/out/migration/index.js
Index: package/out/migration/index.js
===================================================================
--- package/out/migration/index.js
+++ package/out/migration/index.js
@@ -1,13 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.migration = exports.getMigrationInstance = void 0;
+exports.MigrationAPIError = exports.migration = exports.getMigrationInstance = void 0;
const migration_1 = require("./migration");
const query_api_1 = require("./query-api");
const getMigrationInstance = (adapter) => {
return {
getMappingById: (transferId, namespace, keys) => adapter.getMappingById(transferId, namespace, keys),
messageProcessed: (transferId, messageId) => adapter.messageProcessed(transferId, messageId),
+ addLog: (transferId, logMessage) => adapter.addLog(transferId, logMessage),
getAppDataList: (transferId) => adapter.getAppDataList(transferId),
getAppDataPayload: (s3Key) => adapter.getAppDataPayload(s3Key),
getMappings: (transferId, namespace) => new query_api_1.DefaultQueryBuilder(adapter, { transferId: transferId, namespace: namespace }),
getContainers: (transferId, containerType) => new query_api_1.DefaultQueryBuilder(adapter, { transferId: transferId, containerType: containerType })
@@ -16,9 +17,12 @@
exports.getMigrationInstance = getMigrationInstance;
exports.migration = {
getMappingById: (transferId, namespace, keys) => (0, exports.getMigrationInstance)(new migration_1.Migration()).getMappingById(transferId, namespace, keys),
messageProcessed: (transferId, messageId) => (0, exports.getMigrationInstance)(new migration_1.Migration()).messageProcessed(transferId, messageId),
+ addLog: (transferId, logMessage) => (0, exports.getMigrationInstance)(new migration_1.Migration()).addLog(transferId, logMessage),
getAppDataList: (transferId) => (0, exports.getMigrationInstance)(new migration_1.Migration()).getAppDataList(transferId),
getAppDataPayload: (s3Key) => (0, exports.getMigrationInstance)(new migration_1.Migration()).getAppDataPayload(s3Key),
getMappings: (transferId, namespace) => (0, exports.getMigrationInstance)(new migration_1.Migration()).getMappings(transferId, namespace),
getContainers: (transferId, containerType) => (0, exports.getMigrationInstance)(new migration_1.Migration()).getContainers(transferId, containerType)
};
+var errors_1 = require("./errors");
+Object.defineProperty(exports, "MigrationAPIError", { enumerable: true, get: function () { return errors_1.APIError; } });