@dataloop-ai/components 0.20.21 → 0.20.22
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.
|
|
3
|
+
"version": "0.20.22",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": "./index.ts",
|
|
6
6
|
"./models": "./models.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
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"
|
|
@@ -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
|
|
449
|
-
/
|
|
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
|
}
|