@aws-amplify/core 6.8.1-unstable.b818753.0 → 6.9.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.
@@ -3,5 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.version = void 0;
5
5
  // generated by genversion
6
- exports.version = '6.11.1-unstable.b818753.0+b818753';
6
+ exports.version = '6.12.0';
7
7
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.11.1-unstable.b818753.0+b818753';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,mCAAmC;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.12.0';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,QAAQ;;"}
@@ -40,7 +40,7 @@ const getDeviceName = async () => {
40
40
  ]
41
41
  .filter(value => value)
42
42
  .join(' ');
43
- return deviceName;
43
+ return deviceName || navigator.userAgent;
44
44
  };
45
45
  exports.getDeviceName = getDeviceName;
46
46
  //# sourceMappingURL=getDeviceName.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDeviceName.js","sources":["../../../../src/utils/deviceName/getDeviceName.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getDeviceName = void 0;\n/**\n * Retrieves the device name using the User-Agent Client Hints API if available,\n * falling back to the traditional userAgent string if not.\n *\n * @returns {Promise<string>} A promise that resolves with a string representing the device name.\n *\n * Example Output:\n * navigator.userAgentData:\n * 'macOS 14.2.1 arm macOS Not A(Brand/99.0.0.0;Google Chrome/121.0.6167.160;Chromium/121.0.6167.160'\n * navigator.userAgent:\n * 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0'\n */\nconst getDeviceName = async () => {\n const { userAgentData } = navigator;\n if (!userAgentData)\n return navigator.userAgent;\n const { platform = '', platformVersion = '', model = '', architecture = '', fullVersionList = [], } = await userAgentData.getHighEntropyValues([\n 'platform',\n 'platformVersion',\n 'architecture',\n 'model',\n 'fullVersionList',\n ]);\n const versionList = fullVersionList\n .map((v) => `${v.brand}/${v.version}`)\n .join(';');\n const deviceName = [\n platform,\n platformVersion,\n architecture,\n model,\n platform,\n versionList,\n ]\n .filter(value => value)\n .join(' ');\n return deviceName;\n};\nexports.getDeviceName = getDeviceName;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,aAAa,GAAG,YAAY;AAClC,IAAI,MAAM,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;AACxC,IAAI,IAAI,CAAC,aAAa;AACtB,QAAQ,OAAO,SAAS,CAAC,SAAS,CAAC;AACnC,IAAI,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,eAAe,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,YAAY,GAAG,EAAE,EAAE,eAAe,GAAG,EAAE,GAAG,GAAG,MAAM,aAAa,CAAC,oBAAoB,CAAC;AACnJ,QAAQ,UAAU;AAClB,QAAQ,iBAAiB;AACzB,QAAQ,cAAc;AACtB,QAAQ,OAAO;AACf,QAAQ,iBAAiB;AACzB,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,WAAW,GAAG,eAAe;AACvC,SAAS,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAC9C,SAAS,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,QAAQ;AAChB,QAAQ,eAAe;AACvB,QAAQ,YAAY;AACpB,QAAQ,KAAK;AACb,QAAQ,QAAQ;AAChB,QAAQ,WAAW;AACnB,KAAK;AACL,SAAS,MAAM,CAAC,KAAK,IAAI,KAAK,CAAC;AAC/B,SAAS,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,IAAI,OAAO,UAAU,CAAC;AACtB,CAAC,CAAC;AACF,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
