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

code-fns

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-fns - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

11

lib/types/tags.d.ts

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

interface CodeTree {
export interface CodeTree {
language: string;

@@ -6,7 +6,7 @@ spans: string[];

}
declare type Code = CodeTree | string;
declare type TaggedFunction = (code: TemplateStringsArray, ...rest: Code[]) => CodeTree;
declare type LanguageDictionary = Record<string, TaggedFunction>;
export declare type Code = CodeTree | string;
export declare type TaggedFunction = (code: TemplateStringsArray, ...rest: Code[]) => CodeTree;
export declare type LanguageDictionary = Record<string, TaggedFunction>;
export declare const language: LanguageDictionary;
interface Token {
export interface Token {
code: string;

@@ -19,3 +19,2 @@ color: string | null;

export declare function diff(start: CodeTree, end: CodeTree): Promise<(Token | null)[]>;
export {};
//# sourceMappingURL=tags.d.ts.map
{
"name": "code-fns",
"version": "0.4.0",
"version": "0.4.1",
"description": "A library for visualizing code.",

@@ -5,0 +5,0 @@ "license": "MIT",

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