@cdklabs/cdk-construct-connect-datalake 0.0.13 → 0.0.14

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 (124) hide show
  1. package/.jsii +9 -9
  2. package/lib/index.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  4. package/node_modules/@aws-sdk/client-connect/package.json +5 -5
  5. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +6 -4
  6. package/node_modules/@aws-sdk/client-glue/dist-cjs/schemas/schemas_0.js +57 -30
  7. package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +6 -4
  8. package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +42 -15
  9. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableCommand.d.ts +121 -0
  10. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableVersionCommand.d.ts +118 -0
  11. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTableVersionsCommand.d.ts +118 -0
  12. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetTablesCommand.d.ts +119 -1
  13. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetUnfilteredTableMetadataCommand.d.ts +118 -0
  14. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchTablesCommand.d.ts +118 -0
  15. package/node_modules/@aws-sdk/client-glue/dist-types/commands/UpdateCrawlerScheduleCommand.d.ts +2 -1
  16. package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +14 -12
  17. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +87 -6
  18. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +11 -1
  19. package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +1 -0
  20. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/UpdateCrawlerScheduleCommand.d.ts +2 -4
  21. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +8 -6
  22. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +18 -1
  23. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +3 -0
  24. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
  25. package/node_modules/@aws-sdk/client-glue/package.json +5 -5
  26. package/node_modules/@aws-sdk/client-lakeformation/package.json +5 -5
  27. package/node_modules/@aws-sdk/client-ram/package.json +5 -5
  28. package/node_modules/@aws-sdk/client-sts/package.json +6 -6
  29. package/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -2297
  30. package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
  31. package/node_modules/@aws-sdk/core/dist-types/index.d.ts +5 -5
  32. package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +5 -5
  33. package/node_modules/@aws-sdk/core/package.json +8 -8
  34. package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
  35. package/node_modules/@aws-sdk/credential-provider-http/package.json +6 -5
  36. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  37. package/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
  38. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  39. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  40. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +4 -1
  41. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +4 -1
  42. package/node_modules/@aws-sdk/credential-provider-sso/package.json +9 -7
  43. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
  44. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  45. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  46. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  47. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  48. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  49. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  50. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +7 -6
  51. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  52. package/node_modules/@aws-sdk/types/package.json +2 -2
  53. package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
  54. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/CHANGELOG.md +8 -0
  55. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/README.md +9 -0
  56. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/package.json +4 -1
  57. package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/strnum.js +9 -1
  58. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  59. package/node_modules/@nodable/entities/package.json +4 -1
  60. package/node_modules/@nodable/entities/src/EntityDecoder.js +104 -3
  61. package/node_modules/@nodable/entities/src/index.d.ts +77 -0
  62. package/node_modules/@nodable/entities/src/index.js +1 -1
  63. package/node_modules/@smithy/core/dist-cjs/index.js +13 -15
  64. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +29 -31
  65. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.browser.js +2 -4
  66. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +7 -9
  67. package/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.native.js +3 -5
  68. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +22 -23
  69. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +10 -11
  70. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +38 -39
  71. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +10 -11
  72. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +14 -17
  73. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +20 -23
  74. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +9 -11
  75. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +11 -13
  76. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +59 -60
  77. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +26 -27
  78. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +28 -29
  79. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +5 -7
  80. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -6
  81. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +23 -25
  82. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -6
  83. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +2 -4
  84. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +1 -1
  85. package/node_modules/@smithy/core/dist-es/legacy-root-exports/middleware-http-signing/httpSigningMiddleware.js +1 -1
  86. package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +1 -1
  87. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/endpointMiddleware.js +1 -1
  88. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +2 -2
  89. package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/DefaultRateLimiter.js +1 -1
  90. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
  91. package/node_modules/@smithy/core/package.json +18 -17
  92. package/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +23 -24
  93. package/node_modules/@smithy/credential-provider-imds/package.json +7 -7
  94. package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +6 -8
  95. package/node_modules/@smithy/fetch-http-handler/package.json +10 -10
  96. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +11 -13
  97. package/node_modules/@smithy/node-http-handler/package.json +8 -8
  98. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +27 -29
  99. package/node_modules/@smithy/signature-v4/package.json +7 -7
  100. package/node_modules/@smithy/types/dist-cjs/index.js +23 -18
  101. package/node_modules/@smithy/types/package.json +10 -10
  102. package/node_modules/anynum/LICENSE +21 -0
  103. package/node_modules/anynum/README.md +142 -0
  104. package/node_modules/anynum/anynum.js +135 -0
  105. package/node_modules/anynum/digitTable.js +116 -0
  106. package/node_modules/anynum/package.json +42 -0
  107. package/node_modules/watchpack/README.md +9 -0
  108. package/node_modules/watchpack/lib/DirectoryWatcher.js +182 -25
  109. package/node_modules/watchpack/lib/index.js +55 -15
  110. package/node_modules/watchpack/lib/reducePlan.js +56 -35
  111. package/node_modules/watchpack/lib/util/globToRegExp.js +142 -0
  112. package/node_modules/watchpack/lib/watchEventSource.js +18 -10
  113. package/node_modules/watchpack/package.json +17 -23
  114. package/node_modules/watchpack/types/DirectoryWatcher.d.ts +2 -0
  115. package/node_modules/watchpack/types/index.d.ts +121 -113
  116. package/node_modules/watchpack/types/util/globToRegExp.d.ts +2 -0
  117. package/node_modules/watchpack/types/watchpack.d.ts +1 -1
  118. package/package.json +10 -10
  119. package/node_modules/glob-to-regexp/.travis.yml +0 -4
  120. package/node_modules/glob-to-regexp/README.md +0 -75
  121. package/node_modules/glob-to-regexp/index.js +0 -130
  122. package/node_modules/glob-to-regexp/package.json +0 -23
  123. package/node_modules/glob-to-regexp/test.js +0 -235
  124. /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/LICENSE +0 -0
