ag-common 0.0.565 → 0.0.567
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/dist/api/helpers/s3.d.ts
CHANGED
package/dist/api/helpers/s3.js
CHANGED
|
@@ -12,8 +12,9 @@ var __await = (this && this.__await) || function (v) { return this instanceof __
|
|
|
12
12
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
13
13
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
14
14
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
15
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
16
|
-
function
|
|
15
|
+
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
16
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
17
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
17
18
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
18
19
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
19
20
|
function fulfill(value) { resume("next", value); }
|
|
@@ -186,7 +187,7 @@ function getPresignedPostURL({ bucket, key, maxMb = 5, }) {
|
|
|
186
187
|
Key: key,
|
|
187
188
|
Expires: 600,
|
|
188
189
|
Conditions: [
|
|
189
|
-
['content-length-range', 0, maxMb * 1049000],
|
|
190
|
+
['content-length-range', 0, maxMb * 1049000], // content length restrictions: 0-5MB
|
|
190
191
|
['starts-with', '$Content-Type', 'image/'],
|
|
191
192
|
],
|
|
192
193
|
});
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.567",
|
|
3
3
|
"name": "ag-common",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@babel/core": "7.23.3",
|
|
41
41
|
"@babel/preset-typescript": "7.23.3",
|
|
42
|
-
"@babel/types": "7.23.
|
|
42
|
+
"@babel/types": "7.23.4",
|
|
43
43
|
"@emotion/react": "11.11.1",
|
|
44
44
|
"@emotion/styled": "11.11.0",
|
|
45
|
-
"@smithy/types": "2.
|
|
45
|
+
"@smithy/types": "2.6.0",
|
|
46
46
|
"@storybook/addon-actions": "7.5.3",
|
|
47
47
|
"@storybook/addon-docs": "7.5.3",
|
|
48
48
|
"@storybook/addon-essentials": "7.5.3",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"@storybook/react": "7.5.3",
|
|
53
53
|
"@storybook/react-webpack5": "7.5.3",
|
|
54
54
|
"@storybook/theming": "7.5.3",
|
|
55
|
-
"@types/jest": "29.5.
|
|
55
|
+
"@types/jest": "29.5.10",
|
|
56
56
|
"@types/jsonwebtoken": "9.0.5",
|
|
57
|
-
"@types/node": "20.9.
|
|
58
|
-
"@types/react": "18.2.
|
|
59
|
-
"@types/react-dom": "18.2.
|
|
57
|
+
"@types/node": "20.9.4",
|
|
58
|
+
"@types/react": "18.2.38",
|
|
59
|
+
"@types/react-dom": "18.2.17",
|
|
60
60
|
"cross-env": "7.0.3",
|
|
61
|
-
"eslint-config-e7npm": "0.0.
|
|
61
|
+
"eslint-config-e7npm": "0.0.56",
|
|
62
62
|
"jest": "29.7.0",
|
|
63
63
|
"rimraf": "5.0.5",
|
|
64
64
|
"storybook": "7.5.3",
|