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

annotate-code

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

annotate-code - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

11

dist/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.annotate = void 0;
const BOLD = '\x1b[1m';
const RED = BOLD + '\x1b[31m';
const GREY = '\x1b[90m';
const RESET = '\x1b[0m';
// colors
const isTTY = typeof process !== undefined && process.stdout.isTTY;
const BOLD = isTTY ? '\x1b[1m' : '';
const RED = isTTY ? BOLD + '\x1b[31m' : '';
const GREY = isTTY ? '\x1b[90m' : '';
const RESET = isTTY ? '\x1b[0m' : '';
// shapes
const BAR = ' │ ';

@@ -9,0 +12,0 @@ const LF = GREY + '¬' + RESET;

@@ -1,5 +0,8 @@

const BOLD = '\x1b[1m';
const RED = BOLD + '\x1b[31m';
const GREY = '\x1b[90m';
const RESET = '\x1b[0m';
// colors
const isTTY = typeof process !== undefined && process.stdout.isTTY;
const BOLD = isTTY ? '\x1b[1m' : '';
const RED = isTTY ? BOLD + '\x1b[31m' : '';
const GREY = isTTY ? '\x1b[90m' : '';
const RESET = isTTY ? '\x1b[0m' : '';
// shapes
const BAR = ' │ ';

@@ -6,0 +9,0 @@ const LF = GREY + '¬' + RESET;

@@ -6,3 +6,3 @@ {

"description": "beautifully annotate source code with a message, given an index, like a parser or compiler",
"version": "1.0.0",
"version": "1.1.0",
"license": "MIT",

@@ -9,0 +9,0 @@ "repository": {

@@ -52,3 +52,3 @@ <h1 align="center">annotate-code</h1>

[src/index.ts:40-156](https://github.com/stagas/annotate-code/blob/3b8857dd004347f6651026657c522213ee6d560e/src/index.ts#L40-L156 "Source code on GitHub")
[src/index.ts:44-160](https://github.com/stagas/annotate-code/blob/4390275c76e1c9b679c13fdb38f4e1b138672f64/src/index.ts#L44-L160 "Source code on GitHub")

@@ -55,0 +55,0 @@ Annotates a source code string given an index and a message.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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