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.
Files changed (49) hide show
  1. package/{src/koffi/ChangeLog.md → ChangeLog.md} +6 -0
  2. package/{src/koffi/LICENSE.txt → LICENSE.txt} +0 -0
  3. package/{src/koffi/README.md → README.md} +0 -0
  4. package/{src/koffi/doc → doc}/Makefile +0 -0
  5. package/{src/koffi/doc → doc}/benchmarks.md +0 -0
  6. package/{src/koffi/doc → doc}/benchmarks.xlsx +0 -0
  7. package/{src/koffi/doc → doc}/changes.md +0 -0
  8. package/{src/koffi/doc → doc}/conf.py +0 -0
  9. package/{src/koffi/doc → doc}/contribute.md +0 -0
  10. package/{src/koffi/doc → doc}/functions.md +0 -0
  11. package/{src/koffi/doc → doc}/index.rst +0 -0
  12. package/{src/koffi/doc → doc}/make.bat +0 -0
  13. package/{src/koffi/doc → doc}/memory.md +0 -0
  14. package/{src/koffi/doc → doc}/platforms.md +0 -0
  15. package/{src/koffi/doc → doc}/poetry.lock +0 -0
  16. package/{src/koffi/doc → doc}/pyproject.toml +0 -0
  17. package/{src/koffi/doc → doc}/start.md +0 -0
  18. package/{src/koffi/doc → doc}/static/bench_linux.png +0 -0
  19. package/{src/koffi/doc → doc}/static/bench_windows.png +0 -0
  20. package/{src/koffi/doc → doc}/static/custom.css +0 -0
  21. package/{src/koffi/doc → doc}/static/perf_linux_20220623.png +0 -0
  22. package/{src/koffi/doc → doc}/static/perf_linux_20220623_2.png +0 -0
  23. package/{src/koffi/doc → doc}/static/perf_linux_20220627.png +0 -0
  24. package/{src/koffi/doc → doc}/static/perf_linux_20220628.png +0 -0
  25. package/{src/koffi/doc → doc}/static/perf_linux_20220812.png +0 -0
  26. package/{src/koffi/doc → doc}/static/perf_windows_20220623.png +0 -0
  27. package/{src/koffi/doc → doc}/static/perf_windows_20220623_2.png +0 -0
  28. package/{src/koffi/doc → doc}/static/perf_windows_20220627.png +0 -0
  29. package/{src/koffi/doc → doc}/static/perf_windows_20220628.png +0 -0
  30. package/{src/koffi/doc → doc}/static/perf_windows_20220812.png +0 -0
  31. package/{src/koffi/doc → doc}/templates/badges.html +0 -0
  32. package/{src/koffi/doc → doc}/types.md +0 -0
  33. package/package.json +2 -2
  34. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_darwin_arm64.tar.gz +0 -0
  35. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_darwin_x64.tar.gz +0 -0
  36. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_freebsd_arm64.tar.gz +0 -0
  37. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_freebsd_ia32.tar.gz +0 -0
  38. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_freebsd_x64.tar.gz +0 -0
  39. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_linux_arm32hf.tar.gz +0 -0
  40. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_linux_arm64.tar.gz +0 -0
  41. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_linux_ia32.tar.gz +0 -0
  42. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_linux_riscv64hf64.tar.gz +0 -0
  43. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_linux_x64.tar.gz +0 -0
  44. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_openbsd_ia32.tar.gz +0 -0
  45. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_openbsd_x64.tar.gz +0 -0
  46. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_win32_arm64.tar.gz +0 -0
  47. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_win32_ia32.tar.gz +0 -0
  48. package/src/koffi/build/{2.1.4 → 2.1.5}/koffi_win32_x64.tar.gz +0 -0
  49. package/src/koffi/qemu/qemu.js +15 -7
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## History
4
4
 
5
+ ### Koffi 2.1.5
6
+
7
+ **Main fixes:**
8
+
9
+ - Add missing README.md file to NPM package
10
+
5
11
  ### Koffi 2.1.4
6
12
 
7
13
  **Main 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koffi",
3
- "version": "2.1.4",
4
- "stable": "2.1.4",
3
+ "version": "2.1.5",
4
+ "stable": "2.1.5",
5
5
  "description": "Fast and simple C FFI (foreign function interface) for Node.js",
6
6
  "keywords": [
7
7
  "foreign",
@@ -296,7 +296,9 @@ async function pack() {
296
296
  if (!success)
297
297
  return false;
298
298
 
299
- execFileSync('npm', ['pack', '--pack-destination', pack_dir], {
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
- execFileSync('npm', ['publish'], {
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 = path.join(nice, entry.name);
804
+ let filename = nice + (nice ? '/' : '') + entry.name;
797
805
 
798
806
  if (ignored.has(filename))
799
807
  continue;