@ajitems/devtools 0.2.0 → 0.3.0

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/devtools.d.ts CHANGED
@@ -5,6 +5,16 @@ export function base64_decode(input: string, url_safe: boolean): any;
5
5
 
6
6
  export function base64_encode(input: string, url_safe: boolean): any;
7
7
 
8
+ /**
9
+ * WASM: JSON `CtcInput` → JSON `ToolResult<CtcResult>`.
10
+ */
11
+ export function calculateCtc(input: any): any;
12
+
13
+ /**
14
+ * WASM: JSON [`SalaryHikeInput`] → JSON [`ToolResult<SalaryHikeResult>`].
15
+ */
16
+ export function calculateHike(input: any): any;
17
+
8
18
  export function calculate_automation_roi(input: any): any;
9
19
 
10
20
  export function calculate_retry_budget(input: any): any;
@@ -13,6 +23,11 @@ export function calculate_sprint_velocity(input: any): any;
13
23
 
14
24
  export function calculate_working_days(input: any): any;
15
25
 
26
+ /**
27
+ * WASM: JSON [`RegimeCompareInput`] → JSON [`ToolResult<RegimeCompareResult>`].
28
+ */
29
+ export function compareTaxRegimes(input: any): any;
30
+
16
31
  export function cron_parse(expression: string): any;
17
32
 
18
33
  export function ctc_calculate(annual_ctc: number, is_metro: boolean, regime: string): any;
@@ -57,10 +72,13 @@ export interface InitOutput {
57
72
  readonly memory: WebAssembly.Memory;
58
73
  readonly base64_decode: (a: number, b: number, c: number) => number;
59
74
  readonly base64_encode: (a: number, b: number, c: number) => number;
75
+ readonly calculateCtc: (a: number) => number;
76
+ readonly calculateHike: (a: number) => number;
60
77
  readonly calculate_automation_roi: (a: number) => number;
61
78
  readonly calculate_retry_budget: (a: number) => number;
62
79
  readonly calculate_sprint_velocity: (a: number) => number;
63
80
  readonly calculate_working_days: (a: number) => number;
81
+ readonly compareTaxRegimes: (a: number) => number;
64
82
  readonly cron_parse: (a: number, b: number) => number;
65
83
  readonly ctc_calculate: (a: number, b: number, c: number, d: number) => number;
66
84
  readonly docker_convert: (a: number, b: number) => number;
package/devtools.js CHANGED
@@ -24,6 +24,26 @@ export function base64_encode(input, url_safe) {
24
24
  return takeObject(ret);
25
25
  }
26
26
 
27
+ /**
28
+ * WASM: JSON `CtcInput` → JSON `ToolResult<CtcResult>`.
29
+ * @param {any} input
30
+ * @returns {any}
31
+ */
32
+ export function calculateCtc(input) {
33
+ const ret = wasm.calculateCtc(addHeapObject(input));
34
+ return takeObject(ret);
35
+ }
36
+
37
+ /**
38
+ * WASM: JSON [`SalaryHikeInput`] → JSON [`ToolResult<SalaryHikeResult>`].
39
+ * @param {any} input
40
+ * @returns {any}
41
+ */
42
+ export function calculateHike(input) {
43
+ const ret = wasm.calculateHike(addHeapObject(input));
44
+ return takeObject(ret);
45
+ }
46
+
27
47
  /**
28
48
  * @param {any} input
29
49
  * @returns {any}
@@ -60,6 +80,16 @@ export function calculate_working_days(input) {
60
80
  return takeObject(ret);
61
81
  }
62
82
 
83
+ /**
84
+ * WASM: JSON [`RegimeCompareInput`] → JSON [`ToolResult<RegimeCompareResult>`].
85
+ * @param {any} input
86
+ * @returns {any}
87
+ */
88
+ export function compareTaxRegimes(input) {
89
+ const ret = wasm.compareTaxRegimes(addHeapObject(input));
90
+ return takeObject(ret);
91
+ }
92
+
63
93
  /**
64
94
  * @param {string} expression
65
95
  * @returns {any}
@@ -291,6 +321,13 @@ function __wbg_get_imports() {
291
321
  const ret = Number(getObject(arg0));
292
322
  return ret;
293
323
  },
324
+ __wbg_String_8564e559799eccda: function(arg0, arg1) {
325
+ const ret = String(getObject(arg1));
326
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
327
+ const len1 = WASM_VECTOR_LEN;
328
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
329
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
330
+ },
294
331
  __wbg___wbindgen_boolean_get_a86c216575a75c30: function(arg0) {
295
332
  const v = getObject(arg0);
296
333
  const ret = typeof(v) === 'boolean' ? v : undefined;
package/devtools_bg.wasm CHANGED
Binary file
@@ -3,10 +3,13 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const base64_decode: (a: number, b: number, c: number) => number;
5
5
  export const base64_encode: (a: number, b: number, c: number) => number;
6
+ export const calculateCtc: (a: number) => number;
7
+ export const calculateHike: (a: number) => number;
6
8
  export const calculate_automation_roi: (a: number) => number;
7
9
  export const calculate_retry_budget: (a: number) => number;
8
10
  export const calculate_sprint_velocity: (a: number) => number;
9
11
  export const calculate_working_days: (a: number) => number;
12
+ export const compareTaxRegimes: (a: number) => number;
10
13
  export const cron_parse: (a: number, b: number) => number;
11
14
  export const ctc_calculate: (a: number, b: number, c: number, d: number) => number;
12
15
  export const docker_convert: (a: number, b: number) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ajitems/devtools",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Headless engines for common developer utilities. Compiled to WASM.",
5
5
  "main": "devtools.js",
6
6
  "types": "devtools.d.ts",