@aikdna/kdna-core 0.2.1 → 0.2.2

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 +7 -3
  2. package/src/lint-pure.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikdna/kdna-core",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "KDNA core library — pure logic for loading, validating, linting, and rendering KDNA domain cognition packages. Zero Node.js dependencies.",
5
5
  "type": "commonjs",
6
6
  "main": "src/index.js",
@@ -38,7 +38,11 @@
38
38
  "ajv-formats": "^3.0.1"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
- "ajv": { "optional": true },
42
- "ajv-formats": { "optional": true }
41
+ "ajv": {
42
+ "optional": true
43
+ },
44
+ "ajv-formats": {
45
+ "optional": true
46
+ }
43
47
  }
44
48
  }
package/src/lint-pure.js CHANGED
@@ -57,7 +57,7 @@ function lintDomain(dataMap) {
57
57
  cn.endsWith('?') ||
58
58
  cn.endsWith('吗') ||
59
59
  cn.includes('是否') ||
60
- /^(have|has|can|does|do|is|are|能不能|会不会|有没有|要不要|是不是)/.test(t)
60
+ /^(have|has|can|does|do|is|are|did|was|were|should|will|would|could|might|能不能|会不会|有没有|要不要|是不是)/.test(t)
61
61
  )
62
62
  return;
63
63
  warnings.push(