1
+ {"version":3,"file":"getDeviceName.js","sources":["../../../../src/utils/deviceName/getDeviceName.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getDeviceName = void 0;\n/**\n * Retrieves the device name using the User-Agent Client Hints API if available,\n * falling back to the traditional userAgent string if not.\n *\n * @returns {Promise<string>} A promise that resolves with a string representing the device name.\n *\n * Example Output:\n * navigator.userAgentData:\n * 'macOS 14.2.1 arm macOS Not A(Brand/99.0.0.0;Google Chrome/121.0.6167.160;Chromium/121.0.6167.160'\n * navigator.userAgent:\n * 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0'\n */\nconst getDeviceName = async () => {\n const { userAgentData } = navigator;\n if (!userAgentData)\n return navigator.userAgent;\n const { platform = '', platformVersion = '', model = '', architecture = '', fullVersionList = [], } = await userAgentData.getHighEntropyValues([\n 'platform',\n 'platformVersion',\n 'architecture',\n 'model',\n 'fullVersionList',\n ]);\n const versionList = fullVersionList\n .map((v) => `${v.brand}/${v.version}`)\n .join(';');\n const deviceName = [\n platform,\n platformVersion,\n architecture,\n model,\n platform,\n versionList,\n ]\n .filter(value => value)\n .join(' ');\n return deviceName || navigator.userAgent;\n};\nexports.getDeviceName = getDeviceName;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,aAAa,GAAG,YAAY;AAClC,IAAI,MAAM,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;AACxC,IAAI,IAAI,CAAC,aAAa;AACtB,QAAQ,OAAO,SAAS,CAAC,SAAS,CAAC;AACnC,IAAI,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,eAAe,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,YAAY,GAAG,EAAE,EAAE,eAAe,GAAG,EAAE,GAAG,GAAG,MAAM,aAAa,CAAC,oBAAoB,CAAC;AACnJ,QAAQ,UAAU;AAClB,QAAQ,iBAAiB;AACzB,QAAQ,cAAc;AACtB,QAAQ,OAAO;AACf,QAAQ,iBAAiB;AACzB,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,WAAW,GAAG,eAAe;AACvC,SAAS,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAC9C,SAAS,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,QAAQ;AAChB,QAAQ,eAAe;AACvB,QAAQ,YAAY;AACpB,QAAQ,KAAK;AACb,QAAQ,QAAQ;AAChB,QAAQ,WAAW;AACnB,KAAK;AACL,SAAS,MAAM,CAAC,KAAK,IAAI,KAAK,CAAC;AAC/B,SAAS,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,IAAI,OAAO,UAAU,IAAI,SAAS,CAAC,SAAS,CAAC;AAC7C,CAAC,CAAC;AACF,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
@@ -1 +1 @@
1
- export declare const version = "6.11.1-unstable.b818753.0+b818753";
1
+ export declare const version = "6.12.0";
@@ -1,5 +1,5 @@
1
1
  // generated by genversion
2
- const version = '6.11.1-unstable.b818753.0+b818753';
2
+ const version = '6.12.0';
3
3
 
4
4
  export { version };
5
5
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.11.1-unstable.b818753.0+b818753';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.12.0';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
@@ -36,7 +36,7 @@ const getDeviceName = async () => {
36
36
  ]
37
37
  .filter(value => value)
38
38
  .join(' ');
39
- return deviceName;
39
+ return deviceName || navigator.userAgent;
40
40
  };
41
41
 
42
42
  export { getDeviceName };
@@ -1 +1 @@
1
- {"version":3,"file":"getDeviceName.mjs","sources":["../../../../src/utils/deviceName/getDeviceName.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Retrieves the device name using the User-Agent Client Hints API if available,\n * falling back to the traditional userAgent string if not.\n *\n * @returns {Promise<string>} A promise that resolves with a string representing the device name.\n *\n * Example Output:\n * navigator.userAgentData:\n * 'macOS 14.2.1 arm macOS Not A(Brand/99.0.0.0;Google Chrome/121.0.6167.160;Chromium/121.0.6167.160'\n * navigator.userAgent:\n * 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0'\n */\nexport const getDeviceName = async () => {\n const { userAgentData } = navigator;\n if (!userAgentData)\n return navigator.userAgent;\n const { platform = '', platformVersion = '', model = '', architecture = '', fullVersionList = [], } = await userAgentData.getHighEntropyValues([\n 'platform',\n 'platformVersion',\n 'architecture',\n 'model',\n 'fullVersionList',\n ]);\n const versionList = fullVersionList\n .map((v) => `${v.brand}/${v.version}`)\n .join(';');\n const deviceName = [\n platform,\n platformVersion,\n architecture,\n model,\n platform,\n versionList,\n ]\n .filter(value => value)\n .join(' ');\n return deviceName;\n};\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,aAAa,GAAG,YAAY;AACzC,IAAI,MAAM,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;AACxC,IAAI,IAAI,CAAC,aAAa;AACtB,QAAQ,OAAO,SAAS,CAAC,SAAS,CAAC;AACnC,IAAI,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,eAAe,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,YAAY,GAAG,EAAE,EAAE,eAAe,GAAG,EAAE,GAAG,GAAG,MAAM,aAAa,CAAC,oBAAoB,CAAC;AACnJ,QAAQ,UAAU;AAClB,QAAQ,iBAAiB;AACzB,QAAQ,cAAc;AACtB,QAAQ,OAAO;AACf,QAAQ,iBAAiB;AACzB,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,WAAW,GAAG,eAAe;AACvC,SAAS,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAC9C,SAAS,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,QAAQ;AAChB,QAAQ,eAAe;AACvB,QAAQ,YAAY;AACpB,QAAQ,KAAK;AACb,QAAQ,QAAQ;AAChB,QAAQ,WAAW;AACnB,KAAK;AACL,SAAS,MAAM,CAAC,KAAK,IAAI,KAAK,CAAC;AAC/B,SAAS,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,IAAI,OAAO,UAAU,CAAC;AACtB;;;;"}
1
+ {"version":3,"file":"getDeviceName.mjs","sources":["../../../../src/utils/deviceName/getDeviceName.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Retrieves the device name using the User-Agent Client Hints API if available,\n * falling back to the traditional userAgent string if not.\n *\n * @returns {Promise<string>} A promise that resolves with a string representing the device name.\n *\n * Example Output:\n * navigator.userAgentData:\n * 'macOS 14.2.1 arm macOS Not A(Brand/99.0.0.0;Google Chrome/121.0.6167.160;Chromium/121.0.6167.160'\n * navigator.userAgent:\n * 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0'\n */\nexport const getDeviceName = async () => {\n const { userAgentData } = navigator;\n if (!userAgentData)\n return navigator.userAgent;\n const { platform = '', platformVersion = '', model = '', architecture = '', fullVersionList = [], } = await userAgentData.getHighEntropyValues([\n 'platform',\n 'platformVersion',\n 'architecture',\n 'model',\n 'fullVersionList',\n ]);\n const versionList = fullVersionList\n .map((v) => `${v.brand}/${v.version}`)\n .join(';');\n const deviceName = [\n platform,\n platformVersion,\n architecture,\n model,\n platform,\n versionList,\n ]\n .filter(value => value)\n .join(' ');\n return deviceName || navigator.userAgent;\n};\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,aAAa,GAAG,YAAY;AACzC,IAAI,MAAM,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;AACxC,IAAI,IAAI,CAAC,aAAa;AACtB,QAAQ,OAAO,SAAS,CAAC,SAAS,CAAC;AACnC,IAAI,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,eAAe,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,YAAY,GAAG,EAAE,EAAE,eAAe,GAAG,EAAE,GAAG,GAAG,MAAM,aAAa,CAAC,oBAAoB,CAAC;AACnJ,QAAQ,UAAU;AAClB,QAAQ,iBAAiB;AACzB,QAAQ,cAAc;AACtB,QAAQ,OAAO;AACf,QAAQ,iBAAiB;AACzB,KAAK,CAAC,CAAC;AACP,IAAI,MAAM,WAAW,GAAG,eAAe;AACvC,SAAS,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAC9C,SAAS,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,QAAQ;AAChB,QAAQ,eAAe;AACvB,QAAQ,YAAY;AACpB,QAAQ,KAAK;AACb,QAAQ,QAAQ;AAChB,QAAQ,WAAW;AACnB,KAAK;AACL,SAAS,MAAM,CAAC,KAAK,IAAI,KAAK,CAAC;AAC/B,SAAS,IAAI,CAAC,GAAG,CAAC,CAAC;AACnB,IAAI,OAAO,UAAU,IAAI,SAAS,CAAC,SAAS,CAAC;AAC7C;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/core",
3
- "version": "6.8.1-unstable.b818753.0+b818753",
3
+ "version": "6.9.0",
4
4
  "description": "Core category of aws-amplify",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -60,7 +60,7 @@
60
60
  "uuid": "^9.0.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@aws-amplify/react-native": "1.1.7-unstable.b818753.0+b818753",
63
+ "@aws-amplify/react-native": "1.1.6",
64
64
  "@types/js-cookie": "3.0.2",
65
65
  "genversion": "^2.2.0",
66
66
  "typescript": "5.0.2"
@@ -192,5 +192,5 @@
192
192
  ]
193
193
  }
194
194
  },
195
- "gitHead": "b8187536ab3633e6a390ea38b9e8434b23293380"
195
+ "gitHead": "8b6078afa580c241d87bda5b9591d9c97da4949b"
196
196
  }
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export const version = '6.11.1-unstable.b818753.0+b818753';
2
+ export const version = '6.12.0';
@@ -48,5 +48,5 @@ export const getDeviceName = async (): Promise<string> => {
48
48
  .filter(value => value)
49
49
  .join(' ');
50
50
 
51
- return deviceName;
51
+ return deviceName || navigator.userAgent;
52
52
  };