ipa-core 1.3.4 → 1.3.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 (2) hide show
  1. package/package.json +1 -1
  2. package/parser.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ipa-core",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Language-agnostic IPA core with features",
5
5
  "repository": "github:Cody253/ipa-core",
6
6
  "homepage": "https://github.com/Cody253/ipa-core#readme",
package/parser.js CHANGED
@@ -111,8 +111,8 @@ function validateSequence(sequenceObj) {
111
111
  }
112
112
  if (req.features) {
113
113
  for (const [key, value] of Object.entries(req.features)) {
114
- if (component.features[key] !== value) {
115
- throw new Error(`${type} requires position ${req.position} to have features.${key}="${value}", got "${component.features[key]}"`);
114
+ if (!component.features[key].includes(value)) {
115
+ throw new Error(`${type} requires position ${req.position} to have features.${key} containing "${value}", got "${component.features[key]}"`);
116
116
  }
117
117
  }
118
118
  }