diginext-utils 2.1.25 → 2.1.26

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,11 +1,11 @@
1
1
  export declare const disableConsole: () => void;
2
2
  export declare const removeConsole: () => void;
3
- export declare const showCredit: () => void;
3
+ export declare const showCredit: (version?: string | number) => void;
4
4
  import { enableConsole } from "./enableConsole";
5
5
  declare const xconsole: {
6
6
  enableConsole: typeof enableConsole;
7
7
  disableConsole: () => void;
8
8
  removeConsole: () => void;
9
- showCredit: () => void;
9
+ showCredit: (version?: string | number) => void;
10
10
  };
11
11
  export default xconsole;
@@ -8,11 +8,12 @@ const disableConsole = () => {
8
8
  };
9
9
  exports.disableConsole = disableConsole;
10
10
  exports.removeConsole = exports.disableConsole;
11
- const showCredit = () => {
12
- console.log("Developed by Digitop | https://www.wearetopgroup.com/?utm_src=console");
11
+ const showCredit = (version) => {
12
+ console.log(`${version ? `Version: ${version} | ` : ""}Developed by Digitop | https://www.wearetopgroup.com/?utm_src=console`);
13
13
  };
14
14
  exports.showCredit = showCredit;
15
15
  const enableConsole_1 = require("./enableConsole");
16
16
  const xconsole = { enableConsole: enableConsole_1.enableConsole, disableConsole: exports.disableConsole, removeConsole: exports.removeConsole, showCredit: exports.showCredit };
17
17
  exports.default = xconsole;
18
+ ``;
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/console/index.ts"],"names":[],"mappings":";;;AAAO,MAAM,cAAc,GAAG,GAAG,EAAE;IAClC,KAAK,IAAI,GAAG,IAAI,OAAO,EAAE;QACvB,OAAe,CAAC,GAAG,CAAC,GAAG,cAAa,CAAC,CAAC;KACvC;AACF,CAAC,CAAC;AAJW,QAAA,cAAc,kBAIzB;AAEW,QAAA,aAAa,GAAG,sBAAc,CAAC;AAErC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC9B,OAAO,CAAC,GAAG,CAAC,uEAAuE,CAAC,CAAC;AACtF,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAEF,mDAAgD;AAEhD,MAAM,QAAQ,GAAG,EAAE,aAAa,EAAb,6BAAa,EAAE,cAAc,EAAd,sBAAc,EAAE,aAAa,EAAb,qBAAa,EAAE,UAAU,EAAV,kBAAU,EAAE,CAAC;AAE9E,kBAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/console/index.ts"],"names":[],"mappings":";;;AAAO,MAAM,cAAc,GAAG,GAAG,EAAE;IAClC,KAAK,IAAI,GAAG,IAAI,OAAO,EAAE;QACvB,OAAe,CAAC,GAAG,CAAC,GAAG,cAAa,CAAC,CAAC;KACvC;AACF,CAAC,CAAC;AAJW,QAAA,cAAc,kBAIzB;AAEW,QAAA,aAAa,GAAG,sBAAc,CAAC;AAErC,MAAM,UAAU,GAAG,CAAC,OAAyB,EAAE,EAAE;IACvD,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,YAAY,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,uEAAuE,CAAC,CAAC;AAChI,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAEF,mDAAgD;AAEhD,MAAM,QAAQ,GAAG,EAAE,aAAa,EAAb,6BAAa,EAAE,cAAc,EAAd,sBAAc,EAAE,aAAa,EAAb,qBAAa,EAAE,UAAU,EAAV,kBAAU,EAAE,CAAC;AAE9E,kBAAe,QAAQ,CAAC;AACxB,EAAE,CAAC"}
@@ -1,11 +1,11 @@
1
1
  export declare const disableConsole: () => void;
2
2
  export declare const removeConsole: () => void;
3
- export declare const showCredit: () => void;
3
+ export declare const showCredit: (version?: string | number) => void;
4
4
  import { enableConsole } from "./enableConsole";
5
5
  declare const xconsole: {
6
6
  enableConsole: typeof enableConsole;
7
7
  disableConsole: () => void;
8
8
  removeConsole: () => void;
9
- showCredit: () => void;
9
+ showCredit: (version?: string | number) => void;
10
10
  };
11
11
  export default xconsole;
@@ -4,10 +4,11 @@ export const disableConsole = () => {
4
4
  }
5
5
  };
