koffi 2.1.4 → 2.1.5
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/{src/koffi/ChangeLog.md → ChangeLog.md} +6 -0
- package/{src/koffi/LICENSE.txt → LICENSE.txt} +0 -0
- package/{src/koffi/README.md → README.md} +0 -0
- package/{src/koffi/doc → doc}/Makefile +0 -0
- package/{src/koffi/doc → doc}/benchmarks.md +0 -0
- package/{src/koffi/doc → doc}/benchmarks.xlsx +0 -0
- package/{src/koffi/doc → doc}/changes.md +0 -0
- package/{src/koffi/doc → doc}/conf.py +0 -0
- package/{src/koffi/doc → doc}/contribute.md +0 -0
- package/{src/koffi/doc → doc}/functions.md +0 -0
- package/{src/koffi/doc → doc}/index.rst +0 -0
- package/{src/koffi/doc → doc}/make.bat +0 -0
- package/{src/koffi/doc → doc}/memory.md +0 -0
- package/{src/koffi/doc → doc}/platforms.md +0 -0
- package/{src/koffi/doc → doc}/poetry.lock +0 -0
- package/{src/koffi/doc → doc}/pyproject.toml +0 -0
- package/{src/koffi/doc → doc}/start.md +0 -0
- package/{src/koffi/doc → doc}/static/bench_linux.png +0 -0
- package/{src/koffi/doc → doc}/static/bench_windows.png +0 -0
- package/{src/koffi/doc → doc}/static/custom.css +0 -0
- package/{src/koffi/doc → doc}/static/perf_linux_20220623.png +0 -0
- package/{src/koffi/doc → doc}/static/perf_linux_20220623_2.png +0 -0
- package/{src/koffi/doc → doc}/static/perf_linux_20220627.png +0 -0
- package/{src/koffi/doc → doc}/static/perf_linux_20220628.png +0 -0
- package/{src/koffi/doc → doc}/static/perf_linux_20220812.png +0 -0
- package/{src/koffi/doc → doc}/static/perf_windows_20220623.png +0 -0
- package/{src/koffi/doc → doc}/static/perf_windows_20220623_2.png +0 -0
- package/{src/koffi/doc → doc}/static/perf_windows_20220627.png +0 -0
- package/{src/koffi/doc → doc}/static/perf_windows_20220628.png +0 -0
- package/{src/koffi/doc → doc}/static/perf_windows_20220812.png +0 -0
- package/{src/koffi/doc → doc}/templates/badges.html +0 -0
- package/{src/koffi/doc → doc}/types.md +0 -0
- package/package.json +2 -2
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_darwin_arm64.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_darwin_x64.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_freebsd_arm64.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_freebsd_ia32.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_freebsd_x64.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_linux_arm32hf.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_linux_arm64.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_linux_ia32.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_linux_riscv64hf64.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_linux_x64.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_openbsd_ia32.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_openbsd_x64.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_win32_arm64.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_win32_ia32.tar.gz +0 -0
- package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_win32_x64.tar.gz +0 -0
- package/src/koffi/qemu/qemu.js +15 -7
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/koffi/qemu/qemu.js
CHANGED
|
@@ -296,7 +296,9 @@ async function pack() {
|
|
|
296
296
|
if (!success)
|
|
297
297
|
return false;
|
|
298
298
|
|
|
299
|
-
|
|
299
|
+
let npm = (process.platform == 'win32') ? 'npm.cmd' : 'npm';
|
|
300
|
+
|
|
301
|
+
execFileSync(npm, ['pack', '--pack-destination', pack_dir], {
|
|
300
302
|
cwd: dist_dir,
|
|
301
303
|
stdio: 'inherit',
|
|
302
304
|
});
|
|
@@ -309,7 +311,9 @@ async function publish() {
|
|
|
309
311
|
if (!success)
|
|
310
312
|
return false;
|
|
311
313
|
|
|
312
|
-
|
|
314
|
+
let npm = (process.platform == 'win32') ? 'npm.cmd' : 'npm';
|
|
315
|
+
|
|
316
|
+
execFileSync(npm, ['publish'], {
|
|
313
317
|
cwd: dist_dir,
|
|
314
318
|
stdio: 'inherit'
|
|
315
319
|
});
|
|
@@ -483,8 +487,12 @@ async function prepare(dist_dir) {
|
|
|
483
487
|
pkg.cnoke.require = "./src/koffi/build/koffi.node";
|
|
484
488
|
|
|
485
489
|
fs.writeFileSync(dist_dir + '/package.json', JSON.stringify(pkg, null, 4));
|
|
486
|
-
fs.unlinkSync(dist_dir + '/src/koffi/package.json'
|
|
487
|
-
fs.unlinkSync(dist_dir + '/src/koffi/.gitignore'
|
|
490
|
+
fs.unlinkSync(dist_dir + '/src/koffi/package.json');
|
|
491
|
+
fs.unlinkSync(dist_dir + '/src/koffi/.gitignore');
|
|
492
|
+
fs.renameSync(dist_dir + '/src/koffi/README.md', dist_dir + '/README.md');
|
|
493
|
+
fs.renameSync(dist_dir + '/src/koffi/LICENSE.txt', dist_dir + '/LICENSE.txt');
|
|
494
|
+
fs.renameSync(dist_dir + '/src/koffi/ChangeLog.md', dist_dir + '/ChangeLog.md');
|
|
495
|
+
fs.renameSync(dist_dir + '/src/koffi/doc', dist_dir + '/doc');
|
|
488
496
|
}
|
|
489
497
|
|
|
490
498
|
return true;
|
|
@@ -498,7 +506,7 @@ function snapshot() {
|
|
|
498
506
|
|
|
499
507
|
console.log('>> Snapshot code...');
|
|
500
508
|
copy_recursive(root_dir, snapshot_dir, filename => {
|
|
501
|
-
let parts = filename.split(/
|
|
509
|
+
let parts = filename.split('/');
|
|
502
510
|
|
|
503
511
|
if (parts[0] == 'src' && parts[1] == 'core') {
|
|
504
512
|
return parts[2] == null || parts[2] == 'libcc';
|
|
@@ -783,7 +791,7 @@ function check_qemu() {
|
|
|
783
791
|
|
|
784
792
|
function copy_recursive(src, dest, validate = filename => true) {
|
|
785
793
|
let proc = spawnSync('git', ['ls-files', '-i', '-o', '--exclude-standard', '--directory'], { cwd: src });
|
|
786
|
-
let ignored = new Set(proc.stdout.toString().split('\n').map(it => it.trim().replace(/[\\\/+]$/, '')).filter(it => it));
|
|
794
|
+
let ignored = new Set(proc.stdout.toString().split('\n').map(it => it.trim().replace(/[\\\/+]$/, '').replaceAll('\\', '/')).filter(it => it));
|
|
787
795
|
|
|
788
796
|
recurse(src, dest, '');
|
|
789
797
|
|
|
@@ -793,7 +801,7 @@ function copy_recursive(src, dest, validate = filename => true) {
|
|
|
793
801
|
for (let entry of entries) {
|
|
794
802
|
let src_filename = path.join(src, entry.name);
|
|
795
803
|
let dest_filename = path.join(dest, entry.name);
|
|
796
|
-
let filename =
|
|
804
|
+
let filename = nice + (nice ? '/' : '') + entry.name;
|
|
797
805
|
|
|
798
806
|
if (ignored.has(filename))
|
|
799
807
|
continue;
|