Skip to content

Commit

Permalink
Merge pull request #61 from Respo/fix-nil
Browse files Browse the repository at this point in the history
fix nil style value
  • Loading branch information
NoEgAm committed Jan 7, 2024
2 parents 62fad03 + 4d7c21d commit 1cbeb03
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 177 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:

- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/cr'
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.14/cr'
name: 'cr'
version: '0.8.9'
version: '0.8.14'

- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/caps'
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.14/caps'
name: 'caps'
version: '0.8.9'
version: '0.8.14'

- name: "load deps"
run: caps --ci && yarn
Expand Down
14 changes: 9 additions & 5 deletions calcit.cirru

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions compact.cirru
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{} (:package |respo)
:configs $ {} (:init-fn |respo.main/main!) (:reload-fn |respo.main/reload!) (:version |0.16.2)
:configs $ {} (:init-fn |respo.main/main!) (:reload-fn |respo.main/reload!) (:version |0.16.3)
:modules $ [] |memof/ |lilac/ |calcit-test/
:entries $ {}
:files $ {}
Expand Down Expand Up @@ -1554,7 +1554,7 @@
, op
style-name $ dashed->camel (turn-string p)
-> (.-style target)
aset style-name $ get-style-value v (dashed->camel style-name)
aset style-name $ get-style-value v style-name
|rm-element $ %{} :CodeEntry (:doc |)
:code $ quote
defn rm-element (target op)
Expand Down Expand Up @@ -1882,6 +1882,7 @@
(tag? x) (turn-string x)
(number? x)
if (.!test pattern-non-dimension-props prop) (str x) (str x "\"px")
(nil? x) nil
true $ str x
|hsl $ %{} :CodeEntry (:doc |)
:code $ quote
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"version": "0.16.2",
"version": "0.16.3",
"dependencies": {
"@calcit/procs": "^0.8.9"
"@calcit/procs": "^0.8.14"
},
"scripts": {
"test": "cr --once --emit-js --init-fn=respo.test.main/main! && node test.mjs"
},
"devDependencies": {
"vite": "^4.5.0"
"vite": "^5.0.10"
}
}
Loading

0 comments on commit 1cbeb03

Please sign in to comment.