sehoo 1.0.4 → 1.0.5

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/index.ts CHANGED
@@ -36,7 +36,7 @@ const validateParams = (option: Option) => {
36
36
  }
37
37
  };
38
38
 
39
- const sehoo = async (option: Option) => {
39
+ const sehoo = (option: Option) => {
40
40
  validateParams(option);
41
41
  const 세전_월급여 = option.monthlyPaycheck;
42
42
  const 비과세액 = option.taxFreeAmount || 1;
package/lib/index.d.ts CHANGED
@@ -5,7 +5,7 @@ type Option = {
5
5
  smallBusinessTaxReduction?: boolean;
6
6
  returnInKorean?: boolean;
7
7
  };
8
- declare const sehoo: (option: Option) => Promise<{
8
+ declare const sehoo: (option: Option) => {
9
9
  국민연금: number;
10
10
  건강보험: number;
11
11
  장기요양보험: number;
@@ -39,5 +39,5 @@ declare const sehoo: (option: Option) => Promise<{
39
39
  주민세?: undefined;
40
40
  공제액_합계?: undefined;
41
41
  실수령액?: undefined;
42
- }>;
42
+ };
43
43
  export default sehoo;
package/lib/index.js CHANGED
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  const fs = require("fs");
13
4
  const path = require("path");
@@ -34,7 +25,7 @@ const validateParams = (option) => {
34
25
  throw new Error("공제대상 가족 수는 1 이상 11 이하이어야 합니다.");
35
26
  }
36
27
  };
37
- const sehoo = (option) => __awaiter(void 0, void 0, void 0, function* () {
28
+ const sehoo = (option) => {
38
29
  var _a;
39
30
  validateParams(option);
40
31
  const 세전_월급여 = option.monthlyPaycheck;
@@ -102,7 +93,7 @@ const sehoo = (option) => __awaiter(void 0, void 0, void 0, function* () {
102
93
  total: 공제액_합계,
103
94
  actualSalary: 세전_월급여 - 공제액_합계,
104
95
  };
105
- });
96
+ };
106
97
  // main({
107
98
  // monthlyPaycheck: 6_290_000,
108
99
  // taxFreeAmount: 100_000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sehoo",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {