Skip to content

Commit b2c04a6

Browse files
fix: Correclty call defineProperty to create fragment (#29)
1 parent c0faa38 commit b2c04a6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/yellow-shrimps-melt.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sejohnson/tql": patch
3+
---
4+
5+
fix: Correctly call defineProperty to create fragment

packages/tql-template/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const init: Init = ({ dialect }) => {
2323
const fragment = Object.defineProperty(
2424
(strings: TemplateStringsArray, ...values: unknown[]) => parseTemplate(TqlFragment, strings, values),
2525
'join',
26-
join,
26+
{ value: join },
2727
) as Tql['fragment'];
2828

2929
return {

0 commit comments

Comments
 (0)