@aws-amplify/core 5.5.3-unstable.ec57e85.2 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Amplify.js +2 -0
- package/lib/Credentials.js +2 -0
- package/lib/Platform/version.d.ts +1 -1
- package/lib/Platform/version.js +1 -1
- package/lib/Providers/index.js +2 -0
- package/lib/ServiceWorker/ServiceWorker.js +2 -0
- package/lib/ServiceWorker/index.js +2 -0
- package/lib/UniversalStorage/index.js +2 -0
- package/lib/Util/BackgroundProcessManager.js +2 -0
- package/lib/Util/DateUtils.js +2 -0
- package/lib/Util/Mutex.js +2 -0
- package/lib/Util/Reachability.js +2 -0
- package/lib/Util/Reachability.native.js +2 -0
- package/lib/Util/StringUtils.js +2 -0
- package/lib/Util/index.js +2 -0
- package/lib/clients/internal/composeServiceApi.d.ts +1 -1
- package/lib/clients/internal/composeServiceApi.js +5 -3
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/index.js +2 -0
- package/lib-esm/Amplify.js +2 -0
- package/lib-esm/Credentials.js +2 -0
- package/lib-esm/Platform/version.d.ts +1 -1
- package/lib-esm/Platform/version.js +1 -1
- package/lib-esm/Providers/index.js +2 -0
- package/lib-esm/ServiceWorker/ServiceWorker.js +2 -0
- package/lib-esm/ServiceWorker/index.js +2 -0
- package/lib-esm/UniversalStorage/index.js +2 -0
- package/lib-esm/Util/BackgroundProcessManager.js +2 -0
- package/lib-esm/Util/DateUtils.js +2 -0
- package/lib-esm/Util/Mutex.js +2 -0
- package/lib-esm/Util/Reachability.js +2 -0
- package/lib-esm/Util/Reachability.native.js +2 -0
- package/lib-esm/Util/StringUtils.js +2 -0
- package/lib-esm/Util/index.js +2 -0
- package/lib-esm/clients/internal/composeServiceApi.d.ts +1 -1
- package/lib-esm/clients/internal/composeServiceApi.js +5 -3
- package/lib-esm/tsconfig.tsbuildinfo +1 -1
- package/lib-esm/types/index.js +2 -0
- package/package.json +2 -3
- package/polyfills/URL/index.ts +2 -0
- package/src/Amplify.ts +2 -0
- package/src/Credentials.ts +2 -0
- package/src/Platform/version.ts +1 -1
- package/src/Providers/index.ts +2 -0
- package/src/ServiceWorker/ServiceWorker.ts +2 -0
- package/src/ServiceWorker/index.ts +2 -0
- package/src/UniversalStorage/index.ts +2 -0
- package/src/Util/BackgroundProcessManager.ts +2 -0
- package/src/Util/DateUtils.ts +2 -0
- package/src/Util/Mutex.ts +2 -0
- package/src/Util/Reachability.native.ts +2 -0
- package/src/Util/Reachability.ts +2 -0
- package/src/Util/Retry.ts +2 -0
- package/src/Util/StringUtils.ts +2 -0
- package/src/Util/index.ts +2 -0
- package/src/clients/internal/composeServiceApi.ts +5 -2
- package/src/parseAWSExports.ts +2 -0
- package/src/types/index.ts +2 -0
- package/src/types/types.ts +2 -0
package/lib/Amplify.js
CHANGED
|
@@ -17,6 +17,8 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
exports.Amplify = exports.AmplifyClass = void 0;
|
|
20
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
21
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
20
22
|
var Logger_1 = require("./Logger");
|
|
21
23
|
var logger = new Logger_1.ConsoleLogger('Amplify');
|
|
22
24
|
var AmplifyClass = /** @class */ (function () {
|
package/lib/Credentials.js
CHANGED
|
@@ -48,6 +48,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
};
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
50
|
exports.Credentials = exports.CredentialsClass = void 0;
|
|
51
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
52
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
51
53
|
var Logger_1 = require("./Logger");
|
|
52
54
|
var StorageHelper_1 = require("./StorageHelper");
|
|
53
55
|
var JS_1 = require("./JS");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.3.4
|
|
1
|
+
export declare const version = "5.3.4";
|
package/lib/Platform/version.js
CHANGED
package/lib/Providers/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AWSCloudWatchProvider = void 0;
|
|
4
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
5
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
6
|
var AWSCloudWatchProvider_1 = require("./AWSCloudWatchProvider");
|
|
5
7
|
Object.defineProperty(exports, "AWSCloudWatchProvider", { enumerable: true, get: function () { return AWSCloudWatchProvider_1.AWSCloudWatchProvider; } });
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ServiceWorkerClass = void 0;
|
|
4
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
5
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
6
|
/**
|
|
5
7
|
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
6
8
|
*
|
|
@@ -15,6 +15,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.UniversalStorage = void 0;
|
|
18
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
19
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
18
20
|
var universal_cookie_1 = __importDefault(require("universal-cookie"));
|
|
19
21
|
var JS_1 = require("../JS");
|
|
20
22
|
var isBrowser = (0, JS_1.browserOrNode)().isBrowser;
|
|
@@ -63,6 +63,8 @@ var __values = (this && this.__values) || function(o) {
|
|
|
63
63
|
};
|
|
64
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
65
|
exports.BackgroundProcessManagerState = exports.BackgroundManagerNotOpenError = exports.BackgroundProcessManager = void 0;
|
|
66
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
67
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
66
68
|
/**
|
|
67
69
|
* @private For internal Amplify use.
|
|
68
70
|
*
|
package/lib/Util/DateUtils.js
CHANGED
package/lib/Util/Mutex.js
CHANGED
package/lib/Util/Reachability.js
CHANGED
|
@@ -14,6 +14,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
18
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
17
19
|
var core_1 = require("@aws-amplify/core");
|
|
18
20
|
var zen_observable_ts_1 = __importDefault(require("zen-observable-ts"));
|
|
19
21
|
var ReachabilityNavigator = /** @class */ (function () {
|
|
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
7
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
6
8
|
var zen_observable_ts_1 = __importDefault(require("zen-observable-ts"));
|
|
7
9
|
var Logger_1 = require("../Logger");
|
|
8
10
|
var logger = new Logger_1.ConsoleLogger('Reachability', 'DEBUG');
|
package/lib/Util/StringUtils.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.urlSafeDecode = exports.urlSafeEncode = void 0;
|
|
4
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
5
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
6
|
function urlSafeEncode(str) {
|
|
5
7
|
return str
|
|
6
8
|
.split('')
|
package/lib/Util/index.js
CHANGED
|
@@ -4,6 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.BackgroundProcessManagerState = exports.BackgroundManagerNotOpenError = exports.BackgroundProcessManager = exports.RETRY_ERROR_CODES = exports.NO_CREDS_ERROR_STRING = exports.AWS_CLOUDWATCH_PROVIDER_NAME = exports.AWS_CLOUDWATCH_MAX_EVENT_SIZE = exports.AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE = exports.AWS_CLOUDWATCH_CATEGORY = exports.AWS_CLOUDWATCH_BASE_BUFFER_SIZE = exports.urlSafeEncode = exports.urlSafeDecode = exports.DateUtils = exports.Reachability = exports.Mutex = exports.retry = exports.jitteredExponentialRetry = exports.jitteredBackoff = exports.isNonRetryableError = exports.NonRetryableError = void 0;
|
|
7
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
8
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
7
9
|
var Retry_1 = require("./Retry");
|
|
8
10
|
Object.defineProperty(exports, "NonRetryableError", { enumerable: true, get: function () { return Retry_1.NonRetryableError; } });
|
|
9
11
|
Object.defineProperty(exports, "isNonRetryableError", { enumerable: true, get: function () { return Retry_1.isNonRetryableError; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServiceClientOptions } from '../types/aws';
|
|
2
2
|
import { TransferHandler, Endpoint } from '../types/core';
|
|
3
3
|
import { HttpRequest, HttpResponse } from '../types/http';
|
|
4
|
-
export declare const composeServiceApi: <TransferHandlerOptions, Input, Output, DefaultConfig extends Partial<TransferHandlerOptions & ServiceClientOptions>>(transferHandler: TransferHandler<HttpRequest, HttpResponse, TransferHandlerOptions>, serializer: (input: Input, endpoint: Endpoint) => HttpRequest, deserializer: (output: HttpResponse) => Promise<Output>, defaultConfig: DefaultConfig) => (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input) => Promise<Output>;
|
|
4
|
+
export declare const composeServiceApi: <TransferHandlerOptions, Input, Output, DefaultConfig extends Partial<TransferHandlerOptions & ServiceClientOptions>>(transferHandler: TransferHandler<HttpRequest, HttpResponse, TransferHandlerOptions>, serializer: (input: Input, endpoint: Endpoint) => Promise<HttpRequest> | HttpRequest, deserializer: (output: HttpResponse) => Promise<Output>, defaultConfig: DefaultConfig) => (config: OptionalizeKey<TransferHandlerOptions & ServiceClientOptions & DefaultConfig, keyof DefaultConfig>, input: Input) => Promise<Output>;
|
|
5
5
|
type OptionalizeKey<T, K> = Omit<T, K & keyof T> & {
|
|
6
6
|
[P in K & keyof T]?: T[P];
|
|
7
7
|
};
|
|
@@ -60,12 +60,14 @@ var composeServiceApi = function (transferHandler, serializer, deserializer, def
|
|
|
60
60
|
return [4 /*yield*/, resolvedConfig.endpointResolver(resolvedConfig, input)];
|
|
61
61
|
case 1:
|
|
62
62
|
endpoint = _a.sent();
|
|
63
|
-
|
|
64
|
-
return [4 /*yield*/, transferHandler(request, __assign({}, resolvedConfig))];
|
|
63
|
+
return [4 /*yield*/, serializer(input, endpoint)];
|
|
65
64
|
case 2:
|
|
65
|
+
request = _a.sent();
|
|
66
|
+
return [4 /*yield*/, transferHandler(request, __assign({}, resolvedConfig))];
|
|
67
|
+
case 3:
|
|
66
68
|
response = _a.sent();
|
|
67
69
|
return [4 /*yield*/, deserializer(response)];
|
|
68
|
-
case
|
|
70
|
+
case 4: return [2 /*return*/, _a.sent()];
|
|
69
71
|
}
|
|
70
72
|
});
|
|
71
73
|
}); };
|