ccdeck 3.50.0 → 3.51.0

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 (96) hide show
  1. package/README.md +2 -0
  2. package/THIRD_PARTY_NOTICES.md +28 -0
  3. package/dist/web/assets/BrowserWatchModal-CDpunrq9.js +1 -0
  4. package/dist/web/assets/IntegrationModal-BctMcNU8.js +7 -0
  5. package/dist/web/assets/{RadioPanel-D3JLkVYu.js → RadioPanel-DQNFtYOx.js} +1 -1
  6. package/dist/web/assets/{TrafficRadar-Cuk5tXfL.js → TrafficRadar-DRt3Al7E.js} +1 -1
  7. package/dist/web/assets/UsageHistoryModal-DlgPufgs.js +1 -0
  8. package/dist/web/assets/{app-BRaZrImF.js → app-4x4wTE-L.js} +70 -70
  9. package/dist/web/assets/{app-DfGYllmZ.css → app-o4kL0FgZ.css} +1 -1
  10. package/dist/web/assets/{index-DSIUCKoe.js → index-CWUj8Kqh.js} +1 -1
  11. package/dist/web/index.html +3 -3
  12. package/node_modules/bare-addon-resolve/LICENSE +201 -0
  13. package/node_modules/bare-addon-resolve/README.md +226 -0
  14. package/node_modules/bare-addon-resolve/index.d.ts +100 -0
  15. package/node_modules/bare-addon-resolve/index.js +531 -0
  16. package/node_modules/bare-addon-resolve/lib/errors.d.ts +16 -0
  17. package/node_modules/bare-addon-resolve/lib/errors.js +21 -0
  18. package/node_modules/bare-addon-resolve/package.json +57 -0
  19. package/node_modules/bare-module-resolve/LICENSE +201 -0
  20. package/node_modules/bare-module-resolve/README.md +322 -0
  21. package/node_modules/bare-module-resolve/index.d.ts +171 -0
  22. package/node_modules/bare-module-resolve/index.js +899 -0
  23. package/node_modules/bare-module-resolve/lib/errors.d.ts +31 -0
  24. package/node_modules/bare-module-resolve/lib/errors.js +37 -0
  25. package/node_modules/bare-module-resolve/package.json +56 -0
  26. package/node_modules/bare-semver/LICENSE +201 -0
  27. package/node_modules/bare-semver/README.md +147 -0
  28. package/node_modules/bare-semver/index.d.ts +61 -0
  29. package/node_modules/bare-semver/index.js +13 -0
  30. package/node_modules/bare-semver/lib/comparator.js +37 -0
  31. package/node_modules/bare-semver/lib/constants.js +7 -0
  32. package/node_modules/bare-semver/lib/errors.js +22 -0
  33. package/node_modules/bare-semver/lib/range.js +256 -0
  34. package/node_modules/bare-semver/lib/version.js +240 -0
  35. package/node_modules/bare-semver/package.json +43 -0
  36. package/node_modules/fs-native-extensions/CMakeLists.txt +118 -0
  37. package/node_modules/fs-native-extensions/LICENSE +201 -0
  38. package/node_modules/fs-native-extensions/README.md +160 -0
  39. package/node_modules/fs-native-extensions/binding.c +1825 -0
  40. package/node_modules/fs-native-extensions/binding.js +3 -0
  41. package/node_modules/fs-native-extensions/include/fs-ext.h +193 -0
  42. package/node_modules/fs-native-extensions/index.js +356 -0
  43. package/node_modules/fs-native-extensions/package.json +72 -0
  44. package/node_modules/fs-native-extensions/prebuilds/android-arm/fs-native-extensions.bare +0 -0
  45. package/node_modules/fs-native-extensions/prebuilds/android-arm/fs-native-extensions.node +0 -0
  46. package/node_modules/fs-native-extensions/prebuilds/android-arm64/fs-native-extensions.bare +0 -0
  47. package/node_modules/fs-native-extensions/prebuilds/android-arm64/fs-native-extensions.node +0 -0
  48. package/node_modules/fs-native-extensions/prebuilds/android-ia32/fs-native-extensions.bare +0 -0
  49. package/node_modules/fs-native-extensions/prebuilds/android-ia32/fs-native-extensions.node +0 -0
  50. package/node_modules/fs-native-extensions/prebuilds/android-x64/fs-native-extensions.bare +0 -0
  51. package/node_modules/fs-native-extensions/prebuilds/android-x64/fs-native-extensions.node +0 -0
  52. package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.bare +0 -0
  53. package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.node +0 -0
  54. package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.bare +0 -0
  55. package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.node +0 -0
  56. package/node_modules/fs-native-extensions/prebuilds/ios-arm64/fs-native-extensions.bare +0 -0
  57. package/node_modules/fs-native-extensions/prebuilds/ios-arm64-simulator/fs-native-extensions.bare +0 -0
  58. package/node_modules/fs-native-extensions/prebuilds/ios-x64-simulator/fs-native-extensions.bare +0 -0
  59. package/node_modules/fs-native-extensions/prebuilds/linux-arm64/fs-native-extensions.bare +0 -0
  60. package/node_modules/fs-native-extensions/prebuilds/linux-arm64/fs-native-extensions.node +0 -0
  61. package/node_modules/fs-native-extensions/prebuilds/linux-x64/fs-native-extensions.bare +0 -0
  62. package/node_modules/fs-native-extensions/prebuilds/linux-x64/fs-native-extensions.node +0 -0
  63. package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.bare +0 -0
  64. package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.node +0 -0
  65. package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.bare +0 -0
  66. package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.node +0 -0
  67. package/node_modules/fs-native-extensions/src/apple.c +197 -0
  68. package/node_modules/fs-native-extensions/src/linux.c +146 -0
  69. package/node_modules/fs-native-extensions/src/platform.h +51 -0
  70. package/node_modules/fs-native-extensions/src/posix.c +33 -0
  71. package/node_modules/fs-native-extensions/src/shared.c +397 -0
  72. package/node_modules/fs-native-extensions/src/win32/nt.h +226 -0
  73. package/node_modules/fs-native-extensions/src/win32.c +531 -0
  74. package/node_modules/require-addon/LICENSE +201 -0
  75. package/node_modules/require-addon/README.md +19 -0
  76. package/node_modules/require-addon/lib/bare.js +1 -0
  77. package/node_modules/require-addon/lib/default.js +7 -0
  78. package/node_modules/require-addon/lib/node.js +79 -0
  79. package/node_modules/require-addon/package.json +64 -0
  80. package/node_modules/which-runtime/LICENSE +201 -0
  81. package/node_modules/which-runtime/README.md +29 -0
  82. package/node_modules/which-runtime/index.js +36 -0
  83. package/node_modules/which-runtime/package.json +32 -0
  84. package/package.json +8 -2
  85. package/release-notes.json +19 -0
  86. package/src/server/integrations/jira-comment.mjs +37 -0
  87. package/src/server/integrations/jira-move.mjs +37 -11
  88. package/src/server/integrations/jira-transition.mjs +43 -0
  89. package/src/server/integrations/jira-write-guard.mjs +218 -0
  90. package/src/server/integrations/jira.mjs +16 -0
  91. package/src/server/integrations/routes.mjs +70 -7
  92. package/src/server/static-cache.mjs +34 -16
  93. package/src/server/traffic-radar-wire.mjs +6 -0
  94. package/dist/web/assets/BrowserWatchModal-CSckhvRP.js +0 -1
  95. package/dist/web/assets/IntegrationModal-CT8_QnAx.js +0 -7
  96. package/dist/web/assets/UsageHistoryModal-DiEH73iz.js +0 -1
