cdk-lambda-subminute 2.0.273 → 2.0.274

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.1477.0',
23
+ VERSION: '2.1478.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.1477.0",
4
+ "version": "2.1478.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",
@@ -5,6 +5,13 @@ 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.0.5](https://github.com/ljharb/call-bind/compare/v1.0.4...v1.0.5) - 2023-10-19
9
+
10
+ ### Commits
11
+
12
+ - [Fix] throw an error on non-functions as early as possible [`f262408`](https://github.com/ljharb/call-bind/commit/f262408f822c840fbc268080f3ad7c429611066d)
13
+ - [Deps] update `set-function-length` [`3fff271`](https://github.com/ljharb/call-bind/commit/3fff27145a1e3a76a5b74f1d7c3c43d0fa3b9871)
14
+
8
15
  ## [v1.0.4](https://github.com/ljharb/call-bind/compare/v1.0.3...v1.0.4) - 2023-10-19
9
16
 
10
17
  ## [v1.0.3](https://github.com/ljharb/call-bind/compare/v1.0.2...v1.0.3) - 2023-10-19
@@ -4,6 +4,7 @@ var bind = require('function-bind');
4
4
  var GetIntrinsic = require('get-intrinsic');
5
5
  var setFunctionLength = require('set-function-length');
6
6
 
7
+ var $TypeError = GetIntrinsic('%TypeError%');
7
8
  var $apply = GetIntrinsic('%Function.prototype.apply%');
8
9
  var $call = GetIntrinsic('%Function.prototype.call%');
9
10
  var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
@@ -21,6 +22,9 @@ if ($defineProperty) {
21
22
  }
22
23
 
23
24
  module.exports = function callBind(originalFunction) {
25
+ if (typeof originalFunction !== 'function') {
26
+ throw new $TypeError('a function is required');
27
+ }
24
28
  var func = $reflectApply(bind, $call, arguments);
25
29
  return setFunctionLength(
26
30
  func,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "call-bind",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Robustly `.call.bind()` a function",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -15,7 +15,7 @@
15
15
  "lint": "eslint --ext=.js,.mjs .",
16
16
  "postlint": "evalmd README.md",
17
17
  "pretest": "npm run lint",
18
- "tests-only": "nyc tape 'test/*'",
18
+ "tests-only": "nyc tape 'test/**/*.js'",
19
19
  "test": "npm run tests-only",
20
20
  "posttest": "aud --production",
21
21
  "version": "auto-changelog && git add CHANGELOG.md",
@@ -53,20 +53,23 @@
53
53
  "@ljharb/eslint-config": "^21.1.0",
54
54
  "aud": "^2.0.3",
55
55
  "auto-changelog": "^2.4.0",
56
+ "es-value-fixtures": "^1.4.2",
56
57
  "eslint": "=8.8.0",
57
58
  "evalmd": "^0.0.19",
59
+ "for-each": "^0.3.3",
58
60
  "gopd": "^1.0.1",
59
61
  "has-strict-mode": "^1.0.1",
60
62
  "in-publish": "^2.0.1",
61
63
  "npmignore": "^0.3.0",
62
64
  "nyc": "^10.3.2",
65
+ "object-inspect": "^1.13.1",
63
66
  "safe-publish-latest": "^2.0.0",
64
67
  "tape": "^5.7.1"
65
68
  },
66
69
  "dependencies": {
67
70
  "function-bind": "^1.1.2",
68
71
  "get-intrinsic": "^1.2.1",
69
- "set-function-length": "^1.1.0"
72
+ "set-function-length": "^1.1.1"
70
73
  },
71
74
  "testling": {
72
75
  "files": "test/index.js"
@@ -4,6 +4,9 @@ var callBind = require('../');
4
4
  var bind = require('function-bind');
5
5
  var gOPD = require('gopd');
6
6
  var hasStrictMode = require('has-strict-mode')();
7
+ var forEach = require('for-each');
8
+ var inspect = require('object-inspect');
9
+ var v = require('es-value-fixtures');
7
10
 
8
11
  var test = require('tape');
9
12
 
@@ -18,6 +21,14 @@ var functionsHaveConfigurableLengths = !!(
18
21
  );
19
22
 
20
23
  test('callBind', function (t) {
24
+ forEach(v.nonFunctions, function (nonFunction) {
25
+ t['throws'](
26
+ function () { callBind(nonFunction); },
27
+ TypeError,
28
+ inspect(nonFunction) + ' is not a function'
29
+ );
30
+ });
31
+
21
32
  var sentinel = { sentinel: true };
22
33
  var func = function (a, b) {
23
34
  // eslint-disable-next-line no-invalid-this
package/package.json CHANGED
@@ -58,7 +58,7 @@
58
58
  "jsii-pacmak": "^1.90.0",
59
59
  "jsii-rosetta": "1.x",
60
60
  "npm-check-updates": "^16",
61
- "projen": "^0.75.3",
61
+ "projen": "^0.76.0",
62
62
  "source-map-support": "^0.5.21",
63
63
  "standard-version": "^9",
64
64
  "ts-jest": "^27",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "aws-cdk-lib": "^2.95.0",
73
- "aws-sdk": "^2.1477.0",
73
+ "aws-sdk": "^2.1478.0",
74
74
  "constructs": "^10.0.5"
75
75
  },
76
76
  "bundledDependencies": [
@@ -92,7 +92,7 @@
92
92
  ],
93
93
  "main": "lib/index.js",
94
94
  "license": "Apache-2.0",
95
- "version": "2.0.273",
95
+ "version": "2.0.274",
96
96
  "jest": {
97
97
  "testMatch": [
98
98
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",