@dataloop-ai/components 0.20.21 → 0.20.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.20.21",
3
+ "version": "0.20.23",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -17,13 +17,13 @@
17
17
  "lint": "eslint ./src --ext .ts,.vue ",
18
18
  "lint:fix": "eslint ./src --ext .ts,.vue --fix",
19
19
  "format": "prettier --write ./src",
20
- "lint-staged": "lint-staged",
20
+ "lint-staged": "npm run check-only && lint-staged",
21
21
  "test": "vitest",
22
22
  "test:coverage": "vitest run --coverage --silent",
23
23
  "check-only": "if grep -E -H -r --exclude-dir=.git --exclude-dir=node_modules --exclude=*.json --exclude=*.yml '^(describe|it).only' .; then echo 'Found only in test files' && exit 1; fi"
24
24
  },
25
25
  "dependencies": {
26
- "@dataloop-ai/icons": "^3.0.103",
26
+ "@dataloop-ai/icons": "^3.0.105",
27
27
  "@types/flat": "^5.0.2",
28
28
  "@types/lodash": "^4.14.184",
29
29
  "@types/sortablejs": "^1.15.7",
@@ -445,10 +445,11 @@ export default defineComponent({
445
445
  queryRightSide = queryRightSide.trimStart()
446
446
  } else {
447
447
  // this|situation: replace whatever is there on both sides with the value
448
- queryLeftSide = queryLeftSide.replace(
449
- /('[^']+'?|[^'\s]+)$/,
450
- ''
451
- )
448
+ if (/^[^']+('[^']?'[^']+)?'[^']+'?$/.test(queryLeftSide)) {
449
+ queryLeftSide = queryLeftSide.replace(/'[^']+'?$/, '')
450
+ } else {
451
+ queryLeftSide = queryLeftSide.replace(/[^'\s]+$/, '')
452
+ }
452
453
  queryRightSide =
453
454
  removeLeadingExpression(queryRightSide).trimStart()
454
455
  }