@hardlydifficult/text 1.0.26 → 1.0.28

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,5 +1,3 @@
1
- /**
2
- *
3
- */
1
+ /** Strips ANSI escape codes (colors, formatting) from a string. */
4
2
  export declare function stripAnsi(str: string): string;
5
3
  //# sourceMappingURL=stripAnsi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stripAnsi.d.ts","sourceRoot":"","sources":["../src/stripAnsi.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C"}
1
+ {"version":3,"file":"stripAnsi.d.ts","sourceRoot":"","sources":["../src/stripAnsi.ts"],"names":[],"mappings":"AASA,mEAAmE;AACnE,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C"}
package/dist/stripAnsi.js CHANGED
@@ -9,9 +9,7 @@ exports.stripAnsi = stripAnsi;
9
9
  */
10
10
  // eslint-disable-next-line no-control-regex
11
11
  const ANSI_RE = /\x1b\[[0-9;]*m/g;
12
- /**
13
- *
14
- */
12
+ /** Strips ANSI escape codes (colors, formatting) from a string. */
15
13
  function stripAnsi(str) {
16
14
  return str.replace(ANSI_RE, "");
17
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stripAnsi.js","sourceRoot":"","sources":["../src/stripAnsi.ts"],"names":[],"mappings":";;AAYA,8BAEC;AAdD;;;;;GAKG;AACH,4CAA4C;AAC5C,MAAM,OAAO,GAAG,iBAAiB,CAAC;AAElC;;GAEG;AACH,SAAgB,SAAS,CAAC,GAAW;IACnC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC"}
1
+ {"version":3,"file":"stripAnsi.js","sourceRoot":"","sources":["../src/stripAnsi.ts"],"names":[],"mappings":";;AAUA,8BAEC;AAZD;;;;;GAKG;AACH,4CAA4C;AAC5C,MAAM,OAAO,GAAG,iBAAiB,CAAC;AAElC,mEAAmE;AACnE,SAAgB,SAAS,CAAC,GAAW;IACnC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hardlydifficult/text",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -24,5 +24,13 @@
24
24
  },
25
25
  "engines": {
26
26
  "node": ">=18.0.0"
27
+ },
28
+ "type": "commonjs",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "import": "./dist/index.js",
33
+ "require": "./dist/index.js"
34
+ }
27
35
  }
28
36
  }