Socket
Socket
Sign inDemoInstall

groq

Package Overview
Dependencies
Maintainers
15
Versions
883
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

groq - npm Package Compare versions

Comparing version 0.144.3-cheesy-bites.80 to 0.144.3-cheesy-bites.84

8

lib/groq.js
"use strict";
/* eslint-disable import/no-commonjs */
module.exports = function groq(strings) {
for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
keys[_key - 1] = arguments[_key];
}
var lastIndex = strings.length - 1;
module.exports = function groq(strings, ...keys) {
const lastIndex = strings.length - 1;
return strings.slice(0, lastIndex).reduce((acc, str, i) => acc + str + keys[i], '') + strings[lastIndex];
};
{
"name": "groq",
"version": "0.144.3-cheesy-bites.80+95e61fc4e",
"version": "0.144.3-cheesy-bites.84+931d12759",
"description": "Tagged template literal for Sanity.io GROQ-queries",

@@ -38,3 +38,3 @@ "main": "lib/groq.js",

"homepage": "https://www.sanity.io/",
"gitHead": "95e61fc4ef3f9e84629724819910ef27e69599bd"
"gitHead": "931d1275935d00882a7cf928d5cc70b6a8baaeae"
}
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