@aws-amplify/predictions 4.0.54-legacy-ui.10 → 4.0.54-sideEffects-storage.14
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.0.55](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.53...@aws-amplify/predictions@4.0.55) (2022-09-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-amplify/predictions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [4.0.54](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@4.0.53...@aws-amplify/predictions@4.0.54) (2022-09-20)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-amplify/predictions
|
|
@@ -94978,12 +94978,13 @@ module.exports = g;
|
|
|
94978
94978
|
/*!*************************************!*\
|
|
94979
94979
|
!*** ../storage/lib-esm/Storage.js ***!
|
|
94980
94980
|
\*************************************/
|
|
94981
|
-
/*! exports provided: Storage, default */
|
|
94981
|
+
/*! exports provided: Storage, StorageInstance, default */
|
|
94982
94982
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
94983
94983
|
|
|
94984
94984
|
"use strict";
|
|
94985
94985
|
__webpack_require__.r(__webpack_exports__);
|
|
94986
94986
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Storage", function() { return Storage; });
|
|
94987
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StorageInstance", function() { return StorageInstance; });
|
|
94987
94988
|
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
|
|
94988
94989
|
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
94989
94990
|
/* harmony import */ var _providers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./providers */ "../storage/lib-esm/providers/index.js");
|
|
@@ -95050,6 +95051,8 @@ var __read = undefined && undefined.__read || function (o, n) {
|
|
|
95050
95051
|
|
|
95051
95052
|
|
|
95052
95053
|
var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('StorageClass');
|
|
95054
|
+
var loggerStorageInstance = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('Storage'); // Logging relating to Storage instance management
|
|
95055
|
+
|
|
95053
95056
|
var DEFAULT_PROVIDER = 'AWSS3';
|
|
95054
95057
|
/**
|
|
95055
95058
|
* Provide storage methods to use AWS S3
|
|
@@ -95312,6 +95315,45 @@ function () {
|
|
|
95312
95315
|
}();
|
|
95313
95316
|
|
|
95314
95317
|
|
|
95318
|
+
/**
|
|
95319
|
+
* Configure & register Storage singleton instance.
|
|
95320
|
+
*/
|
|
95321
|
+
|
|
95322
|
+
var _instance = null;
|
|
95323
|
+
|
|
95324
|
+
var getInstance = function getInstance() {
|
|
95325
|
+
if (_instance) {
|
|
95326
|
+
return _instance;
|
|
95327
|
+
}
|
|
95328
|
+
|
|
95329
|
+
loggerStorageInstance.debug('Create Storage Instance, debug');
|
|
95330
|
+
_instance = new Storage();
|
|
95331
|
+
_instance.vault = new Storage();
|
|
95332
|
+
var old_configure = _instance.configure;
|
|
95333
|
+
|
|
95334
|
+
_instance.configure = function (options) {
|
|
95335
|
+
loggerStorageInstance.debug('storage configure called');
|
|
95336
|
+
|
|
95337
|
+
var vaultConfig = __assign({}, old_configure.call(_instance, options)); // set level private for each provider for the vault
|
|
95338
|
+
|
|
95339
|
+
|
|
95340
|
+
Object.keys(vaultConfig).forEach(function (providerName) {
|
|
95341
|
+
if (typeof vaultConfig[providerName] !== 'string') {
|
|
95342
|
+
vaultConfig[providerName] = __assign(__assign({}, vaultConfig[providerName]), {
|
|
95343
|
+
level: 'private'
|
|
95344
|
+
});
|
|
95345
|
+
}
|
|
95346
|
+
});
|
|
95347
|
+
loggerStorageInstance.debug('storage vault configure called');
|
|
95348
|
+
|
|
95349
|
+
_instance.vault.configure(vaultConfig);
|
|
95350
|
+
};
|
|
95351
|
+
|
|
95352
|
+
return _instance;
|
|
95353
|
+
};
|
|
95354
|
+
|
|
95355
|
+
var StorageInstance = getInstance();
|
|
95356
|
+
_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].register(StorageInstance);
|
|
95315
95357
|
/**
|
|
95316
95358
|
* @deprecated use named import
|
|
95317
95359
|
*/
|
|
@@ -95815,19 +95857,18 @@ var isArrayBuffer = function isArrayBuffer(x) {
|
|
|
95815
95857
|
/*!***********************************!*\
|
|
95816
95858
|
!*** ../storage/lib-esm/index.js ***!
|
|
95817
95859
|
\***********************************/
|
|
95818
|
-
/*! exports provided:
|
|
95860
|
+
/*! exports provided: default, StorageClass, Storage, AWSS3Provider */
|
|
95819
95861
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
95820
95862
|
|
|
95821
95863
|
"use strict";
|
|
95822
95864
|
__webpack_require__.r(__webpack_exports__);
|
|
95823
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Storage", function() { return Storage; });
|
|
95824
95865
|
/* harmony import */ var _Storage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Storage */ "../storage/lib-esm/Storage.js");
|
|
95825
95866
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StorageClass", function() { return _Storage__WEBPACK_IMPORTED_MODULE_0__["Storage"]; });
|
|
95826
95867
|
|
|
95827
|
-
/* harmony
|
|
95828
|
-
|
|
95829
|
-
/* harmony import */ var
|
|
95830
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSS3Provider", function() { return
|
|
95868
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Storage", function() { return _Storage__WEBPACK_IMPORTED_MODULE_0__["StorageInstance"]; });
|
|
95869
|
+
|
|
95870
|
+
/* harmony import */ var _providers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./providers */ "../storage/lib-esm/providers/index.js");
|
|
95871
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AWSS3Provider", function() { return _providers__WEBPACK_IMPORTED_MODULE_1__["AWSS3Provider"]; });
|
|
95831
95872
|
|
|
95832
95873
|
/*
|
|
95833
95874
|
* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
@@ -95841,65 +95882,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
95841
95882
|
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
95842
95883
|
* and limitations under the License.
|
|
95843
95884
|
*/
|
|
95844
|
-
var __assign = undefined && undefined.__assign || function () {
|
|
95845
|
-
__assign = Object.assign || function (t) {
|
|
95846
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
95847
|
-
s = arguments[i];
|
|
95848
95885
|
|
|
95849
|
-
for (var p in s) {
|
|
95850
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
95851
|
-
}
|
|
95852
|
-
}
|
|
95853
|
-
|
|
95854
|
-
return t;
|
|
95855
|
-
};
|
|
95856
|
-
|
|
95857
|
-
return __assign.apply(this, arguments);
|
|
95858
|
-
};
|
|
95859
|
-
|
|
95860
|
-
|
|
95861
|
-
|
|
95862
|
-
var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('Storage');
|
|
95863
|
-
var _instance = null;
|
|
95864
|
-
|
|
95865
|
-
var getInstance = function getInstance() {
|
|
95866
|
-
if (_instance) {
|
|
95867
|
-
return _instance;
|
|
95868
|
-
}
|
|
95869
|
-
|
|
95870
|
-
logger.debug('Create Storage Instance, debug');
|
|
95871
|
-
_instance = new _Storage__WEBPACK_IMPORTED_MODULE_0__["Storage"]();
|
|
95872
|
-
_instance.vault = new _Storage__WEBPACK_IMPORTED_MODULE_0__["Storage"]();
|
|
95873
|
-
var old_configure = _instance.configure;
|
|
95874
|
-
|
|
95875
|
-
_instance.configure = function (options) {
|
|
95876
|
-
logger.debug('storage configure called');
|
|
95877
|
-
|
|
95878
|
-
var vaultConfig = __assign({}, old_configure.call(_instance, options)); // set level private for each provider for the vault
|
|
95879
|
-
|
|
95880
|
-
|
|
95881
|
-
Object.keys(vaultConfig).forEach(function (providerName) {
|
|
95882
|
-
if (typeof vaultConfig[providerName] !== 'string') {
|
|
95883
|
-
vaultConfig[providerName] = __assign(__assign({}, vaultConfig[providerName]), {
|
|
95884
|
-
level: 'private'
|
|
95885
|
-
});
|
|
95886
|
-
}
|
|
95887
|
-
});
|
|
95888
|
-
logger.debug('storage vault configure called');
|
|
95889
|
-
|
|
95890
|
-
_instance.vault.configure(vaultConfig);
|
|
95891
|
-
};
|
|
95892
|
-
|
|
95893
|
-
return _instance;
|
|
95894
|
-
};
|
|
95895
|
-
|
|
95896
|
-
var Storage = getInstance();
|
|
95897
|
-
_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Amplify"].register(Storage);
|
|
95898
95886
|
/**
|
|
95899
95887
|
* @deprecated use named import
|
|
95900
95888
|
*/
|
|
95901
95889
|
|
|
95902
|
-
/* harmony default export */ __webpack_exports__["default"] = (
|
|
95890
|
+
/* harmony default export */ __webpack_exports__["default"] = (_Storage__WEBPACK_IMPORTED_MODULE_0__["StorageInstance"]);
|
|
95903
95891
|
|
|
95904
95892
|
|
|
95905
95893
|
|