New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

noop-tag

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noop-tag - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

dist/index.d.ts

@@ -1,2 +0,2 @@

declare function noop(arr: TemplateStringsArray): string;
declare function noop(strings: TemplateStringsArray, ...exp: any[]): string;
declare const _default: typeof noop & {

@@ -3,0 +3,0 @@ default: typeof noop;

"use strict";
/* NOOP */
function noop(arr) {
var args = arguments, strings = args[0], lastIndex = strings.length - 1;
function noop(strings) {
var exp = [];
for (var _i = 1; _i < arguments.length; _i++) {
exp[_i - 1] = arguments[_i];
}
var lastIndex = strings.length - 1;
if (!lastIndex)

@@ -12,3 +16,3 @@ return strings[0];

acc += part;
acc += args[i + 1];
acc += exp[i];
}

@@ -15,0 +19,0 @@ part = strings[lastIndex];

{
"name": "noop-tag",
"description": "A noop template literal tag, useful for syntax highlighting hints.",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "types": "dist/index.d.ts",

/* NOOP */
function noop ( arr: TemplateStringsArray ): string {
function noop ( strings: TemplateStringsArray, ...exp: any[] ): string {
const args = arguments,
strings = args[0],
lastIndex = strings.length - 1;
const lastIndex = strings.length - 1;

@@ -21,3 +19,3 @@ if ( !lastIndex ) return strings[0];

acc += args[i + 1];
acc += exp[i];

@@ -24,0 +22,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