@effect/printer-ansi
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -21,3 +21,3 @@ "use strict"; | ||
*/ | ||
const render = internal.render; | ||
const render = exports.render = internal.render; | ||
/** | ||
@@ -27,4 +27,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.render = render; | ||
const compact = internal.compact; | ||
const compact = exports.compact = internal.compact; | ||
/** | ||
@@ -34,4 +33,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.compact = compact; | ||
const pretty = internal.pretty; | ||
const pretty = exports.pretty = internal.pretty; | ||
/** | ||
@@ -41,4 +39,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.pretty = pretty; | ||
const prettyDefault = internal.prettyDefault; | ||
const prettyDefault = exports.prettyDefault = internal.prettyDefault; | ||
/** | ||
@@ -48,4 +45,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.prettyDefault = prettyDefault; | ||
const prettyUnbounded = internal.prettyUnbounded; | ||
const prettyUnbounded = exports.prettyUnbounded = internal.prettyUnbounded; | ||
/** | ||
@@ -55,4 +51,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.prettyUnbounded = prettyUnbounded; | ||
const smart = internal.smart; | ||
const smart = exports.smart = internal.smart; | ||
/** | ||
@@ -62,4 +57,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.smart = smart; | ||
const smartDefault = internal.smartDefault; | ||
const smartDefault = exports.smartDefault = internal.smartDefault; | ||
/** | ||
@@ -69,5 +63,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.smartDefault = smartDefault; | ||
const smartUnbounded = internal.smartUnbounded; | ||
exports.smartUnbounded = smartUnbounded; | ||
const smartUnbounded = exports.smartUnbounded = internal.smartUnbounded; | ||
//# sourceMappingURL=AnsiRender.js.map |
@@ -21,3 +21,3 @@ "use strict"; | ||
*/ | ||
const bold = internal.bold; | ||
const bold = exports.bold = internal.bold; | ||
/** | ||
@@ -27,4 +27,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.bold = bold; | ||
const italicized = internal.italicized; | ||
const italicized = exports.italicized = internal.italicized; | ||
/** | ||
@@ -34,4 +33,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.italicized = italicized; | ||
const underlined = internal.underlined; | ||
const underlined = exports.underlined = internal.underlined; | ||
/** | ||
@@ -41,4 +39,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.underlined = underlined; | ||
const color = internal.color; | ||
const color = exports.color = internal.color; | ||
/** | ||
@@ -48,4 +45,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.color = color; | ||
const dullColor = internal.dullColor; | ||
const dullColor = exports.dullColor = internal.dullColor; | ||
/** | ||
@@ -55,4 +51,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.dullColor = dullColor; | ||
const backgroundColor = internal.backgroundColor; | ||
const backgroundColor = exports.backgroundColor = internal.backgroundColor; | ||
/** | ||
@@ -62,4 +57,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.backgroundColor = backgroundColor; | ||
const dullBackgroundColor = internal.dullBackgroundColor; | ||
const dullBackgroundColor = exports.dullBackgroundColor = internal.dullBackgroundColor; | ||
// ----------------------------------------------------------------------------- | ||
@@ -72,4 +66,3 @@ // Destructors | ||
*/ | ||
exports.dullBackgroundColor = dullBackgroundColor; | ||
const stringify = internal.stringify; | ||
const stringify = exports.stringify = internal.stringify; | ||
// ----------------------------------------------------------------------------- | ||
@@ -82,4 +75,3 @@ // Instances | ||
*/ | ||
exports.stringify = stringify; | ||
const Semigroup = internal.Semigroup; | ||
const Semigroup = exports.Semigroup = internal.Semigroup; | ||
/** | ||
@@ -89,4 +81,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.Semigroup = Semigroup; | ||
const Monoid = internal.Monoid; | ||
const Monoid = exports.Monoid = internal.Monoid; | ||
// ----------------------------------------------------------------------------- | ||
@@ -99,5 +90,3 @@ // Instances | ||
*/ | ||
exports.Monoid = Monoid; | ||
const combine = Semigroup.combine; | ||
exports.combine = combine; | ||
const combine = exports.combine = Semigroup.combine; | ||
//# sourceMappingURL=AnsiStyle.js.map |
27
Color.js
@@ -21,3 +21,3 @@ "use strict"; | ||
*/ | ||
const black = internal.black; | ||
const black = exports.black = internal.black; | ||
/** | ||
@@ -27,4 +27,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.black = black; | ||
const red = internal.red; | ||
const red = exports.red = internal.red; | ||
/** | ||
@@ -34,4 +33,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.red = red; | ||
const green = internal.green; | ||
const green = exports.green = internal.green; | ||
/** | ||
@@ -41,4 +39,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.green = green; | ||
const yellow = internal.yellow; | ||
const yellow = exports.yellow = internal.yellow; | ||
/** | ||
@@ -48,4 +45,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.yellow = yellow; | ||
const blue = internal.blue; | ||
const blue = exports.blue = internal.blue; | ||
/** | ||
@@ -55,4 +51,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.blue = blue; | ||
const magenta = internal.magenta; | ||
const magenta = exports.magenta = internal.magenta; | ||
/** | ||
@@ -62,4 +57,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.magenta = magenta; | ||
const cyan = internal.cyan; | ||
const cyan = exports.cyan = internal.cyan; | ||
/** | ||
@@ -69,4 +63,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.cyan = cyan; | ||
const white = internal.white; | ||
const white = exports.white = internal.white; | ||
// ----------------------------------------------------------------------------- | ||
@@ -79,5 +72,3 @@ // Destructors | ||
*/ | ||
exports.white = white; | ||
const toCode = internal.toCode; | ||
exports.toCode = toCode; | ||
const toCode = exports.toCode = internal.toCode; | ||
//# sourceMappingURL=Color.js.map |
/** | ||
* @since 1.0.0 | ||
*/ | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as ansiDoc from "@effect/printer-ansi/AnsiDoc"; | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as ansiRender from "@effect/printer-ansi/AnsiRender"; | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as ansiStyle from "@effect/printer-ansi/AnsiStyle"; | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as color from "@effect/printer-ansi/Color"; | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as renderLayer from "@effect/printer-ansi/RenderLayer"; | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as sgr from "@effect/printer-ansi/SGR"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -77,3 +77,3 @@ "use strict"; | ||
exports.compact = compact; | ||
const pretty = /*#__PURE__*/(0, _Function.dual)(2, (self, options) => { | ||
const pretty = exports.pretty = /*#__PURE__*/(0, _Function.dual)(2, (self, options) => { | ||
const width = Object.assign({}, PageWidth.defaultPageWidth, options); | ||
@@ -84,3 +84,2 @@ const layoutOptions = Layout.options(width); | ||
/** @internal */ | ||
exports.pretty = pretty; | ||
const prettyDefault = self => render(Layout.pretty(self, Layout.defaultOptions)); | ||
@@ -92,3 +91,3 @@ /** @internal */ | ||
exports.prettyUnbounded = prettyUnbounded; | ||
const smart = /*#__PURE__*/(0, _Function.dual)(2, (self, options) => { | ||
const smart = exports.smart = /*#__PURE__*/(0, _Function.dual)(2, (self, options) => { | ||
const width = Object.assign({}, PageWidth.defaultPageWidth, options); | ||
@@ -99,3 +98,2 @@ const layoutOptions = Layout.options(width); | ||
/** @internal */ | ||
exports.smart = smart; | ||
const smartDefault = self => render(Layout.smart(self, Layout.defaultOptions)); | ||
@@ -102,0 +100,0 @@ /** @internal */ |
@@ -20,3 +20,3 @@ "use strict"; | ||
/** @internal */ | ||
const Semigroup = /*#__PURE__*/semigroup.struct({ | ||
const Semigroup = exports.Semigroup = /*#__PURE__*/semigroup.struct({ | ||
foreground: getFirstSomeSemigroup, | ||
@@ -28,6 +28,5 @@ background: getFirstSomeSemigroup, | ||
}); | ||
exports.Semigroup = Semigroup; | ||
const monoidOrElse = /*#__PURE__*/monoid.fromSemigroup(getFirstSomeSemigroup, /*#__PURE__*/Option.none()); | ||
/** @internal */ | ||
const Monoid = /*#__PURE__*/monoid.struct({ | ||
const Monoid = exports.Monoid = /*#__PURE__*/monoid.struct({ | ||
foreground: monoidOrElse, | ||
@@ -43,4 +42,3 @@ background: monoidOrElse, | ||
/** @internal */ | ||
exports.Monoid = Monoid; | ||
const bold = { | ||
const bold = exports.bold = { | ||
...Monoid.empty, | ||
@@ -50,4 +48,3 @@ bold: /*#__PURE__*/Option.some( /*#__PURE__*/sgr.setBold(true)) | ||
/** @internal */ | ||
exports.bold = bold; | ||
const italicized = { | ||
const italicized = exports.italicized = { | ||
...Monoid.empty, | ||
@@ -57,4 +54,3 @@ italicized: /*#__PURE__*/Option.some( /*#__PURE__*/sgr.setItalicized(true)) | ||
/** @internal */ | ||
exports.italicized = italicized; | ||
const underlined = { | ||
const underlined = exports.underlined = { | ||
...Monoid.empty, | ||
@@ -64,3 +60,2 @@ underlined: /*#__PURE__*/Option.some( /*#__PURE__*/sgr.setUnderlined(true)) | ||
/** @internal */ | ||
exports.underlined = underlined; | ||
const color = color => ({ | ||
@@ -67,0 +62,0 @@ ...Monoid.empty, |
@@ -11,38 +11,31 @@ "use strict"; | ||
/** @internal */ | ||
const black = { | ||
const black = exports.black = { | ||
_tag: "Black" | ||
}; | ||
/** @internal */ | ||
exports.black = black; | ||
const red = { | ||
const red = exports.red = { | ||
_tag: "Red" | ||
}; | ||
/** @internal */ | ||
exports.red = red; | ||
const green = { | ||
const green = exports.green = { | ||
_tag: "Green" | ||
}; | ||
/** @internal */ | ||
exports.green = green; | ||
const yellow = { | ||
const yellow = exports.yellow = { | ||
_tag: "Yellow" | ||
}; | ||
/** @internal */ | ||
exports.yellow = yellow; | ||
const blue = { | ||
const blue = exports.blue = { | ||
_tag: "Blue" | ||
}; | ||
/** @internal */ | ||
exports.blue = blue; | ||
const magenta = { | ||
const magenta = exports.magenta = { | ||
_tag: "Magenta" | ||
}; | ||
/** @internal */ | ||
exports.magenta = magenta; | ||
const cyan = { | ||
const cyan = exports.cyan = { | ||
_tag: "Cyan" | ||
}; | ||
/** @internal */ | ||
exports.cyan = cyan; | ||
const white = { | ||
const white = exports.white = { | ||
_tag: "White" | ||
@@ -54,3 +47,2 @@ }; | ||
/** @internal */ | ||
exports.white = white; | ||
const toCode = color => { | ||
@@ -57,0 +49,0 @@ switch (color._tag) { |
@@ -8,11 +8,9 @@ "use strict"; | ||
/** @internal */ | ||
const foreground = { | ||
const foreground = exports.foreground = { | ||
_tag: "Foreground" | ||
}; | ||
/** @internal */ | ||
exports.foreground = foreground; | ||
const background = { | ||
const background = exports.background = { | ||
_tag: "Background" | ||
}; | ||
exports.background = background; | ||
//# sourceMappingURL=renderLayer.js.map |
@@ -14,7 +14,6 @@ "use strict"; | ||
/** @internal */ | ||
const reset = { | ||
const reset = exports.reset = { | ||
_tag: "Reset" | ||
}; | ||
/** @internal */ | ||
exports.reset = reset; | ||
const setBold = bold => ({ | ||
@@ -21,0 +20,0 @@ _tag: "SetBold", |
{ | ||
"name": "@effect/printer-ansi", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "Functional programming in TypeScript", | ||
@@ -37,9 +37,11 @@ "license": "MIT", | ||
"author": "Michael Arnaldi <ma@matechs.com>", | ||
"dependencies": { | ||
"@effect/printer": "^0.16.0" | ||
}, | ||
"peerDependencies": { | ||
"@effect/data": "^0.18.3", | ||
"@effect/io": "^0.40.0", | ||
"@effect/typeclass": "^0.5.0", | ||
"@effect/printer": "^0.15.0" | ||
"@effect/data": "^0.18.6", | ||
"@effect/io": "^0.41.0", | ||
"@effect/typeclass": "^0.5.0" | ||
}, | ||
"main": "./index.js" | ||
} |
@@ -21,3 +21,3 @@ "use strict"; | ||
*/ | ||
const foreground = internal.foreground; | ||
const foreground = exports.foreground = internal.foreground; | ||
/** | ||
@@ -27,5 +27,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.foreground = foreground; | ||
const background = internal.background; | ||
exports.background = background; | ||
const background = exports.background = internal.background; | ||
//# sourceMappingURL=RenderLayer.js.map |
21
SGR.js
@@ -21,3 +21,3 @@ "use strict"; | ||
*/ | ||
const reset = internal.reset; | ||
const reset = exports.reset = internal.reset; | ||
/** | ||
@@ -27,4 +27,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.reset = reset; | ||
const setBold = internal.setBold; | ||
const setBold = exports.setBold = internal.setBold; | ||
/** | ||
@@ -34,4 +33,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.setBold = setBold; | ||
const setItalicized = internal.setItalicized; | ||
const setItalicized = exports.setItalicized = internal.setItalicized; | ||
/** | ||
@@ -41,4 +39,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.setItalicized = setItalicized; | ||
const setUnderlined = internal.setUnderlined; | ||
const setUnderlined = exports.setUnderlined = internal.setUnderlined; | ||
/** | ||
@@ -48,4 +45,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.setUnderlined = setUnderlined; | ||
const setColor = internal.setColor; | ||
const setColor = exports.setColor = internal.setColor; | ||
// ----------------------------------------------------------------------------- | ||
@@ -58,4 +54,3 @@ // Destructors | ||
*/ | ||
exports.setColor = setColor; | ||
const toCode = internal.toCode; | ||
const toCode = exports.toCode = internal.toCode; | ||
/** | ||
@@ -65,5 +60,3 @@ * @since 1.0.0 | ||
*/ | ||
exports.toCode = toCode; | ||
const toEscapeSequence = internal.toEscapeSequence; | ||
exports.toEscapeSequence = toEscapeSequence; | ||
const toEscapeSequence = exports.toEscapeSequence = internal.toEscapeSequence; | ||
//# sourceMappingURL=SGR.js.map |
@@ -5,7 +5,25 @@ /** | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as ansiDoc from "@effect/printer-ansi/AnsiDoc" | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as ansiRender from "@effect/printer-ansi/AnsiRender" | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as ansiStyle from "@effect/printer-ansi/AnsiStyle" | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as color from "@effect/printer-ansi/Color" | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as renderLayer from "@effect/printer-ansi/RenderLayer" | ||
/** | ||
* @since 1.0.0 | ||
*/ | ||
export * as sgr from "@effect/printer-ansi/SGR" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
133186
2472
+ Added@effect/printer@^0.16.0
+ Added@effect/io@0.41.2(transitive)
+ Added@effect/printer@0.16.0(transitive)
- Removed@effect/io@0.40.3(transitive)
- Removed@effect/printer@0.15.0(transitive)