colombian-holidays 2.0.1 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colombian-holidays",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Colombian holidays",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -8,7 +8,7 @@
8
8
  "lint": "eslint . --ext .ts --fix",
9
9
  "test": "jest --coverage",
10
10
  "build": "tsc",
11
- "prepublish": "build"
11
+ "prepack": "tsc"
12
12
  },
13
13
  "license": "MIT",
14
14
  "bugs": {
package/lib/utils.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function isHoliday(date: Date): boolean;
package/lib/utils.js DELETED
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.isHoliday = void 0;
7
- const _1 = __importDefault(require("."));
8
- function isHoliday(date) {
9
- return (0, _1.default)(date.getUTCFullYear()).some(({ celebrationDate }) => {
10
- const d = new Date(celebrationDate);
11
- return (d.getUTCDate() === date.getUTCDate() &&
12
- d.getUTCMonth() === date.getUTCMonth() &&
13
- d.getUTCFullYear() === date.getUTCFullYear());
14
- });
15
- }
16
- exports.isHoliday = isHoliday;
17
- //# sourceMappingURL=utils.js.map
package/lib/utils.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,yCAAkC;AAElC,SAAgB,SAAS,CAAC,IAAU;IAClC,OAAO,IAAA,UAAiB,EAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,IAAI,CAClD,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE;QACtB,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC;QACpC,OAAO,CACL,CAAC,CAAC,UAAU,EAAE,KAAK,IAAI,CAAC,UAAU,EAAE;YACpC,CAAC,CAAC,WAAW,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE;YACtC,CAAC,CAAC,cAAc,EAAE,KAAK,IAAI,CAAC,cAAc,EAAE,CAC7C,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC;AAXD,8BAWC"}