@leofcoin/codec-format-interface 1.4.0 → 1.4.1

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/dist/index.js CHANGED
@@ -211,7 +211,7 @@ var codecs = {
211
211
  },
212
212
  // chat message
213
213
  'chat-message': {
214
- codec: parseInt('636d', 16),
214
+ codec: parseInt('70636d', 16),
215
215
  hashAlg: 'dbl-keccak-256',
216
216
  },
217
217
  'peernet-file' : {
package/dist/module.js CHANGED
@@ -456,7 +456,7 @@ var codecs = {
456
456
  },
457
457
  // chat message
458
458
  'chat-message': {
459
- codec: parseInt('636d', 16),
459
+ codec: parseInt('70636d', 16),
460
460
  hashAlg: 'dbl-keccak-256',
461
461
  },
462
462
  'peernet-file' : {
@@ -4130,8 +4130,8 @@ var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
4130
4130
  var abi = process.versions.modules; // TODO: support old node where this is undef
4131
4131
  var runtime = isElectron() ? 'electron' : (isNwjs() ? 'node-webkit' : 'node');
4132
4132
 
4133
- var arch = os.arch();
4134
- var platform = os.platform();
4133
+ var arch = process.env.npm_config_arch || os.arch();
4134
+ var platform = process.env.npm_config_platform || os.platform();
4135
4135
  var libc = process.env.LIBC || (isAlpine(platform) ? 'musl' : 'glibc');
4136
4136
  var armv = process.env.ARM_VERSION || (arch === 'arm64' ? '8' : vars.arm_version) || '';
4137
4137
  var uv = (process.versions.uv || '').split('.')[0];
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@leofcoin/codec-format-interface",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
+ "module": "dist/module.js",
6
7
  "scripts": {
7
8
  "test": "echo \"Error: no test specified\" && exit 1",
8
9
  "c": "rollup -c"
@@ -26,7 +27,7 @@
26
27
  "varint": "^6.0.0"
27
28
  },
28
29
  "devDependencies": {
29
- "rollup": "^2.75.5",
30
+ "rollup": "^2.79.1",
30
31
  "tape": "^5.5.3"
31
32
  }
32
33
  }
package/src/codecs.js CHANGED
@@ -73,7 +73,7 @@ export default {
73
73
  },
74
74
  // chat message
75
75
  'chat-message': {
76
- codec: parseInt('636d', 16),
76
+ codec: parseInt('70636d', 16),
77
77
  hashAlg: 'dbl-keccak-256',
78
78
  },
79
79
  'peernet-file' : {