@peteanderson/ansi 3.7.0 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,9 @@
1
1
  import * as $ansi from "./ansi";
2
2
  declare namespace ansi {
3
3
  type Ansi = import("./types").Ansi;
4
+ type ChainKey = import("./sgr/types").ChainKey;
5
+ type Format = import("./sgr/types").Format;
6
+ type FormatBase = import("./sgr/types").FormatBase;
4
7
  }
5
8
  declare const ansi: typeof $ansi.makeAnsi & import("./sgr").SGR & {
6
9
  cursor: import("./cursor").Cursor;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/require.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,QAAQ,CAAC;AAEhC,OAAO,WAAW,IAAI,CAAC;IACtB,KAAY,IAAI,GAAG,OAAO,SAAS,EAAE,IAAI,CAAC;CAC1C;AAID,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAkC,CAAC;AAE7C,SAAS,IAAI,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/require.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,QAAQ,CAAC;AAEhC,OAAO,WAAW,IAAI,CAAC;IACtB,KAAY,IAAI,GAAS,OAAO,SAAS,EAAE,IAAI,CAAC;IAChD,KAAY,QAAQ,GAAK,OAAO,aAAa,EAAE,QAAQ,CAAC;IACxD,KAAY,MAAM,GAAO,OAAO,aAAa,EAAE,MAAM,CAAC;IACtD,KAAY,UAAU,GAAG,OAAO,aAAa,EAAE,UAAU,CAAC;CAC1D;AAID,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAkC,CAAC;AAE7C,SAAS,IAAI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/require.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAgC;AAMhC,MAAM,EAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAC,GAAG,KAAK,CAAC;AAE7C,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAE7C,iBAAS,IAAI,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/require.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAgC;AAShC,MAAM,EAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAC,GAAG,KAAK,CAAC;AAE7C,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAE7C,iBAAS,IAAI,CAAC"}
@@ -6,7 +6,7 @@ import type { Ansi } from "./types.js";
6
6
  export declare function makeAnsi(...args: Args): Ansi;
7
7
  export declare const ansi: Ansi;
8
8
  export declare const disabled: Ansi;
9
- export declare const fg: import("./sgr/types.js").Channel<"bg" | import("./sgr/types.js").StyleKey>, bg: import("./sgr/types.js").Channel<"fg" | import("./sgr/types.js").StyleKey>, style: import("./sgr/types.js").Style<import("./sgr/types.js").ChainKey>, reset: string, cursor: {
9
+ export declare const fg: import("./sgr/types.js").Channel<"bg" | import("./sgr/types.js").StyleKey>, bg: import("./sgr/types.js").Channel<"fg" | import("./sgr/types.js").StyleKey>, style: import("./sgr/types.js").Style<import("./index.js").ChainKey>, reset: string, cursor: {
10
10
  up: (count?: number | undefined) => string;
11
11
  down: (count?: number | undefined) => string;
12
12
  forward: (count?: number | undefined) => string;
@@ -1 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AAI,GAAG,IAAI,CA0B5C;AAED,eAAO,MAAM,IAAI,MAAiB,CAAC;AACnC,eAAO,MAAM,QAAQ,MAAkB,CAAC;AAExC,eAAO,MAAO,EAAE,wEAAE,EAAE,wEAAE,KAAK,qDAAE,KAAK,UAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,KAAK;;;;;;;;;;;;;GAAE,MAAM;;;;GAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;CAAQ,CAAC;AAE5E,OAAO,EAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAC,CAAA;;;;;;;;;;;;;;;;;;;;AAExD,wBAIE"}
@@ -1,4 +1,5 @@
1
1
  export { default } from "./ansi.js";
2
2
  export * from "./ansi.js";
3
3
  export type { Ansi } from "./types.js";
4
+ export type { ChainKey, Format, FormatBase } from "./sgr/types.js";
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AAC/B,cAAsB,QAAQ,CAAC;AAE/B,YAAY,EAAC,IAAI,EAAC,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,QAAQ,CAAC;AAC/B,cAAsB,QAAQ,CAAC;AAE/B,YAAY,EAAC,IAAI,EAAC,MAA8B,SAAS,CAAC;AAC1D,YAAY,EAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAC,MAAM,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name" : "@peteanderson/ansi",
3
- "version" : "3.7.0",
3
+ "version" : "3.7.1",
4
4
  "description" : "ANSI escape sequence generation with automatic feature detection",
5
5
  "author" : {
6
6
  "name" : "Pete Anderson",
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export {default} from "./ansi";
2
2
  export * from "./ansi";
3
3
 
4
- export type {Ansi} from "./types";
4
+ export type {Ansi} from "./types";
5
+ export type {ChainKey, Format, FormatBase} from "./sgr/types";
package/src/require.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import * as $ansi from "./ansi";
2
2
 
3
3
  declare namespace ansi {
4
- export type Ansi = import("./types").Ansi;
4
+ export type Ansi = import("./types").Ansi;
5
+ export type ChainKey = import("./sgr/types").ChainKey;
6
+ export type Format = import("./sgr/types").Format;
7
+ export type FormatBase = import("./sgr/types").FormatBase;
5
8
  }
6
9
 
7
10
  const {default: $default, ...$named} = $ansi;