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

@code-hike/code-diff

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@code-hike/code-diff - npm Package Compare versions

Comparing version 0.0.0-15 to 0.0.0-01f6c70

16

dist/index.cjs.js

@@ -5,7 +5,9 @@ 'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var diff = require('diff');
var Prism$1 = _interopDefault(require('prismjs'));
var Prism$1 = require('prismjs');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var Prism__default = /*#__PURE__*/_interopDefaultLegacy(Prism$1);
/*! *****************************************************************************

@@ -30,3 +32,3 @@ Copyright (c) Microsoft Corporation.

({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);

@@ -190,9 +192,9 @@ };

var newlineRe = /\r\n|\r|\n/;
Prism$1.manual = true;
Prism__default['default'].manual = true;
function tokenize(code, lang) {
var grammar = Prism$1.languages[lang];
var grammar = Prism__default['default'].languages[lang];
if (!grammar) {
throw new MissingGrammarError(lang);
}
var prismTokens = Prism$1.tokenize(code, Prism$1.languages[lang]);
var prismTokens = Prism__default['default'].tokenize(code, Prism__default['default'].languages[lang]);
var nestedTokens = tokenizeStrings(prismTokens);

@@ -199,0 +201,0 @@ var tokens = flattenTokens(nestedTokens);

@@ -23,3 +23,3 @@ import { diffLines } from 'diff';

({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);

@@ -26,0 +26,0 @@ };

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('diff'), require('prismjs')) :
typeof define === 'function' && define.amd ? define(['exports', 'diff', 'prismjs'], factory) :
(global = global || self, factory(global.foo = {}, global.diff, global.Prism$1));
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.foo = {}, global.diff, global.Prism$1));
}(this, (function (exports, diff, Prism$1) { 'use strict';
Prism$1 = Prism$1 && Object.prototype.hasOwnProperty.call(Prism$1, 'default') ? Prism$1['default'] : Prism$1;
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var Prism__default = /*#__PURE__*/_interopDefaultLegacy(Prism$1);
/*! *****************************************************************************

@@ -28,3 +30,3 @@ Copyright (c) Microsoft Corporation.

({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);

@@ -188,9 +190,9 @@ };

var newlineRe = /\r\n|\r|\n/;
Prism$1.manual = true;
Prism__default['default'].manual = true;
function tokenize(code, lang) {
var grammar = Prism$1.languages[lang];
var grammar = Prism__default['default'].languages[lang];
if (!grammar) {
throw new MissingGrammarError(lang);
}
var prismTokens = Prism$1.tokenize(code, Prism$1.languages[lang]);
var prismTokens = Prism__default['default'].tokenize(code, Prism__default['default'].languages[lang]);
var nestedTokens = tokenizeStrings(prismTokens);

@@ -197,0 +199,0 @@ var tokens = flattenTokens(nestedTokens);

{
"name": "@code-hike/code-diff",
"version": "0.0.0-15",
"version": "0.0.0-01f6c70",
"main": "dist/index.js",

@@ -11,5 +11,4 @@ "typings": "dist/index.d.ts",

"scripts": {
"build": "ch-build",
"watch": "ch-build --watch",
"publish-canary": "yarn publish --tag canary --access public",
"script": "ch-script",
"test": "jest",

@@ -19,3 +18,3 @@ "test-watch": "jest --watch --updateSnapshot"

"devDependencies": {
"@code-hike/build": "0.0.1",
"@code-hike/script": "0.0.1",
"@types/diff": "^4.0.2",

@@ -22,0 +21,0 @@ "@types/jest": "^24.0.15",

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