@indiciaosint/sdk 0.0.1 → 1.0.1
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/README.md +5 -9
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/jsr.json +1 -1
- package/package.json +14 -7
- package/src/lib/config.ts +2 -2
- package/.devcontainer/README.md +0 -30
- package/docs/sdks/indicia/README.md +0 -3053
- package/examples/README.md +0 -31
- package/examples/node_modules/@esbuild/darwin-arm64/README.md +0 -3
- package/examples/node_modules/@types/node/LICENSE +0 -21
- package/examples/node_modules/@types/node/README.md +0 -15
- package/examples/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/examples/node_modules/@types/node/assert.d.ts +0 -1062
- package/examples/node_modules/@types/node/async_hooks.d.ts +0 -605
- package/examples/node_modules/@types/node/buffer.buffer.d.ts +0 -471
- package/examples/node_modules/@types/node/buffer.d.ts +0 -1936
- package/examples/node_modules/@types/node/child_process.d.ts +0 -1475
- package/examples/node_modules/@types/node/cluster.d.ts +0 -577
- package/examples/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
- package/examples/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/examples/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/examples/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
- package/examples/node_modules/@types/node/console.d.ts +0 -452
- package/examples/node_modules/@types/node/constants.d.ts +0 -21
- package/examples/node_modules/@types/node/crypto.d.ts +0 -4590
- package/examples/node_modules/@types/node/dgram.d.ts +0 -597
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/examples/node_modules/@types/node/dns/promises.d.ts +0 -479
- package/examples/node_modules/@types/node/dns.d.ts +0 -871
- package/examples/node_modules/@types/node/domain.d.ts +0 -170
- package/examples/node_modules/@types/node/events.d.ts +0 -977
- package/examples/node_modules/@types/node/fs/promises.d.ts +0 -1270
- package/examples/node_modules/@types/node/fs.d.ts +0 -4375
- package/examples/node_modules/@types/node/globals.d.ts +0 -172
- package/examples/node_modules/@types/node/globals.typedarray.d.ts +0 -38
- package/examples/node_modules/@types/node/http.d.ts +0 -2049
- package/examples/node_modules/@types/node/http2.d.ts +0 -2712
- package/examples/node_modules/@types/node/https.d.ts +0 -578
- package/examples/node_modules/@types/node/index.d.ts +0 -93
- package/examples/node_modules/@types/node/inspector.generated.d.ts +0 -3966
- package/examples/node_modules/@types/node/module.d.ts +0 -539
- package/examples/node_modules/@types/node/net.d.ts +0 -1031
- package/examples/node_modules/@types/node/os.d.ts +0 -506
- package/examples/node_modules/@types/node/path.d.ts +0 -200
- package/examples/node_modules/@types/node/perf_hooks.d.ts +0 -961
- package/examples/node_modules/@types/node/process.d.ts +0 -1961
- package/examples/node_modules/@types/node/punycode.d.ts +0 -117
- package/examples/node_modules/@types/node/querystring.d.ts +0 -152
- package/examples/node_modules/@types/node/readline/promises.d.ts +0 -162
- package/examples/node_modules/@types/node/readline.d.ts +0 -589
- package/examples/node_modules/@types/node/repl.d.ts +0 -430
- package/examples/node_modules/@types/node/sea.d.ts +0 -153
- package/examples/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/examples/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/examples/node_modules/@types/node/stream/web.d.ts +0 -533
- package/examples/node_modules/@types/node/stream.d.ts +0 -1698
- package/examples/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/examples/node_modules/@types/node/test.d.ts +0 -1787
- package/examples/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/examples/node_modules/@types/node/timers.d.ts +0 -286
- package/examples/node_modules/@types/node/tls.d.ts +0 -1259
- package/examples/node_modules/@types/node/trace_events.d.ts +0 -197
- package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
- package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
- package/examples/node_modules/@types/node/ts5.6/index.d.ts +0 -93
- package/examples/node_modules/@types/node/tty.d.ts +0 -208
- package/examples/node_modules/@types/node/url.d.ts +0 -964
- package/examples/node_modules/@types/node/util.d.ts +0 -2331
- package/examples/node_modules/@types/node/v8.d.ts +0 -809
- package/examples/node_modules/@types/node/vm.d.ts +0 -1001
- package/examples/node_modules/@types/node/wasi.d.ts +0 -181
- package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/examples/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/examples/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/examples/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
- package/examples/node_modules/@types/node/worker_threads.d.ts +0 -715
- package/examples/node_modules/@types/node/zlib.d.ts +0 -598
- package/examples/node_modules/dotenv/LICENSE +0 -23
- package/examples/node_modules/dotenv/README.md +0 -645
- package/examples/node_modules/dotenv/config.d.ts +0 -1
- package/examples/node_modules/dotenv/config.js +0 -9
- package/examples/node_modules/dotenv/lib/cli-options.js +0 -17
- package/examples/node_modules/dotenv/lib/env-options.js +0 -28
- package/examples/node_modules/dotenv/lib/main.d.ts +0 -162
- package/examples/node_modules/dotenv/lib/main.js +0 -386
- package/examples/node_modules/esbuild/LICENSE.md +0 -21
- package/examples/node_modules/esbuild/README.md +0 -3
- package/examples/node_modules/esbuild/install.js +0 -300
- package/examples/node_modules/esbuild/lib/main.d.ts +0 -716
- package/examples/node_modules/esbuild/lib/main.js +0 -2532
- package/examples/node_modules/fsevents/LICENSE +0 -22
- package/examples/node_modules/fsevents/README.md +0 -89
- package/examples/node_modules/fsevents/fsevents.d.ts +0 -46
- package/examples/node_modules/fsevents/fsevents.js +0 -83
- package/examples/node_modules/tsx/LICENSE +0 -21
- package/examples/node_modules/tsx/README.md +0 -32
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/cjs/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/cli.mjs +0 -55
- package/examples/node_modules/tsx/dist/client-D_mPDF5S.mjs +0 -1
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/esm/index.mjs +0 -1
- package/examples/node_modules/tsx/dist/get-pipe-path-_tAJyU_v.mjs +0 -1
- package/examples/node_modules/tsx/dist/index-XurvG3JN.mjs +0 -14
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +0 -1
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +0 -3
- package/examples/node_modules/tsx/dist/loader.mjs +0 -1
- package/examples/node_modules/tsx/dist/node-features-B9BBLzwu.mjs +0 -1
- package/examples/node_modules/tsx/dist/package-Bj47PlGH.mjs +0 -1
- package/examples/node_modules/tsx/dist/patch-repl.mjs +0 -1
- package/examples/node_modules/tsx/dist/preflight.mjs +0 -1
- package/examples/node_modules/tsx/dist/register-BnTWPeIB.mjs +0 -10
- package/examples/node_modules/tsx/dist/register-CqMfTiWi.mjs +0 -2
- package/examples/node_modules/tsx/dist/repl.mjs +0 -3
- package/examples/node_modules/tsx/dist/require-DzmC1hVr.mjs +0 -1
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
- package/examples/node_modules/tsx/dist/temporary-directory-BDDVQOvU.mjs +0 -1
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
- package/examples/node_modules/undici-types/LICENSE +0 -21
- package/examples/node_modules/undici-types/README.md +0 -6
- package/examples/node_modules/undici-types/agent.d.ts +0 -31
- package/examples/node_modules/undici-types/api.d.ts +0 -43
- package/examples/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/examples/node_modules/undici-types/cache.d.ts +0 -36
- package/examples/node_modules/undici-types/client.d.ts +0 -108
- package/examples/node_modules/undici-types/connector.d.ts +0 -34
- package/examples/node_modules/undici-types/content-type.d.ts +0 -21
- package/examples/node_modules/undici-types/cookies.d.ts +0 -28
- package/examples/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/examples/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/examples/node_modules/undici-types/errors.d.ts +0 -149
- package/examples/node_modules/undici-types/eventsource.d.ts +0 -61
- package/examples/node_modules/undici-types/fetch.d.ts +0 -209
- package/examples/node_modules/undici-types/file.d.ts +0 -39
- package/examples/node_modules/undici-types/filereader.d.ts +0 -54
- package/examples/node_modules/undici-types/formdata.d.ts +0 -108
- package/examples/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/examples/node_modules/undici-types/global-origin.d.ts +0 -7
- package/examples/node_modules/undici-types/handlers.d.ts +0 -15
- package/examples/node_modules/undici-types/header.d.ts +0 -4
- package/examples/node_modules/undici-types/index.d.ts +0 -71
- package/examples/node_modules/undici-types/interceptors.d.ts +0 -17
- package/examples/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/examples/node_modules/undici-types/mock-client.d.ts +0 -25
- package/examples/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/examples/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/examples/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/examples/node_modules/undici-types/patch.d.ts +0 -33
- package/examples/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/examples/node_modules/undici-types/pool.d.ts +0 -39
- package/examples/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/examples/node_modules/undici-types/readable.d.ts +0 -65
- package/examples/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/examples/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/examples/node_modules/undici-types/util.d.ts +0 -18
- package/examples/node_modules/undici-types/webidl.d.ts +0 -228
- package/examples/node_modules/undici-types/websocket.d.ts +0 -150
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
-----------
|
|
3
|
-
|
|
4
|
-
Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in
|
|
14
|
-
all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
-
THE SOFTWARE.
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# fsevents
|
|
2
|
-
|
|
3
|
-
Native access to MacOS FSEvents in [Node.js](https://nodejs.org/)
|
|
4
|
-
|
|
5
|
-
The FSEvents API in MacOS allows applications to register for notifications of
|
|
6
|
-
changes to a given directory tree. It is a very fast and lightweight alternative
|
|
7
|
-
to kqueue.
|
|
8
|
-
|
|
9
|
-
This is a low-level library. For a cross-platform file watching module that
|
|
10
|
-
uses fsevents, check out [Chokidar](https://github.com/paulmillr/chokidar).
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
```sh
|
|
15
|
-
npm install fsevents
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Supports only **Node.js v8.16 and higher**.
|
|
19
|
-
|
|
20
|
-
```js
|
|
21
|
-
const fsevents = require('fsevents');
|
|
22
|
-
|
|
23
|
-
// To start observation
|
|
24
|
-
const stop = fsevents.watch(__dirname, (path, flags, id) => {
|
|
25
|
-
const info = fsevents.getInfo(path, flags);
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
// To end observation
|
|
29
|
-
stop();
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
> **Important note:** The API behaviour is slightly different from typical JS APIs. The `stop` function **must** be
|
|
33
|
-
> retrieved and stored somewhere, even if you don't plan to stop the watcher. If you forget it, the garbage collector
|
|
34
|
-
> will eventually kick in, the watcher will be unregistered, and your callbacks won't be called anymore.
|
|
35
|
-
|
|
36
|
-
The callback passed as the second parameter to `.watch` get's called whenever the operating system detects a
|
|
37
|
-
a change in the file system. It takes three arguments:
|
|
38
|
-
|
|
39
|
-
###### `fsevents.watch(dirname: string, (path: string, flags: number, id: string) => void): () => Promise<undefined>`
|
|
40
|
-
|
|
41
|
-
* `path: string` - the item in the filesystem that have been changed
|
|
42
|
-
* `flags: number` - a numeric value describing what the change was
|
|
43
|
-
* `id: string` - an unique-id identifying this specific event
|
|
44
|
-
|
|
45
|
-
Returns closer callback which when called returns a Promise resolving when the watcher process has been shut down.
|
|
46
|
-
|
|
47
|
-
###### `fsevents.getInfo(path: string, flags: number, id: string): FsEventInfo`
|
|
48
|
-
|
|
49
|
-
The `getInfo` function takes the `path`, `flags` and `id` arguments and converts those parameters into a structure
|
|
50
|
-
that is easier to digest to determine what the change was.
|
|
51
|
-
|
|
52
|
-
The `FsEventsInfo` has the following shape:
|
|
53
|
-
|
|
54
|
-
```js
|
|
55
|
-
/**
|
|
56
|
-
* @typedef {'created'|'modified'|'deleted'|'moved'|'root-changed'|'cloned'|'unknown'} FsEventsEvent
|
|
57
|
-
* @typedef {'file'|'directory'|'symlink'} FsEventsType
|
|
58
|
-
*/
|
|
59
|
-
{
|
|
60
|
-
"event": "created", // {FsEventsEvent}
|
|
61
|
-
"path": "file.txt",
|
|
62
|
-
"type": "file", // {FsEventsType}
|
|
63
|
-
"changes": {
|
|
64
|
-
"inode": true, // Had iNode Meta-Information changed
|
|
65
|
-
"finder": false, // Had Finder Meta-Data changed
|
|
66
|
-
"access": false, // Had access permissions changed
|
|
67
|
-
"xattrs": false // Had xAttributes changed
|
|
68
|
-
},
|
|
69
|
-
"flags": 0x100000000
|
|
70
|
-
}
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## Changelog
|
|
74
|
-
|
|
75
|
-
- v2.3 supports Apple Silicon ARM CPUs
|
|
76
|
-
- v2 supports node 8.16+ and reduces package size massively
|
|
77
|
-
- v1.2.8 supports node 6+
|
|
78
|
-
- v1.2.7 supports node 4+
|
|
79
|
-
|
|
80
|
-
## Troubleshooting
|
|
81
|
-
|
|
82
|
-
- I'm getting `EBADPLATFORM` `Unsupported platform for fsevents` error.
|
|
83
|
-
- It's fine, nothing is broken. fsevents is macos-only. Other platforms are skipped. If you want to hide this warning, report a bug to NPM bugtracker asking them to hide ebadplatform warnings by default.
|
|
84
|
-
|
|
85
|
-
## License
|
|
86
|
-
|
|
87
|
-
The MIT License Copyright (C) 2010-2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller — see LICENSE file.
|
|
88
|
-
|
|
89
|
-
Visit our [GitHub page](https://github.com/fsevents/fsevents) and [NPM Page](https://npmjs.org/package/fsevents)
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
declare type Event = "created" | "cloned" | "modified" | "deleted" | "moved" | "root-changed" | "unknown";
|
|
2
|
-
declare type Type = "file" | "directory" | "symlink";
|
|
3
|
-
declare type FileChanges = {
|
|
4
|
-
inode: boolean;
|
|
5
|
-
finder: boolean;
|
|
6
|
-
access: boolean;
|
|
7
|
-
xattrs: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare type Info = {
|
|
10
|
-
event: Event;
|
|
11
|
-
path: string;
|
|
12
|
-
type: Type;
|
|
13
|
-
changes: FileChanges;
|
|
14
|
-
flags: number;
|
|
15
|
-
};
|
|
16
|
-
declare type WatchHandler = (path: string, flags: number, id: string) => void;
|
|
17
|
-
export declare function watch(path: string, handler: WatchHandler): () => Promise<void>;
|
|
18
|
-
export declare function watch(path: string, since: number, handler: WatchHandler): () => Promise<void>;
|
|
19
|
-
export declare function getInfo(path: string, flags: number): Info;
|
|
20
|
-
export declare const constants: {
|
|
21
|
-
None: 0x00000000;
|
|
22
|
-
MustScanSubDirs: 0x00000001;
|
|
23
|
-
UserDropped: 0x00000002;
|
|
24
|
-
KernelDropped: 0x00000004;
|
|
25
|
-
EventIdsWrapped: 0x00000008;
|
|
26
|
-
HistoryDone: 0x00000010;
|
|
27
|
-
RootChanged: 0x00000020;
|
|
28
|
-
Mount: 0x00000040;
|
|
29
|
-
Unmount: 0x00000080;
|
|
30
|
-
ItemCreated: 0x00000100;
|
|
31
|
-
ItemRemoved: 0x00000200;
|
|
32
|
-
ItemInodeMetaMod: 0x00000400;
|
|
33
|
-
ItemRenamed: 0x00000800;
|
|
34
|
-
ItemModified: 0x00001000;
|
|
35
|
-
ItemFinderInfoMod: 0x00002000;
|
|
36
|
-
ItemChangeOwner: 0x00004000;
|
|
37
|
-
ItemXattrMod: 0x00008000;
|
|
38
|
-
ItemIsFile: 0x00010000;
|
|
39
|
-
ItemIsDir: 0x00020000;
|
|
40
|
-
ItemIsSymlink: 0x00040000;
|
|
41
|
-
ItemIsHardlink: 0x00100000;
|
|
42
|
-
ItemIsLastHardlink: 0x00200000;
|
|
43
|
-
OwnEvent: 0x00080000;
|
|
44
|
-
ItemCloned: 0x00400000;
|
|
45
|
-
};
|
|
46
|
-
export {};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
** © 2020 by Philipp Dunkel, Ben Noordhuis, Elan Shankar, Paul Miller
|
|
3
|
-
** Licensed under MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/* jshint node:true */
|
|
7
|
-
"use strict";
|
|
8
|
-
|
|
9
|
-
if (process.platform !== "darwin") {
|
|
10
|
-
throw new Error(`Module 'fsevents' is not compatible with platform '${process.platform}'`);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const Native = require("./fsevents.node");
|
|
14
|
-
const events = Native.constants;
|
|
15
|
-
|
|
16
|
-
function watch(path, since, handler) {
|
|
17
|
-
if (typeof path !== "string") {
|
|
18
|
-
throw new TypeError(`fsevents argument 1 must be a string and not a ${typeof path}`);
|
|
19
|
-
}
|
|
20
|
-
if ("function" === typeof since && "undefined" === typeof handler) {
|
|
21
|
-
handler = since;
|
|
22
|
-
since = Native.flags.SinceNow;
|
|
23
|
-
}
|
|
24
|
-
if (typeof since !== "number") {
|
|
25
|
-
throw new TypeError(`fsevents argument 2 must be a number and not a ${typeof since}`);
|
|
26
|
-
}
|
|
27
|
-
if (typeof handler !== "function") {
|
|
28
|
-
throw new TypeError(`fsevents argument 3 must be a function and not a ${typeof handler}`);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
let instance = Native.start(Native.global, path, since, handler);
|
|
32
|
-
if (!instance) throw new Error(`could not watch: ${path}`);
|
|
33
|
-
return () => {
|
|
34
|
-
const result = instance ? Promise.resolve(instance).then(Native.stop) : Promise.resolve(undefined);
|
|
35
|
-
instance = undefined;
|
|
36
|
-
return result;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function getInfo(path, flags) {
|
|
41
|
-
return {
|
|
42
|
-
path,
|
|
43
|
-
flags,
|
|
44
|
-
event: getEventType(flags),
|
|
45
|
-
type: getFileType(flags),
|
|
46
|
-
changes: getFileChanges(flags),
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
function getFileType(flags) {
|
|
51
|
-
if (events.ItemIsFile & flags) return "file";
|
|
52
|
-
if (events.ItemIsDir & flags) return "directory";
|
|
53
|
-
if (events.MustScanSubDirs & flags) return "directory";
|
|
54
|
-
if (events.ItemIsSymlink & flags) return "symlink";
|
|
55
|
-
}
|
|
56
|
-
function anyIsTrue(obj) {
|
|
57
|
-
for (let key in obj) {
|
|
58
|
-
if (obj[key]) return true;
|
|
59
|
-
}
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
function getEventType(flags) {
|
|
63
|
-
if (events.ItemRemoved & flags) return "deleted";
|
|
64
|
-
if (events.ItemRenamed & flags) return "moved";
|
|
65
|
-
if (events.ItemCreated & flags) return "created";
|
|
66
|
-
if (events.ItemModified & flags) return "modified";
|
|
67
|
-
if (events.RootChanged & flags) return "root-changed";
|
|
68
|
-
if (events.ItemCloned & flags) return "cloned";
|
|
69
|
-
if (anyIsTrue(flags)) return "modified";
|
|
70
|
-
return "unknown";
|
|
71
|
-
}
|
|
72
|
-
function getFileChanges(flags) {
|
|
73
|
-
return {
|
|
74
|
-
inode: !!(events.ItemInodeMetaMod & flags),
|
|
75
|
-
finder: !!(events.ItemFinderInfoMod & flags),
|
|
76
|
-
access: !!(events.ItemChangeOwner & flags),
|
|
77
|
-
xattrs: !!(events.ItemXattrMod & flags),
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
exports.watch = watch;
|
|
82
|
-
exports.getInfo = getInfo;
|
|
83
|
-
exports.constants = events;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<h1 align="center">
|
|
2
|
-
<br>
|
|
3
|
-
<picture>
|
|
4
|
-
<source media="(prefers-color-scheme: dark)" srcset=".github/logo-dark.svg">
|
|
5
|
-
<img width="160" alt="tsx" src=".github/logo-light.svg">
|
|
6
|
-
</picture>
|
|
7
|
-
<br><br>
|
|
8
|
-
<a href="https://npm.im/tsx"><img src="https://badgen.net/npm/v/tsx"></a> <a href="https://npm.im/tsx"><img src="https://badgen.net/npm/dm/tsx"></a>
|
|
9
|
-
</h1>
|
|
10
|
-
|
|
11
|
-
<p align="center">
|
|
12
|
-
TypeScript Execute (tsx): The easiest way to run TypeScript in Node.js
|
|
13
|
-
<br><br>
|
|
14
|
-
<a href="https://tsx.hirok.io">Documentation</a> | <a href="https://tsx.hirok.io/getting-started">Getting started →</a>
|
|
15
|
-
</p>
|
|
16
|
-
|
|
17
|
-
<br>
|
|
18
|
-
|
|
19
|
-
<p align="center">
|
|
20
|
-
<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=398771"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/donate.webp"></a>
|
|
21
|
-
<a href="https://github.com/sponsors/privatenumber/sponsorships?tier_id=416984"><img width="412" src="https://raw.githubusercontent.com/privatenumber/sponsors/master/banners/assets/sponsor.webp"></a>
|
|
22
|
-
</p>
|
|
23
|
-
<p align="center"><sup><i>Already a sponsor?</i> Join the discussion in the <a href="https://github.com/pvtnbr/tsx">Development repo</a>!</sup></p>
|
|
24
|
-
|
|
25
|
-
## Sponsors
|
|
26
|
-
|
|
27
|
-
<p align="center">
|
|
28
|
-
<a href="https://github.com/sponsors/privatenumber">
|
|
29
|
-
<img src="https://cdn.jsdelivr.net/gh/privatenumber/sponsors/sponsorkit/sponsors.svg">
|
|
30
|
-
</a>
|
|
31
|
-
</p>
|
|
32
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../get-pipe-path-_tAJyU_v.mjs";import{r as n}from"../../register-BnTWPeIB.mjs";import{t as w}from"../../require-DzmC1hVr.mjs";import"module";import"node:path";import"../../temporary-directory-BDDVQOvU.mjs";import"node:os";import"node:module";import"node:url";import"node:fs";import"fs";import"os";import"path";import"../../index-XurvG3JN.mjs";import"esbuild";import"node:crypto";import"../../node-features-B9BBLzwu.mjs";import"../../client-D_mPDF5S.mjs";import"node:net";import"node:util";import"../../index-gbaejti9.mjs";export{n as register,w as require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"../register-BnTWPeIB.mjs";import"../get-pipe-path-_tAJyU_v.mjs";import"module";import"node:path";import"../temporary-directory-BDDVQOvU.mjs";import"node:os";import"node:module";import"node:url";import"node:fs";import"fs";import"os";import"path";import"../index-XurvG3JN.mjs";import"esbuild";import"node:crypto";import"../node-features-B9BBLzwu.mjs";import"../client-D_mPDF5S.mjs";import"node:net";import"node:util";import"../index-gbaejti9.mjs";r();
|