@dotcms/client 0.0.1-alpha.42 → 0.0.1-alpha.44
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.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +3 -3
package/index.cjs.js
CHANGED
|
@@ -200,7 +200,7 @@ function sanitizeQuery(str) {
|
|
|
200
200
|
* @return {*} {string}
|
|
201
201
|
*/
|
|
202
202
|
function sanitizePhrases(term) {
|
|
203
|
-
return term.includes(' ') ? `
|
|
203
|
+
return term.includes(' ') ? `'${term}'` : term;
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
206
206
|
* This function builds a term to be used in a lucene query.
|
package/index.esm.js
CHANGED
|
@@ -198,7 +198,7 @@ function sanitizeQuery(str) {
|
|
|
198
198
|
* @return {*} {string}
|
|
199
199
|
*/
|
|
200
200
|
function sanitizePhrases(term) {
|
|
201
|
-
return term.includes(' ') ? `
|
|
201
|
+
return term.includes(' ') ? `'${term}'` : term;
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* This function builds a term to be used in a lucene query.
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotcms/client",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.44",
|
|
4
4
|
"description": "Official JavaScript library for interacting with DotCMS REST APIs.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/dotCMS/core.git#
|
|
7
|
+
"url": "git+https://github.com/dotCMS/core.git#main"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "nx run sdk-client:build:js; cd ../../../../dotCMS/src/main/webapp/html/js/editor-js; rm -rf src package.json *.esm.d.ts"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bugs": {
|
|
22
22
|
"url": "https://github.com/dotCMS/core/issues"
|
|
23
23
|
},
|
|
24
|
-
"homepage": "https://github.com/dotCMS/core/tree/
|
|
24
|
+
"homepage": "https://github.com/dotCMS/core/tree/main/core-web/libs/sdk/client/README.md",
|
|
25
25
|
"exports": {
|
|
26
26
|
"./package.json": "./package.json",
|
|
27
27
|
".": {
|