@swimlane/nodegit 1.1.2 → 1.1.4
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/.github/workflows/publish.yml +4 -2
- package/binding.gyp +362 -0
- package/lib/enums.js +752 -0
- package/lib/nodegit.js +1620 -0
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/@swimlane+nodegit.glibc.node +0 -0
- package/prebuilds/darwin-x64/@swimlane+nodegit.glibc.node +0 -0
- package/prebuilds/linux-x64/@swimlane+nodegit.glibc.node +0 -0
- package/scripts/Dockerfile.alpine +1 -1
- package/scripts/Dockerfile.debian +1 -1
|
@@ -37,7 +37,7 @@ jobs:
|
|
|
37
37
|
submodules: true
|
|
38
38
|
- uses: actions/setup-node@v4
|
|
39
39
|
with:
|
|
40
|
-
node-version:
|
|
40
|
+
node-version: 18.17.0
|
|
41
41
|
check-latest: true
|
|
42
42
|
- name: Prebuildify
|
|
43
43
|
run: |
|
|
@@ -46,7 +46,7 @@ jobs:
|
|
|
46
46
|
sudo apt-get install -y software-properties-common git build-essential clang libssl-dev libkrb5-dev libc++-dev wget python3
|
|
47
47
|
npm ci --ignore-scripts
|
|
48
48
|
npm run preinstall
|
|
49
|
-
npx prebuildify --
|
|
49
|
+
npx prebuildify --strip --tag-libc -t "$(node --version | tr -d 'v')"
|
|
50
50
|
- uses: actions/upload-artifact@v4
|
|
51
51
|
with:
|
|
52
52
|
name: prebuild-${{ runner.os }}-${{ runner.arch }}
|
|
@@ -119,6 +119,8 @@ jobs:
|
|
|
119
119
|
find ./prebuilds
|
|
120
120
|
- name: npm install
|
|
121
121
|
run: npm ci --ignore-scripts
|
|
122
|
+
- name: generate source code
|
|
123
|
+
run: npm run preinstall
|
|
122
124
|
- name: publish
|
|
123
125
|
run: |
|
|
124
126
|
(cat "$NPM_CONFIG_USERCONFIG" || true) && npm publish --provenance --access public
|
package/binding.gyp
ADDED
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
# This is a generated file, modify: generate/templates/templates/binding.gyp
|
|
2
|
+
|
|
3
|
+
{
|
|
4
|
+
"variables": {
|
|
5
|
+
"variables": {
|
|
6
|
+
"target%": "none",
|
|
7
|
+
},
|
|
8
|
+
"is_electron%": "<!(node ./utils/isBuildingForElectron.js <(node_root_dir))",
|
|
9
|
+
"is_IBMi%": "<!(node -p \"os.platform() == 'aix' && os.type() == 'OS400' ? 1 : 0\")",
|
|
10
|
+
"electron_openssl_root%": "<!(node ./utils/getElectronOpenSSLRoot.js <(module_root_dir))",
|
|
11
|
+
"electron_openssl_static%": "<!(node -p \"process.platform !== 'linux' || process.env.NODEGIT_OPENSSL_STATIC_LINK === '1' ? 1 : 0\")",
|
|
12
|
+
"cxx_version%": "<!(node ./utils/defaultCxxStandard.js <(target))",
|
|
13
|
+
"has_cxxflags%": "<!(node -p \"process.env.CXXFLAGS ? 1 : 0\")",
|
|
14
|
+
"macOS_deployment_target": "10.11",
|
|
15
|
+
#https: //github.com/nodejs/node-gyp/issues/2673
|
|
16
|
+
'openssl_fips': '',
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
"targets": [{
|
|
20
|
+
"target_name": "acquireOpenSSL",
|
|
21
|
+
"type": "none",
|
|
22
|
+
"conditions": [
|
|
23
|
+
["<(is_electron) == 1 and <!(node -p \"process.env.npm_config_openssl_dir ? 0 : 1\")", {
|
|
24
|
+
"actions": [{
|
|
25
|
+
"action_name": "acquire",
|
|
26
|
+
"action": ["node", "utils/acquireOpenSSL.js", "<(macOS_deployment_target)"],
|
|
27
|
+
"inputs": [""],
|
|
28
|
+
"outputs": ["vendor/openssl"],
|
|
29
|
+
"message": "Acquiring OpenSSL binaries and headers"
|
|
30
|
+
}]
|
|
31
|
+
}]
|
|
32
|
+
]
|
|
33
|
+
}, {
|
|
34
|
+
"target_name": "configureLibssh2",
|
|
35
|
+
"type": "none",
|
|
36
|
+
"actions": [{
|
|
37
|
+
"action_name": "configure",
|
|
38
|
+
"action": ["node", "utils/configureLibssh2.js"],
|
|
39
|
+
"inputs": [""],
|
|
40
|
+
"outputs": [""]
|
|
41
|
+
}],
|
|
42
|
+
"hard_dependencies": [
|
|
43
|
+
"acquireOpenSSL"
|
|
44
|
+
]
|
|
45
|
+
}, {
|
|
46
|
+
"target_name": "nodegit",
|
|
47
|
+
|
|
48
|
+
"hard_dependencies": [
|
|
49
|
+
"configureLibssh2"
|
|
50
|
+
],
|
|
51
|
+
|
|
52
|
+
"dependencies": [
|
|
53
|
+
"vendor/libgit2.gyp:libgit2"
|
|
54
|
+
],
|
|
55
|
+
|
|
56
|
+
"variables": {
|
|
57
|
+
"coverage%": 0
|
|
58
|
+
},
|
|
59
|
+
"sources": [
|
|
60
|
+
"src/async_baton.cc",
|
|
61
|
+
"src/async_worker.cc",
|
|
62
|
+
"src/lock_master.cc",
|
|
63
|
+
"src/reference_counter.cc",
|
|
64
|
+
"src/thread_pool.cc",
|
|
65
|
+
"src/nodegit.cc",
|
|
66
|
+
"src/init_ssh2.cc",
|
|
67
|
+
"src/promise_completion.cc",
|
|
68
|
+
"src/wrapper.cc",
|
|
69
|
+
"src/functions/copy.cc",
|
|
70
|
+
"src/functions/free.cc",
|
|
71
|
+
"src/cleanup_handle.cc",
|
|
72
|
+
"src/convenient_patch.cc",
|
|
73
|
+
"src/convenient_hunk.cc",
|
|
74
|
+
"src/filter_registry.cc",
|
|
75
|
+
"src/git_buf_converter.cc",
|
|
76
|
+
"src/str_array_converter.cc",
|
|
77
|
+
"src/context.cc",
|
|
78
|
+
"src/v8_helpers.cc",
|
|
79
|
+
"src/tracker_wrap.cc",
|
|
80
|
+
"src/annotated_commit.cc",
|
|
81
|
+
"src/apply.cc",
|
|
82
|
+
"src/apply_options.cc",
|
|
83
|
+
"src/apply_options.cc",
|
|
84
|
+
"src/attr.cc",
|
|
85
|
+
"src/attr_options.cc",
|
|
86
|
+
"src/blame.cc",
|
|
87
|
+
"src/blame_hunk.cc",
|
|
88
|
+
"src/blame_options.cc",
|
|
89
|
+
"src/blob.cc",
|
|
90
|
+
"src/blob_filter_options.cc",
|
|
91
|
+
"src/blob_filter_options.cc",
|
|
92
|
+
"src/branch.cc",
|
|
93
|
+
"src/branch_iterator.cc",
|
|
94
|
+
"src/buf.cc",
|
|
95
|
+
"src/cert.cc",
|
|
96
|
+
"src/cert_hostkey.cc",
|
|
97
|
+
"src/cert_x509.cc",
|
|
98
|
+
"src/checkout.cc",
|
|
99
|
+
"src/checkout_options.cc",
|
|
100
|
+
"src/checkout_perfdata.cc",
|
|
101
|
+
"src/cherrypick.cc",
|
|
102
|
+
"src/cherrypick_options.cc",
|
|
103
|
+
"src/clone.cc",
|
|
104
|
+
"src/clone_options.cc",
|
|
105
|
+
"src/commit.cc",
|
|
106
|
+
"src/commit_graph.cc",
|
|
107
|
+
"src/commit_graph_writer.cc",
|
|
108
|
+
"src/config.cc",
|
|
109
|
+
"src/config_entry.cc",
|
|
110
|
+
"src/config_entry.cc",
|
|
111
|
+
"src/config_iterator.cc",
|
|
112
|
+
"src/configmap.cc",
|
|
113
|
+
"src/credential.cc",
|
|
114
|
+
"src/describe_format_options.cc",
|
|
115
|
+
"src/describe_format_options.cc",
|
|
116
|
+
"src/describe_options.cc",
|
|
117
|
+
"src/describe_options.cc",
|
|
118
|
+
"src/describe_result.cc",
|
|
119
|
+
"src/diff.cc",
|
|
120
|
+
"src/diff_binary.cc",
|
|
121
|
+
"src/diff_binary_file.cc",
|
|
122
|
+
"src/diff_delta.cc",
|
|
123
|
+
"src/diff_file.cc",
|
|
124
|
+
"src/diff_find_options.cc",
|
|
125
|
+
"src/diff_hunk.cc",
|
|
126
|
+
"src/diff_line.cc",
|
|
127
|
+
"src/diff_options.cc",
|
|
128
|
+
"src/diff_parse_options.cc",
|
|
129
|
+
"src/diff_patchid_options.cc",
|
|
130
|
+
"src/diff_perfdata.cc",
|
|
131
|
+
"src/diff_stats.cc",
|
|
132
|
+
"src/error.cc",
|
|
133
|
+
"src/fetch.cc",
|
|
134
|
+
"src/fetch_options.cc",
|
|
135
|
+
"src/fetch_options.cc",
|
|
136
|
+
"src/filter.cc",
|
|
137
|
+
"src/filter.cc",
|
|
138
|
+
"src/filter_list.cc",
|
|
139
|
+
"src/filter_options.cc",
|
|
140
|
+
"src/filter_source.cc",
|
|
141
|
+
"src/graph.cc",
|
|
142
|
+
"src/hashsig.cc",
|
|
143
|
+
"src/ignore.cc",
|
|
144
|
+
"src/index.cc",
|
|
145
|
+
"src/index_conflict_iterator.cc",
|
|
146
|
+
"src/index_entry.cc",
|
|
147
|
+
"src/index_iterator.cc",
|
|
148
|
+
"src/index_name_entry.cc",
|
|
149
|
+
"src/index_reuc_entry.cc",
|
|
150
|
+
"src/index_time.cc",
|
|
151
|
+
"src/indexer_progress.cc",
|
|
152
|
+
"src/libgit2.cc",
|
|
153
|
+
"src/mailmap.cc",
|
|
154
|
+
"src/merge.cc",
|
|
155
|
+
"src/merge_file_input.cc",
|
|
156
|
+
"src/merge_file_options.cc",
|
|
157
|
+
"src/merge_options.cc",
|
|
158
|
+
"src/midx_writer.cc",
|
|
159
|
+
"src/note.cc",
|
|
160
|
+
"src/note_iterator.cc",
|
|
161
|
+
"src/object.cc",
|
|
162
|
+
"src/odb.cc",
|
|
163
|
+
"src/odb_backend_loose_options.cc",
|
|
164
|
+
"src/odb_backend_pack_options.cc",
|
|
165
|
+
"src/odb_object.cc",
|
|
166
|
+
"src/odb_options.cc",
|
|
167
|
+
"src/oid.cc",
|
|
168
|
+
"src/oid_shorten.cc",
|
|
169
|
+
"src/oidarray.cc",
|
|
170
|
+
"src/packbuilder.cc",
|
|
171
|
+
"src/patch.cc",
|
|
172
|
+
"src/path.cc",
|
|
173
|
+
"src/pathspec.cc",
|
|
174
|
+
"src/pathspec_match_list.cc",
|
|
175
|
+
"src/proxy.cc",
|
|
176
|
+
"src/proxy_options.cc",
|
|
177
|
+
"src/push_options.cc",
|
|
178
|
+
"src/push_update.cc",
|
|
179
|
+
"src/rebase.cc",
|
|
180
|
+
"src/rebase_operation.cc",
|
|
181
|
+
"src/rebase_options.cc",
|
|
182
|
+
"src/refdb.cc",
|
|
183
|
+
"src/reference.cc",
|
|
184
|
+
"src/reflog.cc",
|
|
185
|
+
"src/reflog_entry.cc",
|
|
186
|
+
"src/refspec.cc",
|
|
187
|
+
"src/remote.cc",
|
|
188
|
+
"src/remote_callbacks.cc",
|
|
189
|
+
"src/remote_callbacks.cc",
|
|
190
|
+
"src/remote_connect_options.cc",
|
|
191
|
+
"src/remote_create_options.cc",
|
|
192
|
+
"src/remote_create_options.cc",
|
|
193
|
+
"src/remote_head.cc",
|
|
194
|
+
"src/remote_head.cc",
|
|
195
|
+
"src/repository.cc",
|
|
196
|
+
"src/repository_init_options.cc",
|
|
197
|
+
"src/reset.cc",
|
|
198
|
+
"src/revert.cc",
|
|
199
|
+
"src/revert_options.cc",
|
|
200
|
+
"src/revparse.cc",
|
|
201
|
+
"src/revspec.cc",
|
|
202
|
+
"src/revwalk.cc",
|
|
203
|
+
"src/signature.cc",
|
|
204
|
+
"src/stash.cc",
|
|
205
|
+
"src/stash_apply_options.cc",
|
|
206
|
+
"src/stash_apply_options.cc",
|
|
207
|
+
"src/stash_save_options.cc",
|
|
208
|
+
"src/status.cc",
|
|
209
|
+
"src/status_entry.cc",
|
|
210
|
+
"src/status_list.cc",
|
|
211
|
+
"src/status_options.cc",
|
|
212
|
+
"src/status_options.cc",
|
|
213
|
+
"src/strarray.cc",
|
|
214
|
+
"src/submodule.cc",
|
|
215
|
+
"src/submodule_update_options.cc",
|
|
216
|
+
"src/tag.cc",
|
|
217
|
+
"src/time.cc",
|
|
218
|
+
"src/trace.cc",
|
|
219
|
+
"src/transaction.cc",
|
|
220
|
+
"src/transport.cc",
|
|
221
|
+
"src/tree.cc",
|
|
222
|
+
"src/tree_entry.cc",
|
|
223
|
+
"src/tree_update.cc",
|
|
224
|
+
"src/treebuilder.cc",
|
|
225
|
+
"src/worktree.cc",
|
|
226
|
+
"src/worktree_add_options.cc",
|
|
227
|
+
"src/worktree_prune_options.cc",
|
|
228
|
+
"src/worktree_prune_options.cc",
|
|
229
|
+
"src/writestream.cc",
|
|
230
|
+
],
|
|
231
|
+
|
|
232
|
+
"include_dirs": [
|
|
233
|
+
"vendor/libv8-convert",
|
|
234
|
+
"vendor/libssh2/include",
|
|
235
|
+
"<!(node -e \"require('@axosoft/nan')\")"
|
|
236
|
+
],
|
|
237
|
+
|
|
238
|
+
"cflags": [
|
|
239
|
+
"-Wall"
|
|
240
|
+
],
|
|
241
|
+
|
|
242
|
+
"conditions": [
|
|
243
|
+
[
|
|
244
|
+
"coverage==1", {
|
|
245
|
+
"cflags": [
|
|
246
|
+
"-ftest-coverage",
|
|
247
|
+
"-fprofile-arcs"
|
|
248
|
+
],
|
|
249
|
+
"link_settings": {
|
|
250
|
+
"libraries": [
|
|
251
|
+
"-lgcov"
|
|
252
|
+
]
|
|
253
|
+
},
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
[
|
|
257
|
+
"OS=='mac'", {
|
|
258
|
+
"libraries": [
|
|
259
|
+
"-liconv",
|
|
260
|
+
],
|
|
261
|
+
"conditions": [
|
|
262
|
+
["<(is_electron) == 1", {
|
|
263
|
+
"include_dirs": [
|
|
264
|
+
"<(electron_openssl_root)/include"
|
|
265
|
+
],
|
|
266
|
+
"libraries": [
|
|
267
|
+
"<(electron_openssl_root)/lib/libssl.a",
|
|
268
|
+
"<(electron_openssl_root)/lib/libcrypto.a"
|
|
269
|
+
]
|
|
270
|
+
}]
|
|
271
|
+
],
|
|
272
|
+
"xcode_settings": {
|
|
273
|
+
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
|
|
274
|
+
"MACOSX_DEPLOYMENT_TARGET": "<(macOS_deployment_target)",
|
|
275
|
+
'CLANG_CXX_LIBRARY': 'libc++',
|
|
276
|
+
'CLANG_CXX_LANGUAGE_STANDARD': 'c++<(cxx_version)',
|
|
277
|
+
|
|
278
|
+
"WARNING_CFLAGS": [
|
|
279
|
+
"-Wno-unused-variable",
|
|
280
|
+
"-Wint-conversions",
|
|
281
|
+
"-Wmissing-field-initializers",
|
|
282
|
+
"-Wno-c++11-extensions"
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
[
|
|
288
|
+
"OS=='win'", {
|
|
289
|
+
"conditions": [
|
|
290
|
+
["<(is_electron) == 1", {
|
|
291
|
+
"include_dirs": ["<(electron_openssl_root)/include"],
|
|
292
|
+
"libraries": [
|
|
293
|
+
"<(electron_openssl_root)/lib/libcrypto.lib",
|
|
294
|
+
"<(electron_openssl_root)/lib/libssl.lib"
|
|
295
|
+
]
|
|
296
|
+
}]
|
|
297
|
+
],
|
|
298
|
+
"defines": [
|
|
299
|
+
"_HAS_EXCEPTIONS=1"
|
|
300
|
+
],
|
|
301
|
+
"msvs_settings": {
|
|
302
|
+
"VCCLCompilerTool": {
|
|
303
|
+
"AdditionalOptions": [
|
|
304
|
+
"/std:c++<(cxx_version)",
|
|
305
|
+
"/EHsc"
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
"VCLinkerTool": {
|
|
309
|
+
"AdditionalOptions": [
|
|
310
|
+
"/FORCE:MULTIPLE"
|
|
311
|
+
]
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"libraries": [
|
|
315
|
+
"winhttp.lib",
|
|
316
|
+
"crypt32.lib",
|
|
317
|
+
"rpcrt4.lib"
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
["OS=='mac' or OS=='linux' or OS.endswith('bsd') or <(is_IBMi) == 1", {
|
|
322
|
+
"libraries": [
|
|
323
|
+
"<!(krb5-config gssapi --libs)"
|
|
324
|
+
]
|
|
325
|
+
}],
|
|
326
|
+
["OS=='linux' or OS.endswith('bsd') or <(is_IBMi) == 1", {
|
|
327
|
+
"conditions": [
|
|
328
|
+
["<(has_cxxflags) == 0", {
|
|
329
|
+
"cflags_cc": [
|
|
330
|
+
"-std=c++<(cxx_version)"
|
|
331
|
+
],
|
|
332
|
+
}],
|
|
333
|
+
["<(is_electron) == 1 and <(electron_openssl_static) == 1", {
|
|
334
|
+
"include_dirs": [
|
|
335
|
+
"<(electron_openssl_root)/include"
|
|
336
|
+
],
|
|
337
|
+
"libraries": [#this order is significant on centos7 apparently...
|
|
338
|
+
"<(electron_openssl_root)/lib/libssl.a",
|
|
339
|
+
"<(electron_openssl_root)/lib/libcrypto.a"
|
|
340
|
+
]
|
|
341
|
+
}],
|
|
342
|
+
["<(is_electron) == 1 and <(electron_openssl_static) != 1", {
|
|
343
|
+
"libraries": [
|
|
344
|
+
"-lcrypto",
|
|
345
|
+
"-lssl"
|
|
346
|
+
]
|
|
347
|
+
}]
|
|
348
|
+
],
|
|
349
|
+
}],
|
|
350
|
+
[
|
|
351
|
+
"<(is_IBMi) == 1", {
|
|
352
|
+
"include_dirs": [
|
|
353
|
+
"/QOpenSys/pkgs/include"
|
|
354
|
+
],
|
|
355
|
+
"libraries": [
|
|
356
|
+
"-L/QOpenSys/pkgs/lib"
|
|
357
|
+
]
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
]
|
|
361
|
+
}]
|
|
362
|
+
}
|