@gjsify/constants 0.3.13 → 0.3.15

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 (2) hide show
  1. package/lib/esm/index.js +15 -233
  2. package/package.json +6 -6
package/lib/esm/index.js CHANGED
@@ -1,235 +1,17 @@
1
- import { constants as osConstants } from "node:os";
2
- import { constants as fsConstants } from "node:fs";
3
- import { constants as cryptoConstants } from "node:crypto";
1
+ import { constants } from "node:os";
2
+ import { constants as constants$1 } from "node:fs";
3
+ import { constants as constants$2 } from "node:crypto";
4
+
5
+ //#region src/index.ts
4
6
  const flattened = {};
5
- for (const group of Object.values(osConstants)) {
6
- if (typeof group === "object" && group !== null) {
7
- Object.assign(flattened, group);
8
- }
7
+ for (const group of Object.values(constants)) {
8
+ if (typeof group === "object" && group !== null) {
9
+ Object.assign(flattened, group);
10
+ }
9
11
  }
10
- Object.assign(flattened, fsConstants);
11
- Object.assign(flattened, cryptoConstants);
12
- var index_default = flattened;
13
- const {
14
- // Errno constants (from os.constants.errno)
15
- E2BIG,
16
- EACCES,
17
- EADDRINUSE,
18
- EADDRNOTAVAIL,
19
- EAFNOSUPPORT,
20
- EAGAIN,
21
- EALREADY,
22
- EBADF,
23
- EBADMSG,
24
- EBUSY,
25
- ECANCELED,
26
- ECHILD,
27
- ECONNABORTED,
28
- ECONNREFUSED,
29
- ECONNRESET,
30
- EDEADLK,
31
- EDESTADDRREQ,
32
- EDOM,
33
- EDQUOT,
34
- EEXIST,
35
- EFAULT,
36
- EFBIG,
37
- EHOSTUNREACH,
38
- EIDRM,
39
- EILSEQ,
40
- EINPROGRESS,
41
- EINTR,
42
- EINVAL,
43
- EIO,
44
- EISCONN,
45
- EISDIR,
46
- ELOOP,
47
- EMFILE,
48
- EMLINK,
49
- EMSGSIZE,
50
- ENAMETOOLONG,
51
- ENETDOWN,
52
- ENETRESET,
53
- ENETUNREACH,
54
- ENFILE,
55
- ENOBUFS,
56
- ENODATA,
57
- ENODEV,
58
- ENOENT,
59
- ENOEXEC,
60
- ENOLCK,
61
- ENOLINK,
62
- ENOMEM,
63
- ENOMSG,
64
- ENOPROTOOPT,
65
- ENOSPC,
66
- ENOSR,
67
- ENOSTR,
68
- ENOSYS,
69
- ENOTCONN,
70
- ENOTDIR,
71
- ENOTEMPTY,
72
- ENOTSOCK,
73
- ENOTSUP,
74
- ENOTTY,
75
- ENXIO,
76
- EOPNOTSUPP,
77
- EOVERFLOW,
78
- EPERM,
79
- EPIPE,
80
- EPROTO,
81
- EPROTONOSUPPORT,
82
- EPROTOTYPE,
83
- ERANGE,
84
- EROFS,
85
- ESPIPE,
86
- ESRCH,
87
- ESTALE,
88
- ETIME,
89
- ETIMEDOUT,
90
- ETXTBSY,
91
- EWOULDBLOCK,
92
- EXDEV,
93
- // Signal constants (from os.constants.signals)
94
- SIGHUP,
95
- SIGINT,
96
- SIGQUIT,
97
- SIGILL,
98
- SIGTRAP,
99
- SIGABRT,
100
- SIGBUS,
101
- SIGFPE,
102
- SIGKILL,
103
- SIGUSR1,
104
- SIGUSR2,
105
- SIGSEGV,
106
- SIGPIPE,
107
- SIGALRM,
108
- SIGTERM,
109
- SIGCHLD,
110
- SIGCONT,
111
- SIGSTOP,
112
- SIGTSTP,
113
- SIGTTIN,
114
- SIGTTOU,
115
- SIGURG,
116
- SIGXCPU,
117
- SIGXFSZ,
118
- SIGVTALRM,
119
- SIGPROF,
120
- SIGWINCH,
121
- SIGIO,
122
- SIGPWR,
123
- SIGSYS
124
- } = flattened;
125
- export {
126
- E2BIG,
127
- EACCES,
128
- EADDRINUSE,
129
- EADDRNOTAVAIL,
130
- EAFNOSUPPORT,
131
- EAGAIN,
132
- EALREADY,
133
- EBADF,
134
- EBADMSG,
135
- EBUSY,
136
- ECANCELED,
137
- ECHILD,
138
- ECONNABORTED,
139
- ECONNREFUSED,
140
- ECONNRESET,
141
- EDEADLK,
142
- EDESTADDRREQ,
143
- EDOM,
144
- EDQUOT,
145
- EEXIST,
146
- EFAULT,
147
- EFBIG,
148
- EHOSTUNREACH,
149
- EIDRM,
150
- EILSEQ,
151
- EINPROGRESS,
152
- EINTR,
153
- EINVAL,
154
- EIO,
155
- EISCONN,
156
- EISDIR,
157
- ELOOP,
158
- EMFILE,
159
- EMLINK,
160
- EMSGSIZE,
161
- ENAMETOOLONG,
162
- ENETDOWN,
163
- ENETRESET,
164
- ENETUNREACH,
165
- ENFILE,
166
- ENOBUFS,
167
- ENODATA,
168
- ENODEV,
169
- ENOENT,
170
- ENOEXEC,
171
- ENOLCK,
172
- ENOLINK,
173
- ENOMEM,
174
- ENOMSG,
175
- ENOPROTOOPT,
176
- ENOSPC,
177
- ENOSR,
178
- ENOSTR,
179
- ENOSYS,
180
- ENOTCONN,
181
- ENOTDIR,
182
- ENOTEMPTY,
183
- ENOTSOCK,
184
- ENOTSUP,
185
- ENOTTY,
186
- ENXIO,
187
- EOPNOTSUPP,
188
- EOVERFLOW,
189
- EPERM,
190
- EPIPE,
191
- EPROTO,
192
- EPROTONOSUPPORT,
193
- EPROTOTYPE,
194
- ERANGE,
195
- EROFS,
196
- ESPIPE,
197
- ESRCH,
198
- ESTALE,
199
- ETIME,
200
- ETIMEDOUT,
201
- ETXTBSY,
202
- EWOULDBLOCK,
203
- EXDEV,
204
- SIGABRT,
205
- SIGALRM,
206
- SIGBUS,
207
- SIGCHLD,
208
- SIGCONT,
209
- SIGFPE,
210
- SIGHUP,
211
- SIGILL,
212
- SIGINT,
213
- SIGIO,
214
- SIGKILL,
215
- SIGPIPE,
216
- SIGPROF,
217
- SIGPWR,
218
- SIGQUIT,
219
- SIGSEGV,
220
- SIGSTOP,
221
- SIGSYS,
222
- SIGTERM,
223
- SIGTRAP,
224
- SIGTSTP,
225
- SIGTTIN,
226
- SIGTTOU,
227
- SIGURG,
228
- SIGUSR1,
229
- SIGUSR2,
230
- SIGVTALRM,
231
- SIGWINCH,
232
- SIGXCPU,
233
- SIGXFSZ,
234
- index_default as default
235
- };
12
+ Object.assign(flattened, constants$1);
13
+ Object.assign(flattened, constants$2);
14
+ const { E2BIG, EACCES, EADDRINUSE, EADDRNOTAVAIL, EAFNOSUPPORT, EAGAIN, EALREADY, EBADF, EBADMSG, EBUSY, ECANCELED, ECHILD, ECONNABORTED, ECONNREFUSED, ECONNRESET, EDEADLK, EDESTADDRREQ, EDOM, EDQUOT, EEXIST, EFAULT, EFBIG, EHOSTUNREACH, EIDRM, EILSEQ, EINPROGRESS, EINTR, EINVAL, EIO, EISCONN, EISDIR, ELOOP, EMFILE, EMLINK, EMSGSIZE, ENAMETOOLONG, ENETDOWN, ENETRESET, ENETUNREACH, ENFILE, ENOBUFS, ENODATA, ENODEV, ENOENT, ENOEXEC, ENOLCK, ENOLINK, ENOMEM, ENOMSG, ENOPROTOOPT, ENOSPC, ENOSR, ENOSTR, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTSOCK, ENOTSUP, ENOTTY, ENXIO, EOPNOTSUPP, EOVERFLOW, EPERM, EPIPE, EPROTO, EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, ESTALE, ETIME, ETIMEDOUT, ETXTBSY, EWOULDBLOCK, EXDEV, SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGTRAP, SIGABRT, SIGBUS, SIGFPE, SIGKILL, SIGUSR1, SIGUSR2, SIGSEGV, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGCONT, SIGSTOP, SIGTSTP, SIGTTIN, SIGTTOU, SIGURG, SIGXCPU, SIGXFSZ, SIGVTALRM, SIGPROF, SIGWINCH, SIGIO, SIGPWR, SIGSYS } = flattened;
15
+
16
+ //#endregion
17
+ export { E2BIG, EACCES, EADDRINUSE, EADDRNOTAVAIL, EAFNOSUPPORT, EAGAIN, EALREADY, EBADF, EBADMSG, EBUSY, ECANCELED, ECHILD, ECONNABORTED, ECONNREFUSED, ECONNRESET, EDEADLK, EDESTADDRREQ, EDOM, EDQUOT, EEXIST, EFAULT, EFBIG, EHOSTUNREACH, EIDRM, EILSEQ, EINPROGRESS, EINTR, EINVAL, EIO, EISCONN, EISDIR, ELOOP, EMFILE, EMLINK, EMSGSIZE, ENAMETOOLONG, ENETDOWN, ENETRESET, ENETUNREACH, ENFILE, ENOBUFS, ENODATA, ENODEV, ENOENT, ENOEXEC, ENOLCK, ENOLINK, ENOMEM, ENOMSG, ENOPROTOOPT, ENOSPC, ENOSR, ENOSTR, ENOSYS, ENOTCONN, ENOTDIR, ENOTEMPTY, ENOTSOCK, ENOTSUP, ENOTTY, ENXIO, EOPNOTSUPP, EOVERFLOW, EPERM, EPIPE, EPROTO, EPROTONOSUPPORT, EPROTOTYPE, ERANGE, EROFS, ESPIPE, ESRCH, ESTALE, ETIME, ETIMEDOUT, ETXTBSY, EWOULDBLOCK, EXDEV, SIGABRT, SIGALRM, SIGBUS, SIGCHLD, SIGCONT, SIGFPE, SIGHUP, SIGILL, SIGINT, SIGIO, SIGKILL, SIGPIPE, SIGPROF, SIGPWR, SIGQUIT, SIGSEGV, SIGSTOP, SIGSYS, SIGTERM, SIGTRAP, SIGTSTP, SIGTTIN, SIGTTOU, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM, SIGWINCH, SIGXCPU, SIGXFSZ, flattened as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/constants",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "description": "Node.js constants module for Gjs (deprecated, re-exports from os/fs/crypto)",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -30,13 +30,13 @@
30
30
  "constants"
31
31
  ],
32
32
  "dependencies": {
33
- "@gjsify/crypto": "^0.3.13",
34
- "@gjsify/fs": "^0.3.13",
35
- "@gjsify/os": "^0.3.13"
33
+ "@gjsify/crypto": "^0.3.15",
34
+ "@gjsify/fs": "^0.3.15",
35
+ "@gjsify/os": "^0.3.15"
36
36
  },
37
37
  "devDependencies": {
38
- "@gjsify/cli": "^0.3.13",
39
- "@gjsify/unit": "^0.3.13",
38
+ "@gjsify/cli": "^0.3.15",
39
+ "@gjsify/unit": "^0.3.15",
40
40
  "@types/node": "^25.6.0",
41
41
  "typescript": "^6.0.3"
42
42
  }