@@ -61,6 +61,9 @@ function createEPERMError(filePath) {
61
61
  * @returns {(type: "rename" | "change", filename: string) => void} handler of change event
62
62
  */
63
63
  function createHandleChangeEvent(watcher, filePath, handleChangeEvent) {
64
+ // path.basename(filePath) is invariant for the lifetime of the watcher,
65
+ // so compute it once rather than on every dispatched event.
66
+ const ownBasename = path.basename(filePath);
64
67
  return (type, filename) => {
65
68
  // TODO: After Node.js v22, fs.watch(dir) and deleting a dir will trigger the rename change event.
66
69
  // Here we just ignore it and keep the same behavior as before v22
@@ -68,7 +71,7 @@ function createHandleChangeEvent(watcher, filePath, handleChangeEvent) {
68
71
  if (
69
72
  type === "rename" &&
70
73
  path.isAbsolute(filename) &&
71
- path.basename(filename) === path.basename(filePath)
74
+ path.basename(filename) === ownBasename
72
75
  ) {
73
76
  if (!IS_OSX) {
74
77
  // Before v22, windows will throw EPERM error
@@ -429,16 +432,21 @@ module.exports.watch = (filePath) => {
429
432
  directWatcher.add(watcher);
430
433
  return watcher;
431
434
  }
432
- let current = filePath;
433
- for (;;) {
434
- const recursiveWatcher = recursiveWatchers.get(current);
435
- if (recursiveWatcher !== undefined) {
436
- recursiveWatcher.add(filePath, watcher);
437
- return watcher;
435
+ // Only platforms with recursive fs.watch ever populate recursiveWatchers,
436
+ // so skip the entire parent walk when the map is empty (always the case
437
+ // on Linux and the common case before the watcher limit is reached).
438
+ if (recursiveWatchers.size !== 0) {
439
+ let current = filePath;
440
+ for (;;) {
441
+ const recursiveWatcher = recursiveWatchers.get(current);
442
+ if (recursiveWatcher !== undefined) {
443
+ recursiveWatcher.add(filePath, watcher);
444
+ return watcher;
445
+ }
446
+ const parent = path.dirname(current);
447
+ if (parent === current) break;
448
+ current = parent;
438
449
  }
439
- const parent = path.dirname(current);
440
- if (parent === current) break;
441
- current = parent;
442
450
  }
443
451
  // Queue up watcher for creation
444
452
  pendingWatchers.set(watcher, filePath);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "watchpack",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/webpack/watchpack",
6
6
  "bugs": {
@@ -24,12 +24,12 @@
24
24
  "scripts": {
25
25
  "lint": "npm run lint:code && npm run lint:types && npm run lint:types-test && npm run lint:declarations && npm run fmt:check",
26
26
  "lint:code": "eslint --cache .",
27
- "lint:types": "tsc",
28
- "lint:types-test": "tsc -p tsconfig.types.test.json",
27
+ "lint:types": "tsc --noEmit",
28
+ "lint:types-test": "tsc -p tsconfig.types.test.json --noEmit",
29
29
  "lint:declarations": "npm run fix:declarations && git diff --exit-code ./types",
30
30
  "fix": "npm run fix:code && npm run fix:declarations",
31
31
  "fix:code": "npm run lint:code -- --fix",
32
- "fix:declarations": "tsc --noEmit false --declaration --emitDeclarationOnly --outDir types && npm run fmt -- ./types",
32
+ "fix:declarations": "tsc && npm run fmt -- ./types",
33
33
  "fmt": "npm run fmt:base -- --log-level warn --write",
34
34
  "fmt:check": "npm run fmt:base -- --check",
35
35
  "fmt:base": "prettier --cache --ignore-unknown .",
@@ -38,35 +38,29 @@
38
38
  "test:base": "jest --runInBand",
39
39
  "test:only": "npm run test:base",
40
40
  "test:watch": "npm run test:base -- --watch",
41
- "test:coverage": "npm run test:base -- --collectCoverageFrom=\"lib/**/*.js\" --coverage"
41
+ "test:coverage": "npm run test:base -- --collectCoverageFrom=\"lib/**/*.js\" --coverage",
42
+ "benchmark": "node --max-old-space-size=4096 --hash-seed=1 --random-seed=1 --no-opt --predictable --predictable-gc-schedule --interpreted-frames-native-stack --allow-natives-syntax --expose-gc --no-concurrent-sweeping ./benchmark/run.mjs",
43
+ "version": "changeset version",
44
+ "release": "changeset publish"
42
45
  },
43
46
  "dependencies": {
44
- "glob-to-regexp": "^0.4.1",
45
47
  "graceful-fs": "^4.1.2"
46
48
  },
47
49
  "devDependencies": {
48
- "@eslint/js": "^9.28.0",
49
- "@eslint/markdown": "^7.5.1",
50
- "@stylistic/eslint-plugin": "^5.6.1",
50
+ "@changesets/cli": "^2.30.0",
51
+ "@changesets/get-github-info": "^0.8.0",
52
+ "@codspeed/core": "^5.2.0",
51
53
  "@types/glob-to-regexp": "^0.4.4",
52
54
  "@types/graceful-fs": "^4.1.9",
53
- "@types/jest": "^27.5.1",
55
+ "@types/jest": "^30.0.0",
54
56
  "@types/node": "^24.10.4",
55
57
  "eslint": "^9.39.2",
56
- "eslint-config-prettier": "^10.1.8",
57
- "eslint-config-webpack": "^4.7.3",
58
- "eslint-plugin-import": "^2.32.0",
59
- "eslint-plugin-jest": "^29.5.0",
60
- "eslint-plugin-jsdoc": "^61.5.0",
61
- "eslint-plugin-n": "^17.23.1",
62
- "eslint-plugin-prettier": "^5.5.4",
63
- "eslint-plugin-unicorn": "^62.0.0",
64
- "globals": "^16.5.0",
65
- "jest": "^27.5.1",
58
+ "eslint-config-webpack": "^4.9.3",
59
+ "jest": "^30.3.0",
66
60
  "prettier": "^3.7.4",
67
- "rimraf": "^2.6.2",
68
- "typescript": "^5.9.3",
69
- "write-file-atomic": "^3.0.1"
61
+ "tinybench": "^6.0.0",
62
+ "typescript": "^6.0.2",
63
+ "write-file-atomic": "^8.0.0"
70
64
  },
71
65
  "engines": {
72
66
  "node": ">=10.13.0"
@@ -48,6 +48,8 @@ declare class DirectoryWatcher extends EventEmitter<{
48
48
  filesWithoutCase: Map<string, number>;
49
49
  /** @type {Map<string, Watcher<DirectoryWatcherEvents> | boolean>} */
50
50
  directories: Map<string, Watcher<DirectoryWatcherEvents> | boolean>;
51
+ /** @type {Map<string, Watcher<FileWatcherEvents>>} */
52
+ _symlinkTargetWatchers: Map<string, Watcher<FileWatcherEvents>>;
51
53
  lastWatchEvent: number;
52
54
  initialScan: boolean;
53
55
  ignored: import("./index").IgnoredFunction;
@@ -1,4 +1,123 @@
1
- export = Watchpack;
1
+ declare namespace _exports {
2
+ export {
3
+ WatcherManager,
4
+ DirectoryWatcher,
5
+ DirectoryWatcherEvents,
6
+ FileWatcherEvents,
7
+ EventMap,
8
+ Watcher,
9
+ IgnoredFunction,
10
+ Ignored,
11
+ WatcherOptions,
12
+ WatchOptions,
13
+ NormalizedWatchOptions,
14
+ EventType,
15
+ Entry,
16
+ OnlySafeTimeEntry,
17
+ ExistenceOnlyTimeEntry,
18
+ TimeInfoEntries,
19
+ Changes,
20
+ Removals,
21
+ Aggregated,
22
+ WatchMethodOptions,
23
+ Times,
24
+ WatchpackEvents,
25
+ WatchpackExports,
26
+ };
27
+ }
28
+ declare const _exports: WatchpackExports;
29
+ export = _exports;
30
+ type WatcherManager = import("./getWatcherManager").WatcherManager;
31
+ type DirectoryWatcher = import("./DirectoryWatcher");
32
+ type DirectoryWatcherEvents =
33
+ import("./DirectoryWatcher").DirectoryWatcherEvents;
34
+ type FileWatcherEvents = import("./DirectoryWatcher").FileWatcherEvents;
35
+ type EventMap = Record<string, (...args: any[]) => any>;
36
+ type Watcher<T extends EventMap> = import("./DirectoryWatcher").Watcher<T>;
37
+ type IgnoredFunction = (item: string) => boolean;
38
+ type Ignored = string[] | RegExp | string | IgnoredFunction;
39
+ type WatcherOptions = {
40
+ /**
41
+ * true when need to resolve symlinks and watch symlink and real file, otherwise false
42
+ */
43
+ followSymlinks?: boolean | undefined;
44
+ /**
45
+ * ignore some files from watching (glob pattern or regexp)
46
+ */
47
+ ignored?: Ignored | undefined;
48
+ /**
49
+ * true when need to enable polling mode for watching, otherwise false
50
+ */
51
+ poll?: (number | boolean) | undefined;
52
+ };
53
+ type WatchOptions = WatcherOptions & {
54
+ aggregateTimeout?: number;
55
+ };
56
+ type NormalizedWatchOptions = {
57
+ /**
58
+ * true when need to resolve symlinks and watch symlink and real file, otherwise false
59
+ */
60
+ followSymlinks: boolean;
61
+ /**
62
+ * ignore some files from watching (glob pattern or regexp)
63
+ */
64
+ ignored: IgnoredFunction;
65
+ /**
66
+ * true when need to enable polling mode for watching, otherwise false
67
+ */
68
+ poll?: (number | boolean) | undefined;
69
+ };
70
+ type EventType =
71
+ | `scan (${string})`
72
+ | "change"
73
+ | "rename"
74
+ | `watch ${string}`
75
+ | `directory-removed ${string}`;
76
+ type Entry = {
77
+ safeTime: number;
78
+ timestamp: number;
79
+ accuracy: number;
80
+ };
81
+ type OnlySafeTimeEntry = {
82
+ safeTime: number;
83
+ };
84
+ type ExistenceOnlyTimeEntry = {};
85
+ type TimeInfoEntries = Map<
86
+ string,
87
+ Entry | OnlySafeTimeEntry | ExistenceOnlyTimeEntry | null
88
+ >;
89
+ type Changes = Set<string>;
90
+ type Removals = Set<string>;
91
+ type Aggregated = {
92
+ changes: Changes;
93
+ removals: Removals;
94
+ };
95
+ type WatchMethodOptions = {
96
+ files?: Iterable<string>;
97
+ directories?: Iterable<string>;
98
+ missing?: Iterable<string>;
99
+ startTime?: number;
100
+ };
101
+ type Times = Record<string, number>;
102
+ type WatchpackEvents = {
103
+ /**
104
+ * change event
105
+ */
106
+ change: (file: string, mtime: number, type: EventType) => void;
107
+ /**
108
+ * remove event
109
+ */
110
+ remove: (file: string, type: EventType) => void;
111
+ /**
112
+ * aggregated event
113
+ */
114
+ aggregated: (changes: Changes, removals: Removals) => void;
115
+ };
116
+ type WatchpackExports = typeof Watchpack & {
117
+ util: {
118
+ readonly globToRegExp: typeof globToRegExp;
119
+ };
120
+ };
2
121
  /**
3
122
  * @typedef {object} WatchpackEvents
4
123
  * @property {(file: string, mtime: number, type: EventType) => void} change change event
@@ -102,32 +221,7 @@ declare class Watchpack extends EventEmitter<{
102
221
  */
103
222
  _onRemove(item: string, file: string, type: EventType): void;
104
223
  }
105
- declare namespace Watchpack {
106
- export {
107
- WatcherManager,
108
- DirectoryWatcher,
109
- DirectoryWatcherEvents,
110
- FileWatcherEvents,
111
- EventMap,
112
- Watcher,
113
- IgnoredFunction,
114
- Ignored,
115
- WatcherOptions,
116
- WatchOptions,
117
- NormalizedWatchOptions,
118
- EventType,
119
- Entry,
120
- OnlySafeTimeEntry,
121
- ExistenceOnlyTimeEntry,
122
- TimeInfoEntries,
123
- Changes,
124
- Removals,
125
- Aggregated,
126
- WatchMethodOptions,
127
- Times,
128
- WatchpackEvents,
129
- };
130
- }
224
+ import globToRegExp = require("./util/globToRegExp");
131
225
  import { EventEmitter } from "events";
132
226
  declare class WatchpackFileWatcher {
133
227
  /**
@@ -173,89 +267,3 @@ declare class WatchpackDirectoryWatcher {
173
267
  update(directories: string | string[]): void;
174
268
  close(): void;
175
269
  }
176
- type WatcherManager = import("./getWatcherManager").WatcherManager;
177
- type DirectoryWatcher = import("./DirectoryWatcher");
178
- type DirectoryWatcherEvents =
179
- import("./DirectoryWatcher").DirectoryWatcherEvents;
180
- type FileWatcherEvents = import("./DirectoryWatcher").FileWatcherEvents;
181
- type EventMap = Record<string, (...args: any[]) => any>;
182
- type Watcher<T extends EventMap> = import("./DirectoryWatcher").Watcher<T>;
183
- type IgnoredFunction = (item: string) => boolean;
184
- type Ignored = string[] | RegExp | string | IgnoredFunction;
185
- type WatcherOptions = {
186
- /**
187
- * true when need to resolve symlinks and watch symlink and real file, otherwise false
188
- */
189
- followSymlinks?: boolean | undefined;
190
- /**
191
- * ignore some files from watching (glob pattern or regexp)
192
- */
193
- ignored?: Ignored | undefined;
194
- /**
195
- * true when need to enable polling mode for watching, otherwise false
196
- */
197
- poll?: (number | boolean) | undefined;
198
- };
199
- type WatchOptions = WatcherOptions & {
200
- aggregateTimeout?: number;
201
- };
202
- type NormalizedWatchOptions = {
203
- /**
204
- * true when need to resolve symlinks and watch symlink and real file, otherwise false
205
- */
206
- followSymlinks: boolean;
207
- /**
208
- * ignore some files from watching (glob pattern or regexp)
209
- */
210
- ignored: IgnoredFunction;
211
- /**
212
- * true when need to enable polling mode for watching, otherwise false
213
- */
214
- poll?: (number | boolean) | undefined;
215
- };
216
- type EventType =
217
- | `scan (${string})`
218
- | "change"
219
- | "rename"
220
- | `watch ${string}`
221
- | `directory-removed ${string}`;
222
- type Entry = {
223
- safeTime: number;
224
- timestamp: number;
225
- accuracy: number;
226
- };
227
- type OnlySafeTimeEntry = {
228
- safeTime: number;
229
- };
230
- type ExistenceOnlyTimeEntry = {};
231
- type TimeInfoEntries = Map<
232
- string,
233
- Entry | OnlySafeTimeEntry | ExistenceOnlyTimeEntry | null
234
- >;
235
- type Changes = Set<string>;
236
- type Removals = Set<string>;
237
- type Aggregated = {
238
- changes: Changes;
239
- removals: Removals;
240
- };
241
- type WatchMethodOptions = {
242
- files?: Iterable<string>;
243
- directories?: Iterable<string>;
244
- missing?: Iterable<string>;
245
- startTime?: number;
246
- };
247
- type Times = Record<string, number>;
248
- type WatchpackEvents = {
249
- /**
250
- * change event
251
- */
252
- change: (file: string, mtime: number, type: EventType) => void;
253
- /**
254
- * remove event
255
- */
256
- remove: (file: string, type: EventType) => void;
257
- /**
258
- * aggregated event
259
- */
260
- aggregated: (changes: Changes, removals: Removals) => void;
261
- };
@@ -0,0 +1,2 @@
1
+ declare function _exports(glob: string): string;
2
+ export = _exports;
@@ -1,2 +1,2 @@
1
- declare const _exports: typeof import("./index");
1
+ declare const _exports: import("./index").WatchpackExports;
2
2
  export = _exports;
package/package.json CHANGED
@@ -62,9 +62,9 @@
62
62
  "jest": "^30.4.2",
63
63
  "jest-junit": "^16",
64
64
  "jsii": "~5.9",
65
- "jsii-diff": "^1.133.0",
65
+ "jsii-diff": "^1.134.0",
66
66
  "jsii-docgen": "^10.5.0",
67
- "jsii-pacmak": "^1.133.0",
67
+ "jsii-pacmak": "^1.134.0",
68
68
  "jsii-rosetta": "^5.9.49",
69
69
  "prettier": "^3.8.3",
70
70
  "projen": "^0.99.17",
@@ -77,13 +77,13 @@
77
77
  "constructs": "^10.5.1"
78
78
  },
79
79
  "dependencies": {
80
- "@aws-sdk/client-cloudformation": "^3.1063.0",
81
- "@aws-sdk/client-connect": "^3.1063.0",
82
- "@aws-sdk/client-glue": "^3.1063.0",
83
- "@aws-sdk/client-lakeformation": "^3.1063.0",
84
- "@aws-sdk/client-ram": "^3.1063.0",
85
- "@aws-sdk/client-sts": "^3.1063.0",
86
- "@aws-sdk/types": "^3.973.11",
80
+ "@aws-sdk/client-cloudformation": "^3.1068.0",
81
+ "@aws-sdk/client-connect": "^3.1068.0",
82
+ "@aws-sdk/client-glue": "^3.1068.0",
83
+ "@aws-sdk/client-lakeformation": "^3.1068.0",
84
+ "@aws-sdk/client-ram": "^3.1068.0",
85
+ "@aws-sdk/client-sts": "^3.1068.0",
86
+ "@aws-sdk/types": "^3.973.12",
87
87
  "@types/aws-lambda": "^8.10.162",
88
88
  "aws-lambda": "^1.0.7"
89
89
  },
@@ -112,7 +112,7 @@
112
112
  "publishConfig": {
113
113
  "access": "public"
114
114
  },
115
- "version": "0.0.13",
115
+ "version": "0.0.14",
116
116
  "jest": {
117
117
  "coverageProvider": "v8",
118
118
  "moduleNameMapper": {
@@ -1,4 +0,0 @@
1
- language: node_js
2
- node_js:
3
- - 0.8
4
- - "0.10"
@@ -1,75 +0,0 @@
1
- # Glob To Regular Expression
2
-
3
- [![Build Status](https://travis-ci.org/fitzgen/glob-to-regexp.png?branch=master)](https://travis-ci.org/fitzgen/glob-to-regexp)
4
-
5
- Turn a \*-wildcard style glob (`"*.min.js"`) into a regular expression
6
- (`/^.*\.min\.js$/`)!
7
-
8
- To match bash-like globs, eg. `?` for any single-character match, `[a-z]` for
9
- character ranges, and `{*.html, *.js}` for multiple alternatives, call with
10
- `{ extended: true }`.
11
-
12
- To obey [globstars `**`](https://github.com/isaacs/node-glob#glob-primer) rules set option `{globstar: true}`.
13
- NOTE: This changes the behavior of `*` when `globstar` is `true` as shown below:
14
- When `{globstar: true}`: `/foo/**` will match any string that starts with `/foo/`
15
- like `/foo/index.htm`, `/foo/bar/baz.txt`, etc. Also, `/foo/**/*.txt` will match
16
- any string that starts with `/foo/` and ends with `.txt` like `/foo/bar.txt`,
17
- `/foo/bar/baz.txt`, etc.
18
- Whereas `/foo/*` (single `*`, not a globstar) will match strings that start with
19
- `/foo/` like `/foo/index.htm`, `/foo/baz.txt` but will not match strings that
20
- contain a `/` to the right like `/foo/bar/baz.txt`, `/foo/bar/baz/qux.dat`, etc.
21
-
22
- Set flags on the resulting `RegExp` object by adding the `flags` property to the option object, eg `{ flags: "i" }` for ignoring case.
23
-
24
- ## Install
25
-
26
- npm install glob-to-regexp
27
-
28
- ## Usage
29
- ```js
30
- var globToRegExp = require('glob-to-regexp');
31
- var re = globToRegExp("p*uck");
32
- re.test("pot luck"); // true
33
- re.test("pluck"); // true
34
- re.test("puck"); // true
35
-
36
- re = globToRegExp("*.min.js");
37
- re.test("http://example.com/jquery.min.js"); // true
38
- re.test("http://example.com/jquery.min.js.map"); // false
39
-
40
- re = globToRegExp("*/www/*.js");
41
- re.test("http://example.com/www/app.js"); // true
42
- re.test("http://example.com/www/lib/factory-proxy-model-observer.js"); // true
43
-
44
- // Extended globs
45
- re = globToRegExp("*/www/{*.js,*.html}", { extended: true });
46
- re.test("http://example.com/www/app.js"); // true
47
- re.test("http://example.com/www/index.html"); // true
48
- ```
49
-
50
- ## License
51
-
52
- Copyright (c) 2013, Nick Fitzgerald
53
-
54
- All rights reserved.
55
-
56
- Redistribution and use in source and binary forms, with or without modification,
57
- are permitted provided that the following conditions are met:
58
-
59
- * Redistributions of source code must retain the above copyright notice, this
60
- list of conditions and the following disclaimer.
61
-
62
- * Redistributions in binary form must reproduce the above copyright notice, this
63
- list of conditions and the following disclaimer in the documentation and/or
64
- other materials provided with the distribution.
65
-
66
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
67
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
68
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
69
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
70
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
71
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
72
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
73
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
74
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
75
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,130 +0,0 @@
1
- module.exports = function (glob, opts) {
2
- if (typeof glob !== 'string') {
3
- throw new TypeError('Expected a string');
4
- }
5
-
6
- var str = String(glob);
7
-
8
- // The regexp we are building, as a string.
9
- var reStr = "";
10
-
11
- // Whether we are matching so called "extended" globs (like bash) and should
12
- // support single character matching, matching ranges of characters, group
13
- // matching, etc.
14
- var extended = opts ? !!opts.extended : false;
15
-
16
- // When globstar is _false_ (default), '/foo/*' is translated a regexp like
17
- // '^\/foo\/.*$' which will match any string beginning with '/foo/'
18
- // When globstar is _true_, '/foo/*' is translated to regexp like
19
- // '^\/foo\/[^/]*$' which will match any string beginning with '/foo/' BUT
20
- // which does not have a '/' to the right of it.
21
- // E.g. with '/foo/*' these will match: '/foo/bar', '/foo/bar.txt' but
22
- // these will not '/foo/bar/baz', '/foo/bar/baz.txt'
23
- // Lastely, when globstar is _true_, '/foo/**' is equivelant to '/foo/*' when
24
- // globstar is _false_
25
- var globstar = opts ? !!opts.globstar : false;
26
-
27
- // If we are doing extended matching, this boolean is true when we are inside
28
- // a group (eg {*.html,*.js}), and false otherwise.
29
- var inGroup = false;
30
-
31
- // RegExp flags (eg "i" ) to pass in to RegExp constructor.
32
- var flags = opts && typeof( opts.flags ) === "string" ? opts.flags : "";
33
-
34
- var c;
35
- for (var i = 0, len = str.length; i < len; i++) {
36
- c = str[i];
37
-
38
- switch (c) {
39
- case "/":
40
- case "$":
41
- case "^":
42
- case "+":
43
- case ".":
44
- case "(":
45
- case ")":
46
- case "=":
47
- case "!":
48
- case "|":
49
- reStr += "\\" + c;
50
- break;
51
-
52
- case "?":
53
- if (extended) {
54
- reStr += ".";
55
- break;
56
- }
57
-
58
- case "[":
59
- case "]":
60
- if (extended) {
61
- reStr += c;
62
- break;
63
- }
64
-
65
- case "{":
66
- if (extended) {
67
- inGroup = true;
68
- reStr += "(";
69
- break;
70
- }
71
-
72
- case "}":
73
- if (extended) {
74
- inGroup = false;
75
- reStr += ")";
76
- break;
77
- }
78
-
79
- case ",":
80
- if (inGroup) {
81
- reStr += "|";
82
- break;
83
- }
84
- reStr += "\\" + c;
85
- break;
86
-
87
- case "*":
88
- // Move over all consecutive "*"'s.
89
- // Also store the previous and next characters
90
- var prevChar = str[i - 1];
91
- var starCount = 1;
92
- while(str[i + 1] === "*") {
93
- starCount++;
94
- i++;
95
- }
96
- var nextChar = str[i + 1];
97
-
98
- if (!globstar) {
99
- // globstar is disabled, so treat any number of "*" as one
100
- reStr += ".*";
101
- } else {
102
- // globstar is enabled, so determine if this is a globstar segment
103
- var isGlobstar = starCount > 1 // multiple "*"'s
104
- && (prevChar === "/" || prevChar === undefined) // from the start of the segment
105
- && (nextChar === "/" || nextChar === undefined) // to the end of the segment
106
-
107
- if (isGlobstar) {
108
- // it's a globstar, so match zero or more path segments
109
- reStr += "((?:[^/]*(?:\/|$))*)";
110
- i++; // move over the "/"
111
- } else {
112
- // it's not a globstar, so only match one path segment
113
- reStr += "([^/]*)";
114
- }
115
- }
116
- break;
117
-
118
- default:
119
- reStr += c;
120
- }
121
- }
122
-
123
- // When regexp 'g' flag is specified don't
124
- // constrain the regular expression with ^ & $
125
- if (!flags || !~flags.indexOf('g')) {
126
- reStr = "^" + reStr + "$";
127
- }
128
-
129
- return new RegExp(reStr, flags);
130
- };
@@ -1,23 +0,0 @@
1
- {
2
- "name": "glob-to-regexp",
3
- "version": "0.4.1",
4
- "description": "Convert globs to regular expressions",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "node test.js"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/fitzgen/glob-to-regexp.git"
12
- },
13
- "keywords": [
14
- "regexp",
15
- "glob",
16
- "regexps",
17
- "regular expressions",
18
- "regular expression",
19
- "wildcard"
20
- ],
21
- "author": "Nick Fitzgerald <fitzgen@gmail.com>",
22
- "license": "BSD-2-Clause"
23
- }