@aws-sdk/util-user-agent-browser 3.18.0 → 3.25.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/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
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
+ # [3.25.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.24.0...v3.25.0) (2021-08-05)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/util-user-agent-browser
9
+
10
+
11
+
12
+
13
+
14
+ # [3.23.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.22.0...v3.23.0) (2021-07-23)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * bump up tslib to 2.3.0 ([#2601](https://github.com/aws/aws-sdk-js-v3/issues/2601)) ([7040faa](https://github.com/aws/aws-sdk-js-v3/commit/7040faac07976c1dcfd5240675b82a2f275b2a55))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.22.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.21.0...v3.22.0) (2021-07-16)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **clients:** prefix `dist/` for typesVersions TS<4 ([#2580](https://github.com/aws/aws-sdk-js-v3/issues/2580)) ([dff5cd4](https://github.com/aws/aws-sdk-js-v3/commit/dff5cd4b6fa00453e938ce8f238c1542ee7ba3d6))
31
+
32
+
33
+
34
+
35
+
36
+ # [3.20.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.19.0...v3.20.0) (2021-07-02)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * replace prepublishOnly script with downlevel-dts ([#2537](https://github.com/aws/aws-sdk-js-v3/issues/2537)) ([63818a1](https://github.com/aws/aws-sdk-js-v3/commit/63818a1e47b08af56f092031a01bbbff0a9af590))
42
+
43
+
44
+
45
+
46
+
6
47
  # [3.18.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.17.0...v3.18.0) (2021-06-04)
7
48
 
8
49
  **Note:** Version bump only for package @aws-sdk/util-user-agent-browser
@@ -0,0 +1,4 @@
1
+ export interface DefaultUserAgentOptions {
2
+ serviceId?: string;
3
+ clientVersion: string;
4
+ }
@@ -0,0 +1,7 @@
1
+ import { Provider, UserAgent } from "@aws-sdk/types";
2
+ import { DefaultUserAgentOptions } from "./configurations";
3
+ /**
4
+ * Default provider to the user agent in browsers. It's a best effort to infer
5
+ * the device information. It uses bowser library to detect the browser and version
6
+ */
7
+ export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => Provider<UserAgent>;
@@ -0,0 +1,7 @@
1
+ import { Provider, UserAgent } from "@aws-sdk/types";
2
+ import { DefaultUserAgentOptions } from "./configurations";
3
+ /**
4
+ * Default provider to the user agent in ReactNative. It's a best effort to infer
5
+ * the device information. It uses bowser library to detect the browser and virsion
6
+ */
7
+ export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => Provider<UserAgent>;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-browser",
3
- "version": "3.18.0",
3
+ "version": "3.25.0",
4
4
  "scripts": {
5
- "prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
6
5
  "build:cjs": "tsc -p tsconfig.cjs.json",
7
6
  "build:es": "tsc -p tsconfig.es.json",
8
7
  "build": "yarn build:es && yarn build:cjs",
8
+ "downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
9
9
  "test": "jest"
10
10
  },
11
11
  "main": "./dist/cjs/index.js",
@@ -18,20 +18,20 @@
18
18
  "license": "Apache-2.0",
19
19
  "react-native": "dist/es/index.native.js",
20
20
  "dependencies": {
21
- "@aws-sdk/types": "3.18.0",
21
+ "@aws-sdk/types": "3.25.0",
22
22
  "bowser": "^2.11.0",
23
- "tslib": "^2.0.0"
23
+ "tslib": "^2.3.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@aws-sdk/protocol-http": "3.18.0",
26
+ "@aws-sdk/protocol-http": "3.25.0",
27
27
  "@types/jest": "^26.0.4",
28
28
  "jest": "^26.1.0",
29
29
  "typescript": "~4.3.2"
30
30
  },
31
31
  "typesVersions": {
32
32
  "<4.0": {
33
- "types/*": [
34
- "types/ts3.4/*"
33
+ "dist/types/*": [
34
+ "dist/types/ts3.4/*"
35
35
  ]
36
36
  }
37
37
  },