@@ -0,0 +1,197 @@
1
+ #include <errno.h>
2
+ #include <fcntl.h>
3
+ #include <stdint.h>
4
+ #include <stdlib.h>
5
+ #include <string.h>
6
+ #include <sys/xattr.h>
7
+ #include <unistd.h>
8
+ #include <uv.h>
9
+
10
+ #include "../include/fs-ext.h"
11
+
12
+ #include "platform.h"
13
+
14
+ int
15
+ fs_ext__try_lock(uv_os_fd_t fd, uint64_t offset, size_t length, fs_ext_lock_type_t type) {
16
+ if (offset != 0 || length != 0) return UV_EINVAL;
17
+
18
+ int res = flock(fd, (type == FS_EXT_WRLOCK ? LOCK_EX : LOCK_SH) | LOCK_NB);
19
+
20
+ return res == -1 ? uv_translate_sys_error(errno) : res;
21
+ }
22
+
23
+ int
24
+ fs_ext__wait_for_lock(uv_os_fd_t fd, uint64_t offset, size_t length, fs_ext_lock_type_t type) {
25
+ if (offset != 0 || length != 0) return UV_EINVAL;
26
+
27
+ int res = flock(fd, type == FS_EXT_WRLOCK ? LOCK_EX : LOCK_SH);
28
+
29
+ return res == -1 ? uv_translate_sys_error(errno) : res;
30
+ }
31
+
32
+ int
33
+ fs_ext__unlock(uv_os_fd_t fd, uint64_t offset, size_t length) {
34
+ if (offset != 0 || length != 0) return UV_EINVAL;
35
+
36
+ int res = flock(fd, LOCK_UN);
37
+
38
+ return res == -1 ? uv_translate_sys_error(errno) : res;
39
+ }
40
+
41
+ static inline size_t
42
+ fs_ext__align_up(size_t n, size_t align) {
43
+ return (n + (align - 1)) & -align;
44
+ }
45
+
46
+ static inline size_t
47
+ fs_ext__align_down(size_t n, size_t align) {
48
+ return n & -align;
49
+ }
50
+
51
+ static inline size_t
52
+ fs_ext__min(size_t a, size_t b) {
53
+ return a < b ? a : b;
54
+ }
55
+
56
+ int
57
+ fs_ext__trim(uv_os_fd_t fd, uint64_t offset, size_t length) {
58
+ struct stat st;
59
+
60
+ int res = fstat(fd, &st);
61
+
62
+ if (res == -1) return uv_translate_sys_error(errno);
63
+
64
+ size_t align = st.st_blksize;
65
+
66
+ size_t aligned_offset = fs_ext__align_up(offset, align);
67
+
68
+ if (aligned_offset != offset) {
69
+ size_t zero_length = fs_ext__min(length, aligned_offset - offset);
70
+
71
+ void *buf = calloc(1, zero_length);
72
+
73
+ ssize_t res = pwrite(fd, buf, zero_length, offset);
74
+
75
+ free(buf);
76
+
77
+ if (res == -1) return uv_translate_sys_error(errno);
78
+
79
+ offset += zero_length;
80
+ length -= zero_length;
81
+ }
82
+
83
+ size_t aligned_length = fs_ext__align_down(length, align);
84
+
85
+ if (aligned_length >= align) {
86
+ struct fpunchhole data = {
87
+ .fp_flags = 0,
88
+ .reserved = 0,
89
+ .fp_offset = offset,
90
+ .fp_length = aligned_length,
91
+ };
92
+
93
+ int res = fcntl(fd, F_PUNCHHOLE, &data);
94
+
95
+ if (res == -1) return uv_translate_sys_error(errno);
96
+
97
+ offset += aligned_length;
98
+ length -= aligned_length;
99
+ }
100
+
101
+ if (length > 0) {
102
+ void *buf = calloc(1, length);
103
+
104
+ ssize_t res = pwrite(fd, buf, length, offset);
105
+
106
+ free(buf);
107
+
108
+ if (res == -1) return uv_translate_sys_error(errno);
109
+ }
110
+
111
+ return 0;
112
+ }
113
+
114
+ int
115
+ fs_ext__swap(const char *from, const char *to) {
116
+ int res = renameatx_np(AT_FDCWD, from, AT_FDCWD, to, RENAME_SWAP);
117
+
118
+ return res == -1 ? uv_translate_sys_error(errno) : res;
119
+ }
120
+
121
+ int
122
+ fs_ext__get_attr(uv_os_fd_t fd, const char *name, uv_buf_t *value) {
123
+ int res = fgetxattr(fd, name, NULL, 0, 0, 0);
124
+
125
+ if (res == -1) {
126
+ if (errno == ENOATTR) return UV_ENODATA;
127
+
128
+ return uv_translate_sys_error(errno);
129
+ }
130
+
131
+ *value = uv_buf_init(malloc(res), res);
132
+
133
+ res = fgetxattr(fd, name, value->base, value->len, 0, 0);
134
+
135
+ return res == -1 ? uv_translate_sys_error(errno) : 0;
136
+ }
137
+
138
+ int
139
+ fs_ext__set_attr(uv_os_fd_t fd, const char *name, const uv_buf_t *value) {
140
+ int res = fsetxattr(fd, name, value->base, value->len, 0, 0);
141
+
142
+ return res == -1 ? uv_translate_sys_error(errno) : 0;
143
+ }
144
+
145
+ int
146
+ fs_ext__remove_attr(uv_os_fd_t fd, const char *name) {
147
+ int res = fremovexattr(fd, name, 0);
148
+
149
+ if (res == -1) {
150
+ if (errno == ENOATTR) return UV_ENODATA;
151
+
152
+ return uv_translate_sys_error(errno);
153
+ }
154
+
155
+ return 0;
156
+ }
157
+
158
+ int
159
+ fs_ext__list_attrs(uv_os_fd_t fd, char **names, size_t *length) {
160
+ int res = flistxattr(fd, NULL, 0, 0);
161
+
162
+ if (res == -1) return uv_translate_sys_error(errno);
163
+
164
+ *names = malloc(res);
165
+ *length = res;
166
+
167
+ res = flistxattr(fd, *names, *length, 0);
168
+
169
+ if (res == -1) return uv_translate_sys_error(errno);
170
+
171
+ size_t i = 0, j = 0, n = *length;
172
+
173
+ *length = 0;
174
+
175
+ while (i < n) {
176
+ i += strlen(*names + i) + 1;
177
+ *length += 1;
178
+ }
179
+
180
+ size_t offset = *length * sizeof(char *);
181
+
182
+ *names = realloc(*names, offset + n);
183
+
184
+ memmove(*names + offset, *names, n);
185
+
186
+ i = 0;
187
+
188
+ while (i < n) {
189
+ char *name = *names + offset + i;
190
+ i += strlen(name) + 1;
191
+
192
+ memcpy(*names + j, &name, sizeof(char *));
193
+ j += sizeof(char *);
194
+ }
195
+
196
+ return 0;
197
+ }
@@ -0,0 +1,146 @@
1
+ #define _GNU_SOURCE
2
+
3
+ #include <errno.h>
4
+ #include <fcntl.h>
5
+ #include <stdint.h>
6
+ #include <stdlib.h>
7
+ #include <string.h>
8
+ #include <sys/syscall.h>
9
+ #include <sys/xattr.h>
10
+ #include <unistd.h>
11
+ #include <uv.h>
12
+
13
+ #include "../include/fs-ext.h"
14
+
15
+ #include "platform.h"
16
+
17
+ #ifndef RENAME_EXCHANGE
18
+ #define RENAME_EXCHANGE 2
19
+ #endif
20
+
21
+ int
22
+ fs_ext__try_lock(uv_os_fd_t fd, uint64_t offset, size_t length, fs_ext_lock_type_t type) {
23
+ struct flock data = {
24
+ .l_start = offset,
25
+ .l_len = length,
26
+ .l_pid = 0,
27
+ .l_type = type == FS_EXT_WRLOCK ? F_WRLCK : F_RDLCK,
28
+ .l_whence = SEEK_SET,
29
+ };
30
+
31
+ int res = fcntl(fd, F_OFD_SETLK, &data);
32
+
33
+ return res == -1 ? uv_translate_sys_error(errno) : res;
34
+ }
35
+
36
+ int
37
+ fs_ext__wait_for_lock(uv_os_fd_t fd, uint64_t offset, size_t length, fs_ext_lock_type_t type) {
38
+ struct flock data = {
39
+ .l_start = offset,
40
+ .l_len = length,
41
+ .l_pid = 0,
42
+ .l_type = type == FS_EXT_WRLOCK ? F_WRLCK : F_RDLCK,
43
+ .l_whence = SEEK_SET,
44
+ };
45
+
46
+ int res = fcntl(fd, F_OFD_SETLKW, &data);
47
+
48
+ return res == -1 ? uv_translate_sys_error(errno) : res;
49
+ }
50
+
51
+ int
52
+ fs_ext__unlock(uv_os_fd_t fd, uint64_t offset, size_t length) {
53
+ struct flock data = {
54
+ .l_start = offset,
55
+ .l_len = length,
56
+ .l_pid = 0,
57
+ .l_type = F_UNLCK,
58
+ .l_whence = SEEK_SET,
59
+ };
60
+
61
+ int res = fcntl(fd, F_OFD_SETLK, &data);
62
+
63
+ return res == -1 ? uv_translate_sys_error(errno) : res;
64
+ }
65
+
66
+ int
67
+ fs_ext__trim(uv_os_fd_t fd, uint64_t offset, size_t length) {
68
+ int res = fallocate(fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, offset, length);
69
+
70
+ return res == -1 ? uv_translate_sys_error(errno) : res;
71
+ }
72
+
73
+ int
74
+ fs_ext__swap(const char *from, const char *to) {
75
+ int res = syscall(SYS_renameat2, AT_FDCWD, from, AT_FDCWD, to, RENAME_EXCHANGE);
76
+
77
+ return res == -1 ? uv_translate_sys_error(errno) : res;
78
+ }
79
+
80
+ int
81
+ fs_ext__get_attr(uv_os_fd_t fd, const char *name, uv_buf_t *value) {
82
+ int res = fgetxattr(fd, name, NULL, 0);
83
+
84
+ if (res == -1) return uv_translate_sys_error(errno);
85
+
86
+ *value = uv_buf_init(malloc(res), res);
87
+
88
+ res = fgetxattr(fd, name, value->base, value->len);
89
+
90
+ return res == -1 ? uv_translate_sys_error(errno) : 0;
91
+ }
92
+
93
+ int
94
+ fs_ext__set_attr(uv_os_fd_t fd, const char *name, const uv_buf_t *value) {
95
+ int res = fsetxattr(fd, name, value->base, value->len, 0);
96
+
97
+ return res == -1 ? uv_translate_sys_error(errno) : 0;
98
+ }
99
+
100
+ int
101
+ fs_ext__remove_attr(uv_os_fd_t fd, const char *name) {
102
+ int res = fremovexattr(fd, name);
103
+
104
+ return res == -1 ? uv_translate_sys_error(errno) : 0;
105
+ }
106
+
107
+ int
108
+ fs_ext__list_attrs(uv_os_fd_t fd, char **names, size_t *length) {
109
+ int res = flistxattr(fd, NULL, 0);
110
+
111
+ if (res == -1) return uv_translate_sys_error(errno);
112
+
113
+ *names = malloc(res);
114
+ *length = res;
115
+
116
+ res = flistxattr(fd, *names, *length);
117
+
118
+ if (res == -1) return uv_translate_sys_error(errno);
119
+
120
+ size_t i = 0, j = 0, n = *length;
121
+
122
+ *length = 0;
123
+
124
+ while (i < n) {
125
+ i += strlen(*names + i) + 1;
126
+ *length += 1;
127
+ }
128
+
129
+ size_t offset = *length * sizeof(char *);
130
+
131
+ *names = realloc(*names, offset + n);
132
+
133
+ memmove(*names + offset, *names, n);
134
+
135
+ i = 0;
136
+
137
+ while (i < n) {
138
+ char *name = *names + offset + i;
139
+ i += strlen(name) + 1;
140
+
141
+ memcpy(*names + j, &name, sizeof(char *));
142
+ j += sizeof(char *);
143
+ }
144
+
145
+ return 0;
146
+ }
@@ -0,0 +1,51 @@
1
+ #ifndef FS_EXT_PLATFORM_H
2
+ #define FS_EXT_PLATFORM_H
3
+
4
+ #include <stdint.h>
5
+ #include <uv.h>
6
+
7
+ #include "../include/fs-ext.h"
8
+
9
+ int
10
+ fs_ext__try_lock(uv_os_fd_t fd, uint64_t offset, size_t length, fs_ext_lock_type_t type);
11
+
12
+ int
13
+ fs_ext__wait_for_lock(uv_os_fd_t fd, uint64_t offset, size_t length, fs_ext_lock_type_t type);
14
+
15
+ int
16
+ fs_ext__try_downgrade_lock(uv_os_fd_t fd, uint64_t offset, size_t length);
17
+
18
+ int
19
+ fs_ext__wait_for_downgrade_lock(uv_os_fd_t fd, uint64_t offset, size_t length);
20
+
21
+ int
22
+ fs_ext__try_upgrade_lock(uv_os_fd_t fd, uint64_t offset, size_t length);
23
+
24
+ int
25
+ fs_ext__wait_for_upgrade_lock(uv_os_fd_t fd, uint64_t offset, size_t length);
26
+
27
+ int
28
+ fs_ext__unlock(uv_os_fd_t fd, uint64_t offset, size_t length);
29
+
30
+ int
31
+ fs_ext__trim(uv_os_fd_t fd, uint64_t offset, size_t length);
32
+
33
+ int
34
+ fs_ext__sparse(uv_os_fd_t fd);
35
+
36
+ int
37
+ fs_ext__swap(const char *from, const char *to);
38
+
39
+ int
40
+ fs_ext__get_attr(uv_os_fd_t fd, const char *name, uv_buf_t *value);
41
+
42
+ int
43
+ fs_ext__set_attr(uv_os_fd_t fd, const char *name, const uv_buf_t *value);
44
+
45
+ int
46
+ fs_ext__remove_attr(uv_os_fd_t fd, const char *name);
47
+
48
+ int
49
+ fs_ext__list_attrs(uv_os_fd_t fd, char **names, size_t *length);
50
+
51
+ #endif // FS_EXT_PLATFORM_H
@@ -0,0 +1,33 @@
1
+ #include <errno.h>
2
+ #include <fcntl.h>
3
+ #include <stdint.h>
4
+ #include <uv.h>
5
+
6
+ #include "../include/fs-ext.h"
7
+
8
+ #include "platform.h"
9
+
10
+ int
11
+ fs_ext__try_downgrade_lock(uv_os_fd_t fd, uint64_t offset, size_t length) {
12
+ return fs_ext__try_lock(fd, offset, length, FS_EXT_RDLOCK);
13
+ }
14
+
15
+ int
16
+ fs_ext__wait_for_downgrade_lock(uv_os_fd_t fd, uint64_t offset, size_t length) {
17
+ return fs_ext__wait_for_lock(fd, offset, length, FS_EXT_RDLOCK);
18
+ }
19
+
20
+ int
21
+ fs_ext__try_upgrade_lock(uv_os_fd_t fd, uint64_t offset, size_t length) {
22
+ return fs_ext__try_lock(fd, offset, length, FS_EXT_WRLOCK);
23
+ }
24
+
25
+ int
26
+ fs_ext__wait_for_upgrade_lock(uv_os_fd_t fd, uint64_t offset, size_t length) {
27
+ return fs_ext__wait_for_lock(fd, offset, length, FS_EXT_WRLOCK);
28
+ }
29
+
30
+ int
31
+ fs_ext__sparse(uv_os_fd_t fd) {
32
+ return 0;
33
+ }