Skip to content

Commit 9e7c5d2

Browse files
committed
fix: add logger utility
1 parent 02fbed9 commit 9e7c5d2

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
},
6363
"dependencies": {
6464
"@cocreate/docs": "^1.1.14",
65-
"@cocreate/observer": "^1.2.4"
65+
"@cocreate/observer": "^1.2.4",
66+
"@cocreate/utils": "^1.0.14"
6667
}
6768
}

src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
/*!
1+
/*
22
* https://cocreate.app
33
* https://github.com/CoCreate-app/Conditional_Logic
44
* Released under the MIT license
55
* https://github.com/CoCreate-app/Conditional_Logic/blob/master/LICENSE
66
*/
77
import observer from '@cocreate/observer'
8+
import {logger} from '@cocreate/utils';
89

10+
let console = logger('off');
911
initShowHideEles();
1012

1113
document.addEventListener('fetchedTemplate', () => {

yarn.lock

+8
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,14 @@
914914
"@cocreate/uuid" "^1.0.0"
915915
ws "^7.4.4"
916916

917+
"@cocreate/utils@^1.0.14":
918+
version "1.0.14"
919+
resolved "https://registry.yarnpkg.com/@cocreate/utils/-/utils-1.0.14.tgz#bd598e369293eb19d952f0e0da4d17923a6532f8"
920+
integrity sha512-ICuiD/Jr8oZITX0+t3L+18opgNkQE38ZufMuqcwR8UyfbJJ6aXAdBIiWGOByqJ+SVRcSWFq2Ayl6Z9GLRQBJBg==
921+
dependencies:
922+
"@cocreate/docs" "^1.1.14"
923+
mini-css-extract-plugin "^1.5.0"
924+
917925
"@cocreate/uuid@^1.0.0":
918926
version "1.0.9"
919927
resolved "https://registry.yarnpkg.com/@cocreate/uuid/-/uuid-1.0.9.tgz#c97ce6c0909925c5141828d145523d9dcd26be52"

0 commit comments

Comments
 (0)