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

erte

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

erte - npm Package Compare versions

Comparing version 1.1.7 to 1.2.0

build/diff.js

16

build/index.js

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

const { diffChars } = require('diff');
const Diff = require('./diff');

@@ -29,3 +29,3 @@ const colors = {

* @param {string} string The string to color.
* @param {Color} color The color to apply.
* @param {_erte.Color} color The color to apply.
*/

@@ -41,3 +41,3 @@ function c(string, color) {

* @param {string} string The string to color.
* @param {Color} color The color to apply.
* @param {_erte.Color} color The color to apply.
*/

@@ -57,3 +57,4 @@ function b(string, color) {

function erte(source, target) {
const d = diffChars(source, target)
const diff = new Diff()
const d = diff.diff(source, target)
const m = d.map(({ added, removed, value }) => {

@@ -81,4 +82,9 @@ let p

/**
* @typedef {('black'|'red'|'green'|'yellow'|'blue'|'magenta'|'cyan'|'white'|'grey')} Color The color.
* @suppress {nonStandardJsDocs}
* @typedef {_erte.Color} Color The color to apply.
*/
/**
* @suppress {nonStandardJsDocs}
* @typedef {('black'|'red'|'green'|'yellow'|'blue'|'magenta'|'cyan'|'white'|'grey')} _erte.Color The color to apply.
*/

@@ -85,0 +91,0 @@

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

## 29 April 2019
### [1.2.0](https://github.com/artdecocode/erte/compare/v1.1.7...v1.2.0)
- [package] Vendor `diff` package's source module modified to remove callback and fix _GCC_ warning of unused property in self.
- [externs] Manually write externs to make `Color` a string.
## 24 January 2019

@@ -2,0 +9,0 @@

{
"name": "erte",
"version": "1.1.7",
"version": "1.2.0",
"description": "String difference with colour for Node.js.",

@@ -12,13 +12,18 @@ "main": "build",

"b": "alamode src -o build -s",
"depack": "depack depack/erte.js -o depack/erte_.js -c -a -p --externs externs.js",
"doc": "doc documentary -o README.md",
"d": "doc src/index.js -g",
"d": "yarn-s d1 externs",
"example": "node example",
"example-c": "yarn e example/c.js",
"example-b": "yarn e example/b.js",
"e": "node example/run"
"e": "alanode",
"externs": "typal externs.js -e",
"d1": "typal src -c"
},
"files": [
"build",
"src"
"src",
"externs.js"
],
"externs": "externs.js",
"repository": {

@@ -44,9 +49,8 @@ "type": "git",

"devDependencies": {
"alamode": "1.8.4",
"snapshot-context": "2.0.4",
"zoroaster": "3.8.2"
"alamode": "2.0.0",
"snapshot-context": "2.2.2",
"yarn-s": "^1.1.0",
"zoroaster": "3.13.0"
},
"dependencies": {
"diff": "4.0.1"
}
"dependencies": {}
}

@@ -19,3 +19,3 @@ <a href="https://artdeco.bz/erte"><img align="right" src="doc/woman.jpg" width="225" alt="erte" />

- [API](#api)
* [`Color`](#type-color)
* [`_erte.Color`](#type-_ertecolor)
- [`erte(source: string, target: string): string`](#ertesource-stringtarget-string-string)

@@ -36,3 +36,3 @@ - [`c(string: string, color: Color): string`](#cstring-stringcolor-color-string)

`('black'|'red'|'green'|'yellow'|'blue'|'magenta'|'cyan'|'white'|'grey')` __<a name="type-color">`Color`</a>__: The color.
`('black'|'red'|'green'|'yellow'|'blue'|'magenta'|'cyan'|'white'|'grey')` __<a name="type-_ertecolor">`_erte.Color`</a>__: The color to apply.

@@ -109,7 +109,26 @@ <p align="center"><a href="#table-of-contents"><img src=".documentary/section-breaks/2.svg?sanitize=true"></a></p>

(c) [Art Deco][1] 2019
The `diff` package author: [Kevin Decker](https://github.com/kpdecker/jsdiff).
---
<table>
<tr>
<th>
<a href="https://artd.eco">
<img src="https://raw.githubusercontent.com/wrote/wrote/master/images/artdeco.png" alt="Art Deco" />
</a>
</th>
<th>© <a href="https://artd.eco">Art Deco</a> 2019</th>
<th>
<a href="https://www.technation.sucks" title="Tech Nation Visa">
<img src="https://raw.githubusercontent.com/artdecoweb/www.technation.sucks/master/anim.gif"
alt="Tech Nation Visa" />
</a>
</th>
<th><a href="https://www.technation.sucks">Tech Nation Visa Sucks</a></th>
</tr>
</table>
[Artwork by Erte][3].
[1]: https://artd.eco
[2]: https://npmjs.org/package/diff

@@ -116,0 +135,0 @@ [3]: http://www.erte.com

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

import { diffChars } from 'diff'
import Diff from './diff'

@@ -29,3 +29,3 @@ const colors = {

* @param {string} string The string to color.
* @param {Color} color The color to apply.
* @param {_erte.Color} color The color to apply.
*/

@@ -41,3 +41,3 @@ export function c(string, color) {

* @param {string} string The string to color.
* @param {Color} color The color to apply.
* @param {_erte.Color} color The color to apply.
*/

@@ -57,3 +57,4 @@ export function b(string, color) {

export default function erte(source, target) {
const d = diffChars(source, target)
const diff = new Diff()
const d = diff.diff(source, target)
const m = d.map(({ added, removed, value }) => {

@@ -81,3 +82,8 @@ let p

/**
* @typedef {('black'|'red'|'green'|'yellow'|'blue'|'magenta'|'cyan'|'white'|'grey')} Color The color.
* @suppress {nonStandardJsDocs}
* @typedef {_erte.Color} Color The color to apply.
*/
/**
* @suppress {nonStandardJsDocs}
* @typedef {('black'|'red'|'green'|'yellow'|'blue'|'magenta'|'cyan'|'white'|'grey')} _erte.Color The color to apply.
*/

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