@shba007/unascii 0.3.4 → 0.3.6

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.
package/dist/cli.cjs CHANGED
@@ -5,7 +5,7 @@ const consola = require('consola');
5
5
  const pathe = require('pathe');
6
6
  const unstorage = require('unstorage');
7
7
  const fsDriver = require('unstorage/drivers/fs');
8
- const index = require('./shared/unascii.DRVTkkvJ.cjs');
8
+ const index = require('./shared/unascii.BaMBS4LC.cjs');
9
9
 
10
10
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
11
11
 
@@ -14,7 +14,7 @@ const pathe__default = /*#__PURE__*/_interopDefaultCompat(pathe);
14
14
  const fsDriver__default = /*#__PURE__*/_interopDefaultCompat(fsDriver);
15
15
 
16
16
  const name = "@shba007/unascii";
17
- const version = "0.3.4";
17
+ const version = "0.3.6";
18
18
  const description = "Print any image in ascii anywhere (browser/cli)";
19
19
 
20
20
  const storage = unstorage.createStorage({
@@ -70,8 +70,8 @@ const main = citty.defineCommand({
70
70
  process.env.DEBUG = process.env.DEBUG || "true";
71
71
  }
72
72
  const print = await index.asciiPrint(args.path, {
73
- width: args.width ? Number.parseInt(args.width) ?? void 0 : void 0,
74
- widthSkew: args.widthSkew ? Number.parseFloat(args.widthSkew) ?? void 0 : void 0,
73
+ width: args.width ? Number.parseInt(args.width) ?? undefined : undefined,
74
+ widthSkew: args.widthSkew ? Number.parseFloat(args.widthSkew) ?? undefined : undefined,
75
75
  output: args.output,
76
76
  characters: args.characters,
77
77
  grayscale: args.grayscale
package/dist/cli.mjs CHANGED
@@ -3,10 +3,10 @@ import consola from 'consola';
3
3
  import pathe from 'pathe';
4
4
  import { createStorage } from 'unstorage';
5
5
  import fsDriver from 'unstorage/drivers/fs';
6
- import { a as asciiPrint, i as isURL } from './shared/unascii.DGQXX7jV.mjs';
6
+ import { a as asciiPrint, i as isURL } from './shared/unascii.BIlYtGRb.mjs';
7
7
 
8
8
  const name = "@shba007/unascii";
9
- const version = "0.3.4";
9
+ const version = "0.3.6";
10
10
  const description = "Print any image in ascii anywhere (browser/cli)";
11
11
 
12
12
  const storage = createStorage({
@@ -62,8 +62,8 @@ const main = defineCommand({
62
62
  process.env.DEBUG = process.env.DEBUG || "true";
63
63
  }
64
64
  const print = await asciiPrint(args.path, {
65
- width: args.width ? Number.parseInt(args.width) ?? void 0 : void 0,
66
- widthSkew: args.widthSkew ? Number.parseFloat(args.widthSkew) ?? void 0 : void 0,
65
+ width: args.width ? Number.parseInt(args.width) ?? undefined : undefined,
66
+ widthSkew: args.widthSkew ? Number.parseFloat(args.widthSkew) ?? undefined : undefined,
67
67
  output: args.output,
68
68
  characters: args.characters,
69
69
  grayscale: args.grayscale
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./shared/unascii.DRVTkkvJ.cjs');
3
+ const index = require('./shared/unascii.BaMBS4LC.cjs');
4
4
 
5
5
 
6
6
 
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { a as asciiPrint } from './shared/unascii.DGQXX7jV.mjs';
1
+ export { a as asciiPrint } from './shared/unascii.BIlYtGRb.mjs';
@@ -41,7 +41,7 @@ async function loadFunctions() {
41
41
  async function loadImageBrowser(url) {
42
42
  return new Promise((resolve) => {
43
43
  const image = new Image();
44
- image.crossOrigin = "Anonymous";
44
+ image.crossOrigin = "anonymous";
45
45
  image.addEventListener("load", () => resolve(image));
46
46
  image.src = url;
47
47
  });
@@ -43,7 +43,7 @@ async function loadFunctions() {
43
43
  async function loadImageBrowser(url) {
44
44
  return new Promise((resolve) => {
45
45
  const image = new Image();
46
- image.crossOrigin = "Anonymous";
46
+ image.crossOrigin = "anonymous";
47
47
  image.addEventListener("load", () => resolve(image));
48
48
  image.src = url;
49
49
  });
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@shba007/unascii",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "Print any image in ascii anywhere (browser/cli)",
5
5
  "author": "Shirsendu Bairagi <shirsendu2001@gmail.com>",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/shba007/unascii.git"
9
+ "url": "https://github.com/shba007/unascii.git"
10
10
  },
11
11
  "keywords": [],
12
12
  "sideEffects": false,
@@ -34,36 +34,36 @@
34
34
  "bin"
35
35
  ],
36
36
  "volta": {
37
- "node": "22.12.0"
37
+ "node": "22.13.1"
38
38
  },
39
39
  "engines": {
40
40
  "node": "^20.15.0 || ^22.11.0",
41
- "pnpm": "^9.15.0"
41
+ "pnpm": "^9.15.0 || ^10.2.0"
42
42
  },
43
43
  "dependencies": {
44
- "canvas": "^3.0.1",
44
+ "canvas": "^3.1.0",
45
45
  "chalk": "^5.4.1",
46
46
  "citty": "^0.1.6",
47
- "consola": "^3.3.3",
48
- "pathe": "^1.1.2",
47
+ "consola": "^3.4.0",
48
+ "pathe": "^2.0.2",
49
49
  "unstorage": "^1.14.4"
50
50
  },
51
51
  "devDependencies": {
52
- "@changesets/cli": "^2.27.11",
53
- "@commitlint/cli": "^19.6.1",
54
- "@commitlint/config-conventional": "^19.6.0",
55
- "@dotenvx/dotenvx": "^1.32.0",
56
- "@types/node": "^22.10.3",
57
- "@vitest/coverage-v8": "^2.1.8",
52
+ "@changesets/cli": "^2.27.12",
53
+ "@commitlint/cli": "^19.7.1",
54
+ "@commitlint/config-conventional": "^19.7.1",
55
+ "@dotenvx/dotenvx": "^1.34.0",
56
+ "@types/node": "^22.13.1",
57
+ "@vitest/coverage-v8": "^3.0.5",
58
58
  "changelogen": "^0.5.7",
59
- "eslint": "^9.17.0",
59
+ "eslint": "^9.19.0",
60
60
  "eslint-config-unjs": "^0.4.2",
61
61
  "husky": "^9.1.7",
62
62
  "jiti": "^2.4.2",
63
63
  "prettier": "^3.4.2",
64
- "typescript": "^5.7.2",
65
- "unbuild": "3.2.0",
66
- "vitest": "^2.1.8"
64
+ "typescript": "^5.7.3",
65
+ "unbuild": "3.3.1",
66
+ "vitest": "^3.0.5"
67
67
  },
68
68
  "scripts": {
69
69
  "dev": "vitest dev",
@@ -76,6 +76,6 @@
76
76
  "build": "unbuild",
77
77
  "release": "pnpm test && changelogen --release && pnpm publish && git push --follow-tags",
78
78
  "clean": "rm -rf coverage dist",
79
- "unascii": "jiti playground/cli"
79
+ "unascii": "node bin/unascii.mjs"
80
80
  }
81
81
  }