mybase 1.1.35 → 1.1.37
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
package/ts/index.ts
CHANGED
package/ts/models/IPAddress.js
CHANGED
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IPAddress = void 0;
|
|
7
|
+
/// <reference path="./../../ip6addr.d.ts" />
|
|
7
8
|
const debug_1 = __importDefault(require("debug"));
|
|
8
9
|
const __1 = require("./../");
|
|
9
10
|
const ip6addr_1 = __importDefault(require("ip6addr"));
|
package/ts/models/IPAddress.ts
CHANGED
package/ts/models/Unixtime.d.ts
CHANGED
package/ts/models/Unixtime.js
CHANGED
|
@@ -99,4 +99,11 @@ describe('Unixtime', () => {
|
|
|
99
99
|
const addedUnixtime = unixtime.addYears(1);
|
|
100
100
|
expect(addedUnixtime.toDate()).toEqual(new Date(date.setFullYear(date.getFullYear() + 1)));
|
|
101
101
|
});
|
|
102
|
+
|
|
103
|
+
it('clone should create brand new object', () => {
|
|
104
|
+
const unixtime0 = new Unixtime(new Date())
|
|
105
|
+
const unixtime1 = unixtime0.clone();
|
|
106
|
+
expect(unixtime1).not.toBe(unixtime0);
|
|
107
|
+
expect(unixtime0.toDate()).toEqual(unixtime1.toDate());
|
|
108
|
+
});
|
|
102
109
|
});
|
package/ts/models/Unixtime.ts
CHANGED