@aws-sdk/util-locate-window 3.34.0 → 3.46.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 +38 -0
- package/dist-cjs/index.js +13 -0
- package/dist-es/index.js +10 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/dist-types/ts3.4/index.d.ts +2 -0
- package/package.json +12 -12
- package/dist/cjs/index.js +0 -14
- package/dist/es/index.js +0 -16
- package/dist/types/ts3.4/index.d.ts +0 -6
- package/src/index.ts +0 -16
- package/tsconfig.cjs.json +0 -14
- package/tsconfig.es.json +0 -15
- package/tsconfig.types.json +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **packages:** end support for Node.js 10.x ([#3141](https://github.com/aws/aws-sdk-js-v3/issues/3141)) ([1a62865](https://github.com/aws/aws-sdk-js-v3/commit/1a6286513f7cdb556708845c512861c5f92eb883))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/util-locate-window
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @aws-sdk/util-locate-window
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
# [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
|
|
7
45
|
|
|
8
46
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.locateWindow = void 0;
|
|
3
|
+
const fallbackWindow = {};
|
|
4
|
+
function locateWindow() {
|
|
5
|
+
if (typeof window !== "undefined") {
|
|
6
|
+
return window;
|
|
7
|
+
}
|
|
8
|
+
else if (typeof self !== "undefined") {
|
|
9
|
+
return self;
|
|
10
|
+
}
|
|
11
|
+
return fallbackWindow;
|
|
12
|
+
}
|
|
13
|
+
exports.locateWindow = locateWindow;
|
package/dist-es/index.js
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-locate-window",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.46.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
7
7
|
"build:es": "tsc -p tsconfig.es.json",
|
|
8
8
|
"build:types": "tsc -p tsconfig.types.json",
|
|
9
|
-
"downlevel
|
|
9
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
10
10
|
"test": "jest"
|
|
11
11
|
},
|
|
12
12
|
"author": {
|
|
@@ -18,24 +18,24 @@
|
|
|
18
18
|
"tslib": "^2.3.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/
|
|
22
|
-
"@types/node": "^10.0.0",
|
|
23
|
-
"jest": "^26.1.0",
|
|
24
|
-
"typescript": "~4.3.5"
|
|
21
|
+
"@types/node": "^10.0.0"
|
|
25
22
|
},
|
|
26
|
-
"main": "./dist
|
|
27
|
-
"module": "./dist
|
|
28
|
-
"types": "./dist
|
|
23
|
+
"main": "./dist-cjs/index.js",
|
|
24
|
+
"module": "./dist-es/index.js",
|
|
25
|
+
"types": "./dist-types/index.d.ts",
|
|
29
26
|
"engines": {
|
|
30
|
-
"node": ">=
|
|
27
|
+
"node": ">= 12.0.0"
|
|
31
28
|
},
|
|
32
29
|
"typesVersions": {
|
|
33
30
|
"<4.0": {
|
|
34
|
-
"dist
|
|
35
|
-
"dist
|
|
31
|
+
"dist-types/*": [
|
|
32
|
+
"dist-types/ts3.4/*"
|
|
36
33
|
]
|
|
37
34
|
}
|
|
38
35
|
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist-*"
|
|
38
|
+
],
|
|
39
39
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-locate-window",
|
|
40
40
|
"repository": {
|
|
41
41
|
"type": "git",
|
package/dist/cjs/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.locateWindow = void 0;
|
|
3
|
-
const fallbackWindow = {};
|
|
4
|
-
function locateWindow() {
|
|
5
|
-
if (typeof window !== "undefined") {
|
|
6
|
-
return window;
|
|
7
|
-
}
|
|
8
|
-
else if (typeof self !== "undefined") {
|
|
9
|
-
return self;
|
|
10
|
-
}
|
|
11
|
-
return fallbackWindow;
|
|
12
|
-
}
|
|
13
|
-
exports.locate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YmFja1dpbmRvdztcbn1cbiJdfQ==
|
package/dist/es/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
var fallbackWindow = {};
|
|
2
|
-
/**
|
|
3
|
-
* Locates the global scope for a browser or browser-like environment. If
|
|
4
|
-
* neither `window` nor `self` is defined by the environment, the same object
|
|
5
|
-
* will be returned on each invocation.
|
|
6
|
-
*/
|
|
7
|
-
export function locateWindow() {
|
|
8
|
-
if (typeof window !== "undefined") {
|
|
9
|
-
return window;
|
|
10
|
-
}
|
|
11
|
-
else if (typeof self !== "undefined") {
|
|
12
|
-
return self;
|
|
13
|
-
}
|
|
14
|
-
return fallbackWindow;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBTSxjQUFjLEdBQUcsRUFBWSxDQUFDO0FBRXBDOzs7O0dBSUc7QUFDSCxNQUFNLFVBQVUsWUFBWTtJQUMxQixJQUFJLE9BQU8sTUFBTSxLQUFLLFdBQVcsRUFBRTtRQUNqQyxPQUFPLE1BQU0sQ0FBQztLQUNmO1NBQU0sSUFBSSxPQUFPLElBQUksS0FBSyxXQUFXLEVBQUU7UUFDdEMsT0FBTyxJQUFJLENBQUM7S0FDYjtJQUVELE9BQU8sY0FBYyxDQUFDO0FBQ3hCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJjb25zdCBmYWxsYmFja1dpbmRvdyA9IHt9IGFzIFdpbmRvdztcblxuLyoqXG4gKiBMb2NhdGVzIHRoZSBnbG9iYWwgc2NvcGUgZm9yIGEgYnJvd3NlciBvciBicm93c2VyLWxpa2UgZW52aXJvbm1lbnQuIElmXG4gKiBuZWl0aGVyIGB3aW5kb3dgIG5vciBgc2VsZmAgaXMgZGVmaW5lZCBieSB0aGUgZW52aXJvbm1lbnQsIHRoZSBzYW1lIG9iamVjdFxuICogd2lsbCBiZSByZXR1cm5lZCBvbiBlYWNoIGludm9jYXRpb24uXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBsb2NhdGVXaW5kb3coKTogV2luZG93IHtcbiAgaWYgKHR5cGVvZiB3aW5kb3cgIT09IFwidW5kZWZpbmVkXCIpIHtcbiAgICByZXR1cm4gd2luZG93O1xuICB9IGVsc2UgaWYgKHR5cGVvZiBzZWxmICE9PSBcInVuZGVmaW5lZFwiKSB7XG4gICAgcmV0dXJuIHNlbGY7XG4gIH1cblxuICByZXR1cm4gZmFsbGJhY2tXaW5kb3c7XG59XG4iXX0=
|
package/src/index.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const fallbackWindow = {} as Window;
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Locates the global scope for a browser or browser-like environment. If
|
|
5
|
-
* neither `window` nor `self` is defined by the environment, the same object
|
|
6
|
-
* will be returned on each invocation.
|
|
7
|
-
*/
|
|
8
|
-
export function locateWindow(): Window {
|
|
9
|
-
if (typeof window !== "undefined") {
|
|
10
|
-
return window;
|
|
11
|
-
} else if (typeof self !== "undefined") {
|
|
12
|
-
return self;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return fallbackWindow;
|
|
16
|
-
}
|
package/tsconfig.cjs.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"noImplicitAny": true,
|
|
5
|
-
"noImplicitThis": true,
|
|
6
|
-
"noImplicitUseStrict": true,
|
|
7
|
-
"outDir": "dist/cjs",
|
|
8
|
-
"rootDir": "src",
|
|
9
|
-
"strict": false,
|
|
10
|
-
"strictNullChecks": true
|
|
11
|
-
},
|
|
12
|
-
"extends": "../../tsconfig.cjs.json",
|
|
13
|
-
"include": ["src/"]
|
|
14
|
-
}
|
package/tsconfig.es.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"lib": ["dom", "es5", "es2015.collection"],
|
|
5
|
-
"noImplicitAny": true,
|
|
6
|
-
"noImplicitThis": true,
|
|
7
|
-
"noImplicitUseStrict": true,
|
|
8
|
-
"outDir": "dist/es",
|
|
9
|
-
"rootDir": "src",
|
|
10
|
-
"strict": false,
|
|
11
|
-
"strictNullChecks": true
|
|
12
|
-
},
|
|
13
|
-
"extends": "../../tsconfig.es.json",
|
|
14
|
-
"include": ["src/"]
|
|
15
|
-
}
|