yggio 0.0.6 → 0.0.14

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/index.js CHANGED
@@ -125,12 +125,32 @@ function requireNative() {
125
125
  } catch (e) {
126
126
  loadErrors.push(e)
127
127
  }
128
+ try {
129
+ const binding = require('yggio-darwin-x64')
130
+ const bindingPackageVersion = require('yggio-darwin-x64/package.json').version
131
+ if (bindingPackageVersion !== '0.0.14' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
132
+ throw new Error(`Native binding package version mismatch, expected 0.0.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
133
+ }
134
+ return binding
135
+ } catch (e) {
136
+ loadErrors.push(e)
137
+ }
128
138
  } else if (process.arch === 'arm64') {
129
139
  try {
130
140
  return require('./yggio.darwin-arm64.node')
131
141
  } catch (e) {
132
142
  loadErrors.push(e)
133
143
  }
144
+ try {
145
+ const binding = require('yggio-darwin-arm64')
146
+ const bindingPackageVersion = require('yggio-darwin-arm64/package.json').version
147
+ if (bindingPackageVersion !== '0.0.14' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
148
+ throw new Error(`Native binding package version mismatch, expected 0.0.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
149
+ }
150
+ return binding
151
+ } catch (e) {
152
+ loadErrors.push(e)
153
+ }
134
154
  } else {
135
155
  loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`))
136
156
  }
@@ -167,8 +187,8 @@ function requireNative() {
167
187
  try {
168
188
  const binding = require('yggio-linux-x64-gnu')
169
189
  const bindingPackageVersion = require('yggio-linux-x64-gnu/package.json').version
170
- if (bindingPackageVersion !== '0.0.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
171
- throw new Error(`Native binding package version mismatch, expected 0.0.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
190
+ if (bindingPackageVersion !== '0.0.14' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
191
+ throw new Error(`Native binding package version mismatch, expected 0.0.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
172
192
  }
173
193
  return binding
174
194
  } catch (e) {
@@ -191,8 +211,8 @@ function requireNative() {
191
211
  try {
192
212
  const binding = require('yggio-linux-arm64-gnu')
193
213
  const bindingPackageVersion = require('yggio-linux-arm64-gnu/package.json').version
194
- if (bindingPackageVersion !== '0.0.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
195
- throw new Error(`Native binding package version mismatch, expected 0.0.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
214
+ if (bindingPackageVersion !== '0.0.14' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
215
+ throw new Error(`Native binding package version mismatch, expected 0.0.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
196
216
  }
197
217
  return binding
198
218
  } catch (e) {
@@ -630,6 +650,8 @@ module.exports.TxHash = nativeBinding.TxHash
630
650
  module.exports.JsTxHash = nativeBinding.JsTxHash
631
651
  module.exports.TxHasher = nativeBinding.TxHasher
632
652
  module.exports.JsTxHasher = nativeBinding.JsTxHasher
653
+ module.exports.Underlyings = nativeBinding.Underlyings
654
+ module.exports.JsUnderlyings = nativeBinding.JsUnderlyings
633
655
  module.exports.Uri = nativeBinding.Uri
634
656
  module.exports.JsUri = nativeBinding.JsUri
635
657
  module.exports.Url = nativeBinding.Url
@@ -662,8 +684,10 @@ module.exports.fixLegalEntityField = nativeBinding.fixLegalEntityField
662
684
  module.exports.fixMicEntryField = nativeBinding.fixMicEntryField
663
685
  module.exports.fixPluginField = nativeBinding.fixPluginField
664
686
  module.exports.fixPluginSide = nativeBinding.fixPluginSide
687
+ module.exports.fixRegistryField = nativeBinding.fixRegistryField
665
688
  module.exports.fixUnderlyingField = nativeBinding.fixUnderlyingField
666
689
  module.exports.marketDataTypeFixCode = nativeBinding.marketDataTypeFixCode
667
690
  module.exports.marketDataTypeFromFix = nativeBinding.marketDataTypeFromFix
668
691
  module.exports.timeInForceFixCode = nativeBinding.timeInForceFixCode
669
692
  module.exports.timeInForceFromFix = nativeBinding.timeInForceFromFix
693
+ module.exports.ai = nativeBinding.ai
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yggio",
3
- "version": "0.0.6",
3
+ "version": "0.0.14",
4
4
  "description": "Native Yggio schemas, fields, Arrow interop, URIs, and structured codecs for Node.js",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -64,7 +64,9 @@
64
64
  "binaryName": "yggio",
65
65
  "targets": [
66
66
  "x86_64-unknown-linux-gnu",
67
- "aarch64-unknown-linux-gnu"
67
+ "aarch64-unknown-linux-gnu",
68
+ "x86_64-apple-darwin",
69
+ "aarch64-apple-darwin"
68
70
  ]
69
71
  },
70
72
  "devDependencies": {
@@ -73,7 +75,9 @@
73
75
  "typescript": "^5.9.2"
74
76
  },
75
77
  "optionalDependencies": {
76
- "yggio-linux-arm64-gnu": "0.0.6",
77
- "yggio-linux-x64-gnu": "0.0.6"
78
+ "yggio-darwin-arm64": "0.0.14",
79
+ "yggio-darwin-x64": "0.0.14",
80
+ "yggio-linux-arm64-gnu": "0.0.14",
81
+ "yggio-linux-x64-gnu": "0.0.14"
78
82
  }
79
83
  }