cdk-lambda-subminute 2.0.351 → 2.0.352

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.
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.1535.0',
23
+ VERSION: '2.1536.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.1535.0",
4
+ "version": "2.1536.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [v1.2.0](https://github.com/ljharb/set-function-length/compare/v1.1.1...v1.2.0) - 2024-01-14
9
+
10
+ ### Commits
11
+
12
+ - [New] add types [`f6d9088`](https://github.com/ljharb/set-function-length/commit/f6d9088b9283a3112b21c6776e8bef6d1f30558a)
13
+ - [Fix] ensure `env` properties are always booleans [`0c42f84`](https://github.com/ljharb/set-function-length/commit/0c42f84979086389b3229e1b4272697fd352275a)
14
+ - [Dev Deps] update `aud`, `call-bind`, `npmignore`, `tape` [`2b75f75`](https://github.com/ljharb/set-function-length/commit/2b75f75468093a4bb8ce8ca989b2edd2e80d95d1)
15
+ - [Deps] update `get-intrinsic`, `has-property-descriptors` [`19bf0fc`](https://github.com/ljharb/set-function-length/commit/19bf0fc4ffaa5ad425acbfa150516be9f3b6263a)
16
+ - [meta] add `sideEffects` flag [`8bb9b78`](https://github.com/ljharb/set-function-length/commit/8bb9b78c11c621123f725c9470222f43466c01d0)
17
+
8
18
  ## [v1.1.1](https://github.com/ljharb/set-function-length/compare/v1.1.0...v1.1.1) - 2023-10-19
9
19
 
10
20
  ### Fixed
@@ -0,0 +1,6 @@
1
+ export var boundFnsHaveConfigurableLengths: boolean;
2
+ export var boundFnsHaveWritableLengths: boolean;
3
+ export var functionsHaveConfigurableLengths: boolean;
4
+ export var functionsHaveWritableLengths: boolean;
5
+ export declare let __proto__: null;
6
+ //# sourceMappingURL=env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["env.js"],"names":[],"mappings":"AAaA,oDAAsE;AAEtE,gDAA8D;AAN9D,qDAA2E;AAE3E,iDAAmE"}
@@ -1,14 +1,19 @@
1
1
  'use strict';
2
2
 
3
3
  var gOPD = require('gopd');
4
+ var bind = require('function-bind');
4
5
 
5
- var functionsHaveConfigurableLengths = gOPD && gOPD(function () {}, 'length').configurable;
6
+ var unbound = gOPD && gOPD(function () {}, 'length');
7
+ // @ts-expect-error ts(2555) TS is overly strict with .call
8
+ var bound = gOPD && gOPD(bind.call(function () {}), 'length');
6
9
 
7
- var functionsHaveWritableLengths = gOPD && gOPD(function () {}, 'length').writable;
10
+ var functionsHaveConfigurableLengths = !!(unbound && unbound.configurable);
8
11
 
9
- var boundFnsHaveConfigurableLengths = gOPD && gOPD(function () {}.bind(), 'length').configurable;
12
+ var functionsHaveWritableLengths = !!(unbound && unbound.writable);
10
13
 
11
- var boundFnsHaveWritableLengths = gOPD && gOPD(function () {}.bind(), 'length').writable;
14
+ var boundFnsHaveConfigurableLengths = !!(bound && bound.configurable);
15
+
16
+ var boundFnsHaveWritableLengths = !!(bound && bound.writable);
12
17
 
13
18
  module.exports = {
14
19
  __proto__: null,
@@ -0,0 +1,7 @@
1
+ declare namespace _exports {
2
+ export { Func };
3
+ }
4
+ declare const _exports: <T extends Func = Func>(fn: T, length: number, loose?: boolean) => T;
5
+ export = _exports;
6
+ type Func = (...args: unknown[]) => unknown;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";;;+DAYkD,MAAM,UAAU,OAAO;;sBAFjD,OAAO,EAAE,KAAK,OAAO"}
@@ -8,6 +8,9 @@ var gOPD = require('gopd');
8
8
  var $TypeError = GetIntrinsic('%TypeError%');
9
9
  var $floor = GetIntrinsic('%Math.floor%');
10
10
 
11
+ /** @typedef {(...args: unknown[]) => unknown} Func */
12
+
13
+ /** @type {<T extends Func = Func>(fn: T, length: number, loose?: boolean) => T} */
11
14
  module.exports = function setFunctionLength(fn, length) {
12
15
  if (typeof fn !== 'function') {
13
16
  throw new $TypeError('`fn` is not a function');
@@ -32,9 +35,9 @@ module.exports = function setFunctionLength(fn, length) {
32
35
 
33
36
  if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
34
37
  if (hasDescriptors) {
35
- define(fn, 'length', length, true, true);
38
+ define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
36
39
  } else {
37
- define(fn, 'length', length);
40
+ define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
38
41
  }
39
42
  }
40
43
  return fn;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "set-function-length",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Set a function's length property",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -8,15 +8,21 @@
8
8
  "./env": "./env.js",
9
9
  "./package.json": "./package.json"
10
10
  },
11
+ "sideEffects": false,
11
12
  "directories": {
12
13
  "test": "test"
13
14
  },
14
15
  "scripts": {
15
- "prepack": "npmignore --auto --commentLines=autogenerated",
16
+ "prepack": "npmignore --auto --commentLines=autogenerated && npm run emit",
16
17
  "prepublish": "not-in-publish || npm run prepublishOnly",
17
18
  "prepublishOnly": "safe-publish-latest",
19
+ "tsc": "tsc -p .",
20
+ "preemit": "rm -f *.ts *.ts.map test/*.ts test/*.ts.map",
21
+ "emit": "npm run tsc -- --noEmit false --emitDeclarationOnly",
22
+ "postemit": "rm test/*.ts test/*.ts.map",
18
23
  "prelint": "evalmd README.md",
19
24
  "lint": "eslint --ext=js,mjs .",
25
+ "postlint": "npm run tsc",
20
26
  "pretest": "npm run lint",
21
27
  "tests-only": "nyc tape 'test/**/*.js'",
22
28
  "test": "npm run tests-only",
@@ -42,27 +48,38 @@
42
48
  "url": "https://github.com/ljharb/set-function-length/issues"
43
49
  },
44
50
  "homepage": "https://github.com/ljharb/set-function-length#readme",
51
+ "dependencies": {
52
+ "define-data-property": "^1.1.1",
53
+ "function-bind": "^1.1.2",
54
+ "get-intrinsic": "^1.2.2",
55
+ "gopd": "^1.0.1",
56
+ "has-property-descriptors": "^1.0.1"
57
+ },
45
58
  "devDependencies": {
46
59
  "@ljharb/eslint-config": "^21.1.0",
47
- "aud": "^2.0.3",
60
+ "@types/call-bind": "^1.0.5",
61
+ "@types/define-properties": "^1.1.5",
62
+ "@types/es-value-fixtures": "^1.4.4",
63
+ "@types/for-each": "^0.3.3",
64
+ "@types/function-bind": "^1.1.10",
65
+ "@types/gopd": "^1.0.3",
66
+ "@types/has-property-descriptors": "^1.0.3",
67
+ "@types/object-inspect": "^1.8.4",
68
+ "@types/tape": "^5.6.4",
69
+ "aud": "^2.0.4",
48
70
  "auto-changelog": "^2.4.0",
49
- "call-bind": "^1.0.4",
71
+ "call-bind": "^1.0.5",
50
72
  "es-value-fixtures": "^1.4.2",
51
73
  "eslint": "=8.8.0",
52
74
  "evalmd": "^0.0.19",
53
75
  "for-each": "^0.3.3",
54
76
  "in-publish": "^2.0.1",
55
- "npmignore": "^0.3.0",
77
+ "npmignore": "^0.3.1",
56
78
  "nyc": "^10.3.2",
57
79
  "object-inspect": "^1.13.1",
58
80
  "safe-publish-latest": "^2.0.0",
59
- "tape": "^5.7.1"
60
- },
61
- "dependencies": {
62
- "define-data-property": "^1.1.1",
63
- "get-intrinsic": "^1.2.1",
64
- "gopd": "^1.0.1",
65
- "has-property-descriptors": "^1.0.0"
81
+ "tape": "^5.7.3",
82
+ "typescript": "^5.4.0-dev.20240113"
66
83
  },
67
84
  "engines": {
68
85
  "node": ">= 0.4"
@@ -78,7 +95,9 @@
78
95
  "publishConfig": {
79
96
  "ignore": [
80
97
  ".github/workflows",
81
- "test"
98
+ "test",
99
+ "!*.d.ts",
100
+ "!*.d.ts.map"
82
101
  ]
83
102
  }
84
103
  }
@@ -0,0 +1,59 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+
7
+ /* Language and Environment */
8
+ "target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
9
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
10
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
11
+ "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
12
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
13
+
14
+ /* Modules */
15
+ "module": "commonjs", /* Specify what module code is generated. */
16
+ // "rootDir": "./", /* Specify the root folder within your source files. */
17
+ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
18
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
19
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
20
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
21
+ "typeRoots": ["types"], /* Specify multiple folders that act like './node_modules/@types'. */
22
+ "resolveJsonModule": true, /* Enable importing .json files. */
23
+
24
+ /* JavaScript Support */
25
+ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
26
+ "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
27
+ "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
28
+
29
+ /* Emit */
30
+ "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
31
+ "declarationMap": true, /* Create sourcemaps for d.ts files. */
32
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
33
+ "noEmit": true, /* Disable emitting files from a compilation. */
34
+
35
+ /* Interop Constraints */
36
+ "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
37
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
38
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
39
+
40
+ /* Type Checking */
41
+ "strict": true, /* Enable all strict type-checking options. */
42
+ "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
43
+ "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
44
+ "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
45
+ "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
46
+ "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
47
+ "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
48
+ "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
49
+ "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
50
+ "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
51
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
52
+
53
+ /* Completeness */
54
+ // "skipLibCheck": true /* Skip type checking all .d.ts files. */
55
+ },
56
+ "exclude": [
57
+ "coverage"
58
+ ]
59
+ }
package/package.json CHANGED
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "aws-cdk-lib": "^2.95.0",
70
- "aws-sdk": "^2.1535.0",
70
+ "aws-sdk": "^2.1536.0",
71
71
  "constructs": "^10.0.5"
72
72
  },
73
73
  "bundledDependencies": [
@@ -89,7 +89,7 @@
89
89
  ],
90
90
  "main": "lib/index.js",
91
91
  "license": "Apache-2.0",
92
- "version": "2.0.351",
92
+ "version": "2.0.352",
93
93
  "jest": {
94
94
  "testMatch": [
95
95
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",