@aws-sdk/util-locate-window 3.35.0 → 3.47.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,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.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/util-locate-window
9
+
10
+
11
+
12
+
13
+
14
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
15
+
16
+
17
+ ### Features
18
+
19
+ * **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))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/util-locate-window
28
+
29
+
30
+
31
+
32
+
33
+ # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
34
+
35
+
36
+ ### Features
37
+
38
+ * 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))
39
+
40
+
41
+
42
+
43
+
6
44
  # [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
7
45
 
8
46
  **Note:** Version bump only for package @aws-sdk/util-locate-window
package/dist-cjs/index.js CHANGED
@@ -11,4 +11,3 @@ function locateWindow() {
11
11
  return fallbackWindow;
12
12
  }
13
13
  exports.locateWindow = locateWindow;
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fQ==
package/dist-es/index.js CHANGED
@@ -8,4 +8,3 @@ export function locateWindow() {
8
8
  }
9
9
  return fallbackWindow;
10
10
  }
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBTSxjQUFjLEdBQUcsRUFBWSxDQUFDO0FBT3BDLE1BQU0sVUFBVSxZQUFZO0lBQzFCLElBQUksT0FBTyxNQUFNLEtBQUssV0FBVyxFQUFFO1FBQ2pDLE9BQU8sTUFBTSxDQUFDO0tBQ2Y7U0FBTSxJQUFJLE9BQU8sSUFBSSxLQUFLLFdBQVcsRUFBRTtRQUN0QyxPQUFPLElBQUksQ0FBQztLQUNiO0lBRUQsT0FBTyxjQUFjLENBQUM7QUFDeEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImNvbnN0IGZhbGxiYWNrV2luZG93ID0ge30gYXMgV2luZG93O1xuXG4vKipcbiAqIExvY2F0ZXMgdGhlIGdsb2JhbCBzY29wZSBmb3IgYSBicm93c2VyIG9yIGJyb3dzZXItbGlrZSBlbnZpcm9ubWVudC4gSWZcbiAqIG5laXRoZXIgYHdpbmRvd2Agbm9yIGBzZWxmYCBpcyBkZWZpbmVkIGJ5IHRoZSBlbnZpcm9ubWVudCwgdGhlIHNhbWUgb2JqZWN0XG4gKiB3aWxsIGJlIHJldHVybmVkIG9uIGVhY2ggaW52b2NhdGlvbi5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGxvY2F0ZVdpbmRvdygpOiBXaW5kb3cge1xuICBpZiAodHlwZW9mIHdpbmRvdyAhPT0gXCJ1bmRlZmluZWRcIikge1xuICAgIHJldHVybiB3aW5kb3c7XG4gIH0gZWxzZSBpZiAodHlwZW9mIHNlbGYgIT09IFwidW5kZWZpbmVkXCIpIHtcbiAgICByZXR1cm4gc2VsZjtcbiAgfVxuXG4gIHJldHVybiBmYWxsYmFja1dpbmRvdztcbn1cbiJdfQ==
@@ -1,6 +1,2 @@
1
- /**
2
- * Locates the global scope for a browser or browser-like environment. If
3
- * neither `window` nor `self` is defined by the environment, the same object
4
- * will be returned on each invocation.
5
- */
1
+
6
2
  export declare function locateWindow(): Window;
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-locate-window",
3
- "version": "3.35.0",
3
+ "version": "3.47.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-dts": "downlevel-dts dist-types dist-types/ts3.4",
9
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
10
+ "clean": "rimraf ./dist-*",
10
11
  "test": "jest"
11
12
  },
12
13
  "author": {
@@ -18,16 +19,13 @@
18
19
  "tslib": "^2.3.0"
19
20
  },
20
21
  "devDependencies": {
21
- "@types/jest": "^26.0.4",
22
- "@types/node": "^10.0.0",
23
- "jest": "^26.1.0",
24
- "typescript": "~4.3.5"
22
+ "@types/node": "^10.0.0"
25
23
  },
26
24
  "main": "./dist-cjs/index.js",
27
25
  "module": "./dist-es/index.js",
28
26
  "types": "./dist-types/index.d.ts",
29
27
  "engines": {
30
- "node": ">= 10.0.0"
28
+ "node": ">= 12.0.0"
31
29
  },
32
30
  "typesVersions": {
33
31
  "<4.0": {
@@ -36,6 +34,9 @@
36
34
  ]
37
35
  }
38
36
  },
37
+ "files": [
38
+ "dist-*"
39
+ ],
39
40
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-locate-window",
40
41
  "repository": {
41
42
  "type": "git",
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
- }
@@ -1,9 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "declarationDir": "dist-types",
5
- "rootDir": "src"
6
- },
7
- "extends": "../../tsconfig.types.json",
8
- "include": ["src/"]
9
- }