6
6
  export const removeConsole = disableConsole;
7
- export const showCredit = () => {
8
- console.log("Developed by Digitop | https://www.wearetopgroup.com/?utm_src=console");
7
+ export const showCredit = (version) => {
8
+ console.log(`${version ? `Version: ${version} | ` : ""}Developed by Digitop | https://www.wearetopgroup.com/?utm_src=console`);
9
9
  };
10
10
  import { enableConsole } from "./enableConsole";
11
11
  const xconsole = { enableConsole, disableConsole, removeConsole, showCredit };
12
12
  export default xconsole;
13
+ ``;
13
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/console/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAClC,KAAK,IAAI,GAAG,IAAI,OAAO,EAAE;QACvB,OAAe,CAAC,GAAG,CAAC,GAAG,cAAa,CAAC,CAAC;KACvC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC;AAE5C,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE;IAC9B,OAAO,CAAC,GAAG,CAAC,uEAAuE,CAAC,CAAC;AACtF,CAAC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,QAAQ,GAAG,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC;AAE9E,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/console/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IAClC,KAAK,IAAI,GAAG,IAAI,OAAO,EAAE;QACvB,OAAe,CAAC,GAAG,CAAC,GAAG,cAAa,CAAC,CAAC;KACvC;AACF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC;AAE5C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAyB,EAAE,EAAE;IACvD,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,YAAY,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,uEAAuE,CAAC,CAAC;AAChI,CAAC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,QAAQ,GAAG,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC;AAE9E,eAAe,QAAQ,CAAC;AACxB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,71 +1,71 @@
1
- {
2
- "name": "diginext-utils",
3
- "version": "2.1.25",
4
- "sideEffects": false,
5
- "readme": "README.md",
6
- "homepage": "https://wearetopgroup.com",
7
- "author": {
8
- "name": "TOP GROUP (a.k.a Digitop)",
9
- "email": "dev@wearetopgroup.com"
10
- },
11
- "keywords": [
12
- "utils",
13
- "plugins",
14
- "diginext",
15
- "diginext-utils",
16
- "utilities",
17
- "helper",
18
- "extra"
19
- ],
20
- "main": "./dist/index.js",
21
- "files": [
22
- "dist",
23
- "esm"
24
- ],
25
- "scripts": {
26
- "build": "npm run prebuild && tsc --module commonjs --outDir dist && tsc --module esnext --outDir esm && npm run test",
27
- "build_tsup": "tsup src/**/*.ts --format esm,cjs --dts --legacy-output",
28
- "prebuild": "run-script-os || exit 0",
29
- "prebuild:win32": "rd /S /Q dist esm",
30
- "prebuild:darwin:linux": "rm -rf dist && rm -rf esm",
31
- "prebuild:default": "rm -rf dist && rm -rf esm",
32
- "release": "npm run build && npm publish",
33
- "dev": "npm run prebuild && concurrently \"tsup src/**/*.ts --format esm,cjs --dts --watch\"",
34
- "test": "mocha test/*.test.js",
35
- "publish": "npm run build && npm run test && npm publish",
36
- "lint": "TIMING=1 eslint src --fix",
37
- "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
38
- },
39
- "dependencies": {
40
- "@types/file-saver": "^2.0.5",
41
- "@types/jest": "^26.0.22",
42
- "@types/node": "^18.8.5",
43
- "@types/react": "^17.0.13",
44
- "@types/react-dom": "^17.0.8",
45
- "blueimp-load-image": "^5.16.0",
46
- "run-script-os": "^1.1.6",
47
- "chalk": "4.1.2",
48
- "concurrently": "^7.2.2",
49
- "config": "*",
50
- "core-js": "^3.24.1",
51
- "dayjs": "^1.11.5",
52
- "esm": "^3.2.25",
53
- "file-saver": "^2.0.5",
54
- "gsap": "^3.10.4",
55
- "lodash": "^4.17.21",
56
- "tsconfig": "*",
57
- "tsup": "^6.1.3",
58
- "typescript": "^4.5.3"
59
- },
60
- "publishConfig": {
61
- "access": "public"
62
- },
63
- "devDependencies": {
64
- "@types/blueimp-load-image": "^5.16.0",
65
- "@types/lodash": "^4.14.186",
66
- "eslint": "^7.16.0",
67
- "eslint-plugin-import": "^2.26.0",
68
- "esm": "^3.2.25",
69
- "mocha": "^10.0.0"
70
- }
1
+ {
2
+ "name": "diginext-utils",
3
+ "version": "2.1.26",
4
+ "sideEffects": false,
5
+ "readme": "README.md",
6
+ "homepage": "https://wearetopgroup.com",
7
+ "author": {
8
+ "name": "TOP GROUP (a.k.a Digitop)",
9
+ "email": "dev@wearetopgroup.com"
10
+ },
11
+ "keywords": [
12
+ "utils",
13
+ "plugins",
14
+ "diginext",
15
+ "diginext-utils",
16
+ "utilities",
17
+ "helper",
18
+ "extra"
19
+ ],
20
+ "main": "./dist/index.js",
21
+ "files": [
22
+ "dist",
23
+ "esm"
24
+ ],
25
+ "scripts": {
26
+ "build": "npm run prebuild && tsc --module commonjs --outDir dist && tsc --module esnext --outDir esm && npm run test",
27
+ "build_tsup": "tsup src/**/*.ts --format esm,cjs --dts --legacy-output",
28
+ "prebuild": "run-script-os || exit 0",
29
+ "prebuild:win32": "rd /S /Q dist esm",
30
+ "prebuild:darwin:linux": "rm -rf dist && rm -rf esm",
31
+ "prebuild:default": "rm -rf dist && rm -rf esm",
32
+ "release": "npm run build && npm publish",
33
+ "dev": "npm run prebuild && concurrently \"tsup src/**/*.ts --format esm,cjs --dts --watch\"",
34
+ "test": "mocha test/*.test.js",
35
+ "publish": "npm run build && npm run test && npm publish",
36
+ "lint": "TIMING=1 eslint src --fix",
37
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
38
+ },
39
+ "dependencies": {
40
+ "@types/file-saver": "^2.0.5",
41
+ "@types/jest": "^26.0.22",
42
+ "@types/node": "^18.8.5",
43
+ "@types/react": "^17.0.13",
44
+ "@types/react-dom": "^17.0.8",
45
+ "blueimp-load-image": "^5.16.0",
46
+ "run-script-os": "^1.1.6",
47
+ "chalk": "4.1.2",
48
+ "concurrently": "^7.2.2",
49
+ "config": "*",
50
+ "core-js": "^3.24.1",
51
+ "dayjs": "^1.11.5",
52
+ "esm": "^3.2.25",
53
+ "file-saver": "^2.0.5",
54
+ "gsap": "^3.10.4",
55
+ "lodash": "^4.17.21",
56
+ "tsconfig": "*",
57
+ "tsup": "^6.1.3",
58
+ "typescript": "^4.5.3"
59
+ },
60
+ "publishConfig": {
61
+ "access": "public"
62
+ },
63
+ "devDependencies": {
64
+ "@types/blueimp-load-image": "^5.16.0",
65
+ "@types/lodash": "^4.14.186",
66
+ "eslint": "^7.16.0",
67
+ "eslint-plugin-import": "^2.26.0",
68
+ "esm": "^3.2.25",
69
+ "mocha": "^10.0.0"
70
+ }
71
71
  }