cdk-common 2.0.649 → 2.0.650

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.
Files changed (53) hide show
  1. package/.jsii +2 -2
  2. package/lib/main.js +1 -1
  3. package/node_modules/call-bind/.eslintrc +0 -1
  4. package/node_modules/call-bind/.nycrc +0 -4
  5. package/node_modules/call-bind/CHANGELOG.md +28 -0
  6. package/node_modules/call-bind/README.md +63 -1
  7. package/node_modules/call-bind/index.js +6 -13
  8. package/node_modules/call-bind/package.json +29 -22
  9. package/node_modules/call-bind/test/callBound.js +0 -1
  10. package/node_modules/call-bind/test/index.js +7 -4
  11. package/node_modules/define-data-property/.eslintrc +24 -0
  12. package/node_modules/define-data-property/.github/FUNDING.yml +12 -0
  13. package/node_modules/define-data-property/.nycrc +13 -0
  14. package/node_modules/define-data-property/CHANGELOG.md +41 -0
  15. package/node_modules/define-data-property/LICENSE +21 -0
  16. package/node_modules/define-data-property/README.md +67 -0
  17. package/node_modules/define-data-property/index.d.ts +3 -0
  18. package/node_modules/define-data-property/index.d.ts.map +1 -0
  19. package/node_modules/define-data-property/index.js +68 -0
  20. package/node_modules/define-data-property/package.json +113 -0
  21. package/node_modules/define-data-property/test/index.js +392 -0
  22. package/node_modules/define-data-property/tsconfig.json +59 -0
  23. package/node_modules/gopd/.eslintrc +16 -0
  24. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  25. package/node_modules/gopd/CHANGELOG.md +25 -0
  26. package/node_modules/gopd/LICENSE +21 -0
  27. package/node_modules/gopd/README.md +40 -0
  28. package/node_modules/gopd/index.js +16 -0
  29. package/node_modules/gopd/package.json +71 -0
  30. package/node_modules/gopd/test/index.js +35 -0
  31. package/node_modules/has-property-descriptors/.eslintrc +13 -0
  32. package/node_modules/has-property-descriptors/.github/FUNDING.yml +12 -0
  33. package/node_modules/has-property-descriptors/.nycrc +9 -0
  34. package/node_modules/has-property-descriptors/CHANGELOG.md +16 -0
  35. package/node_modules/has-property-descriptors/LICENSE +21 -0
  36. package/node_modules/has-property-descriptors/README.md +43 -0
  37. package/node_modules/has-property-descriptors/index.js +33 -0
  38. package/node_modules/has-property-descriptors/package.json +70 -0
  39. package/node_modules/has-property-descriptors/test/index.js +57 -0
  40. package/node_modules/object-inspect/CHANGELOG.md +6 -0
  41. package/node_modules/object-inspect/index.js +6 -5
  42. package/node_modules/object-inspect/package.json +1 -1
  43. package/node_modules/object-inspect/test/global.js +1 -1
  44. package/node_modules/set-function-length/.eslintrc +27 -0
  45. package/node_modules/set-function-length/.github/FUNDING.yml +12 -0
  46. package/node_modules/set-function-length/.nycrc +13 -0
  47. package/node_modules/set-function-length/CHANGELOG.md +41 -0
  48. package/node_modules/set-function-length/LICENSE +21 -0
  49. package/node_modules/set-function-length/README.md +56 -0
  50. package/node_modules/set-function-length/env.js +19 -0
  51. package/node_modules/set-function-length/index.js +41 -0
  52. package/node_modules/set-function-length/package.json +84 -0
  53. package/package.json +2 -2
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ var GetIntrinsic = require('get-intrinsic');
4
+ var define = require('define-data-property');
5
+ var hasDescriptors = require('has-property-descriptors')();
6
+ var gOPD = require('gopd');
7
+
8
+ var $TypeError = GetIntrinsic('%TypeError%');
9
+ var $floor = GetIntrinsic('%Math.floor%');
10
+
11
+ module.exports = function setFunctionLength(fn, length) {
12
+ if (typeof fn !== 'function') {
13
+ throw new $TypeError('`fn` is not a function');
14
+ }
15
+ if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
16
+ throw new $TypeError('`length` must be a positive 32-bit integer');
17
+ }
18
+
19
+ var loose = arguments.length > 2 && !!arguments[2];
20
+
21
+ var functionLengthIsConfigurable = true;
22
+ var functionLengthIsWritable = true;
23
+ if ('length' in fn && gOPD) {
24
+ var desc = gOPD(fn, 'length');
25
+ if (desc && !desc.configurable) {
26
+ functionLengthIsConfigurable = false;
27
+ }
28
+ if (desc && !desc.writable) {
29
+ functionLengthIsWritable = false;
30
+ }
31
+ }
32
+
33
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
34
+ if (hasDescriptors) {
35
+ define(fn, 'length', length, true, true);
36
+ } else {
37
+ define(fn, 'length', length);
38
+ }
39
+ }
40
+ return fn;
41
+ };
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "set-function-length",
3
+ "version": "1.1.1",
4
+ "description": "Set a function's length property",
5
+ "main": "index.js",
6
+ "exports": {
7
+ ".": "./index.js",
8
+ "./env": "./env.js",
9
+ "./package.json": "./package.json"
10
+ },
11
+ "directories": {
12
+ "test": "test"
13
+ },
14
+ "scripts": {
15
+ "prepack": "npmignore --auto --commentLines=autogenerated",
16
+ "prepublish": "not-in-publish || npm run prepublishOnly",
17
+ "prepublishOnly": "safe-publish-latest",
18
+ "prelint": "evalmd README.md",
19
+ "lint": "eslint --ext=js,mjs .",
20
+ "pretest": "npm run lint",
21
+ "tests-only": "nyc tape 'test/**/*.js'",
22
+ "test": "npm run tests-only",
23
+ "posttest": "aud --production",
24
+ "version": "auto-changelog && git add CHANGELOG.md",
25
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
26
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/ljharb/set-function-length.git"
30
+ },
31
+ "keywords": [
32
+ "javascript",
33
+ "ecmascript",
34
+ "set",
35
+ "function",
36
+ "length",
37
+ "function.length"
38
+ ],
39
+ "author": "Jordan Harband <ljharb@gmail.com>",
40
+ "license": "MIT",
41
+ "bugs": {
42
+ "url": "https://github.com/ljharb/set-function-length/issues"
43
+ },
44
+ "homepage": "https://github.com/ljharb/set-function-length#readme",
45
+ "devDependencies": {
46
+ "@ljharb/eslint-config": "^21.1.0",
47
+ "aud": "^2.0.3",
48
+ "auto-changelog": "^2.4.0",
49
+ "call-bind": "^1.0.4",
50
+ "es-value-fixtures": "^1.4.2",
51
+ "eslint": "=8.8.0",
52
+ "evalmd": "^0.0.19",
53
+ "for-each": "^0.3.3",
54
+ "in-publish": "^2.0.1",
55
+ "npmignore": "^0.3.0",
56
+ "nyc": "^10.3.2",
57
+ "object-inspect": "^1.13.1",
58
+ "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"
66
+ },
67
+ "engines": {
68
+ "node": ">= 0.4"
69
+ },
70
+ "auto-changelog": {
71
+ "output": "CHANGELOG.md",
72
+ "template": "keepachangelog",
73
+ "unreleased": false,
74
+ "commitLimit": false,
75
+ "backfillLimit": false,
76
+ "hideCredit": true
77
+ },
78
+ "publishConfig": {
79
+ "ignore": [
80
+ ".github/workflows",
81
+ "test"
82
+ ]
83
+ }
84
+ }
package/package.json CHANGED
@@ -55,7 +55,7 @@
55
55
  "jsii-pacmak": "^1.90.0",
56
56
  "jsii-rosetta": "1.x",
57
57
  "npm-check-updates": "^16",
58
- "projen": "0.75.2",
58
+ "projen": "0.75.3",
59
59
  "standard-version": "^9",
60
60
  "ts-jest": "^27",
61
61
  "typescript": "^4.9"
@@ -87,7 +87,7 @@
87
87
  ],
88
88
  "main": "lib/index.js",
89
89
  "license": "Apache-2.0",
90
- "version": "2.0.649",
90
+ "version": "2.0.650",
91
91
  "jest": {
92
92
  "testMatch": [
93
93
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",