@qvvg/templar
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@qvvg/templar", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "tagged template literals", | ||
@@ -9,3 +9,5 @@ "author": "James Hunter <github@qv.vg>", | ||
"module": "dist/templar.js", | ||
"files": ["dist"], | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": { | ||
@@ -12,0 +14,0 @@ "type": "git", |
@@ -8,5 +8,5 @@ # templar | ||
```javascript | ||
import {t7l} from "@qvvg/templar" | ||
import {templar} from "@qvvg/templar" | ||
const template = t7l` | ||
const template = templar` | ||
From: ${o => o.from} | ||
@@ -32,5 +32,5 @@ To: ${o => o.to} | ||
```javascript | ||
import {t7l} from "@qvvg/templar" | ||
import {templar} from "@qvvg/templar" | ||
const template1 = t7l` | ||
const template1 = templar` | ||
a: ${o => o.a} | ||
@@ -40,3 +40,3 @@ b: ${o => o.b} | ||
const template2 = t7l` | ||
const template2 = templar` | ||
x: ${o => o.x} | ||
@@ -46,3 +46,3 @@ y: ${o => o.y} | ||
const template3 = t7l` | ||
const template3 = templar` | ||
${template1} | ||
@@ -77,5 +77,5 @@ ${template2} | ||
// gql.js | ||
import {t7l} from "@qvvg/templar" | ||
import {templar} from "@qvvg/templar" | ||
export const gql = t7l | ||
export const gql = templar | ||
@@ -145,3 +145,3 @@ export const gqlr = (...args) => (opts = {}) => { | ||
token.type = "script" | ||
token.value = t7l(...args)(token.params) | ||
token.value = templar(...args)(token.params) | ||
return token | ||
@@ -152,3 +152,3 @@ } | ||
token.type = "query" | ||
token.value = t7l(...args)(token.parms) | ||
token.value = templar(...args)(token.parms) | ||
return token | ||
@@ -158,3 +158,3 @@ } | ||
const desc = (...args) => token => { | ||
token.description = t7l(...args)(token.params) | ||
token.description = templar(...args)(token.params) | ||
return token | ||
@@ -161,0 +161,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5717