@azure/core-amqp 3.1.2-alpha.20221007.1 → 3.2.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.
@@ -0,0 +1,22 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT license.
3
+ /*
4
+ * NOTE: When moving this file, please update "react-native" section in package.json.
5
+ */
6
+ const { Platform } = require("react-native"); // eslint-disable-line import/no-extraneous-dependencies, @typescript-eslint/no-require-imports
7
+ /**
8
+ * Returns information about the platform this function is being run on.
9
+ * @internal
10
+ */
11
+ export function getPlatformInfo() {
12
+ return `(${Platform.OS}-${Platform.Version})`;
13
+ }
14
+ /**
15
+ * Returns information about Node.js this function is being run on.
16
+ * @internal
17
+ */
18
+ export function getFrameworkInfo() {
19
+ const { major, minor, patch } = Platform.constants.reactNativeVersion;
20
+ return `react-native/${major}.${minor}.${patch}`;
21
+ }
22
+ //# sourceMappingURL=runtimeInfo.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtimeInfo.native.js","sourceRoot":"","sources":["../../../src/util/runtimeInfo.native.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,+FAA+F;AAE7I;;;GAGG;AACH,MAAM,UAAU,eAAe;IAC7B,OAAO,IAAI,QAAQ,CAAC,EAAE,IAAI,QAAQ,CAAC,OAAO,GAAG,CAAC;AAChD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gBAAgB;IAC9B,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,SAAS,CAAC,kBAAkB,CAAC;IACtE,OAAO,gBAAgB,KAAK,IAAI,KAAK,IAAI,KAAK,EAAE,CAAC;AACnD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/*\n * NOTE: When moving this file, please update \"react-native\" section in package.json.\n */\nconst { Platform } = require(\"react-native\"); // eslint-disable-line import/no-extraneous-dependencies, @typescript-eslint/no-require-imports\n\n/**\n * Returns information about the platform this function is being run on.\n * @internal\n */\nexport function getPlatformInfo(): string {\n return `(${Platform.OS}-${Platform.Version})`;\n}\n\n/**\n * Returns information about Node.js this function is being run on.\n * @internal\n */\nexport function getFrameworkInfo(): string {\n const { major, minor, patch } = Platform.constants.reactNativeVersion;\n return `react-native/${major}.${minor}.${patch}`;\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@azure/core-amqp",
3
3
  "sdk-type": "client",
4
- "version": "3.1.2-alpha.20221007.1",
4
+ "version": "3.2.0",
5
5
  "description": "Common library for amqp based azure sdks like @azure/event-hubs.",
6
6
  "author": "Microsoft Corporation",
7
7
  "license": "MIT",
@@ -25,6 +25,10 @@
25
25
  "./dist-esm/src/util/runtimeInfo.js": "./dist-esm/src/util/runtimeInfo.browser.js",
26
26
  "buffer": "buffer"
27
27
  },
28
+ "react-native": {
29
+ "./dist/index.js": "dist-esm/src/index.js",
30
+ "./dist-esm/src/util/runtimeInfo.js": "./dist-esm/src/util/runtimeInfo.native.js"
31
+ },
28
32
  "files": [
29
33
  "dist/",
30
34
  "dist-esm/src/",
@@ -58,7 +62,7 @@
58
62
  "unit-test": "npm run unit-test:node && npm run unit-test:browser"
59
63
  },
60
64
  "engines": {
61
- "node": ">=12.0.0"
65
+ "node": ">=14.0.0"
62
66
  },
63
67
  "homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-amqp/README.md",
64
68
  "sideEffects": false,
@@ -82,8 +86,8 @@
82
86
  "util": "^0.12.1"
83
87
  },
84
88
  "devDependencies": {
85
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
86
- "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
89
+ "@azure/dev-tool": "^1.0.0",
90
+ "@azure/eslint-plugin-azure-sdk": "^3.0.0",
87
91
  "@microsoft/api-extractor": "^7.31.1",
88
92
  "@rollup/plugin-commonjs": "^21.0.1",
89
93
  "@rollup/plugin-inject": "^4.0.0",
@@ -94,7 +98,7 @@
94
98
  "@types/chai": "^4.1.6",
95
99
  "@types/debug": "^4.1.4",
96
100
  "@types/mocha": "^7.0.2",
97
- "@types/node": "^12.0.0",
101
+ "@types/node": "^14.0.0",
98
102
  "@types/sinon": "^9.0.4",
99
103
  "@types/ws": "^7.2.4",
100
104
  "chai": "^4.2.0",