Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qvvg/templar

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qvvg/templar - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

6

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc