ahmedelgabri 8.0.1 → 8.0.2

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/esm/card.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import "./_dnt.polyfills.js";
3
+ import { getCard } from "./mod.js";
4
+ console.log(getCard());
package/esm/mod.js CHANGED
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env node
2
- import "./_dnt.polyfills.js";
3
1
  import "./_dnt.polyfills.js";
4
2
  import * as dntShim from "./_dnt.shims.js";
5
3
  import * as c from "./deps/jsr.io/@std/fmt/0.221.0/colors.js";
@@ -60,15 +58,8 @@ export function getCard() {
60
58
  borderColor: dntShim.Deno.env.get("NO_COLOR") ? undefined : "blue",
61
59
  });
62
60
  }
63
- /**
64
- * Returns personal card containing personal information without ascii art or
65
- * colors
66
- *
67
- * @returns {string}
68
- */
69
- export function getPlainCard() {
70
- return output;
71
- }
61
+ // Needed for deno run ...
62
+ // card.ts is needed for npx ...
72
63
  if ((import.meta.url === ("file:///" + process.argv[1].replace(/\\/g, "/")).replace(/\/{3,}/, "///"))) {
73
64
  console.log(getCard());
74
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ahmedelgabri",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "A personal card for Ahmed El Gabri (@ahmedelgabri)",
5
5
  "keywords": [
6
6
  "card",
@@ -39,7 +39,7 @@
39
39
  }
40
40
  },
41
41
  "bin": {
42
- "ahmedelgabri": "./esm/mod.js"
42
+ "ahmedelgabri": "./esm/card.js"
43
43
  },
44
44
  "dependencies": {
45
45
  "boxen": "7.1.1",
package/script/card.js ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ require("./_dnt.polyfills.js");
5
+ const mod_js_1 = require("./mod.js");
6
+ console.log((0, mod_js_1.getCard)());
package/script/mod.js CHANGED
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  "use strict";
3
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
3
  if (k2 === undefined) k2 = k;
@@ -27,8 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
28
27
  };
29
28
  Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.getPlainCard = exports.getCard = void 0;
31
- require("./_dnt.polyfills.js");
29
+ exports.getCard = void 0;
32
30
  require("./_dnt.polyfills.js");
33
31
  const dntShim = __importStar(require("./_dnt.shims.js"));
34
32
  const c = __importStar(require("./deps/jsr.io/@std/fmt/0.221.0/colors.js"));
@@ -90,16 +88,8 @@ function getCard() {
90
88
  });
91
89
  }
92
90
  exports.getCard = getCard;
93
- /**
94
- * Returns personal card containing personal information without ascii art or
95
- * colors
96
- *
97
- * @returns {string}
98
- */
99
- function getPlainCard() {
100
- return output;
101
- }
102
- exports.getPlainCard = getPlainCard;
91
+ // Needed for deno run ...
92
+ // card.ts is needed for npx ...
103
93
  if ((require.main === module)) {
104
94
  console.log(getCard());
105
95
  }
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import "./_dnt.polyfills.js";
3
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../src/card.ts"],"names":[],"mappings":";AACA,OAAO,qBAAqB,CAAC"}
package/types/mod.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env node
2
- import "./_dnt.polyfills.js";
3
1
  import "./_dnt.polyfills.js";
4
2
  /**
5
3
  * Returns a boxed and colored personal card containing personal information
@@ -7,11 +5,4 @@ import "./_dnt.polyfills.js";
7
5
  * @returns {string}
8
6
  */
9
7
  export declare function getCard(): string;
10
- /**
11
- * Returns personal card containing personal information without ascii art or
12
- * colors
13
- *
14
- * @returns {string}
15
- */
16
- export declare function getPlainCard(): string;
17
8
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":";AACA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,qBAAqB,CAAC;AAqD7B;;;;GAIG;AACH,wBAAgB,OAAO,IAAI,MAAM,CAQhC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAqD7B;;;;GAIG;AACH,wBAAgB,OAAO,IAAI,MAAM,CAQhC"}