Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turist/time

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turist/time - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

LICENSE

7

lib/index.js

@@ -17,3 +17,3 @@ "use strict";

var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);

@@ -23,2 +23,3 @@ return result;

Object.defineProperty(exports, "__esModule", { value: true });
exports.TimeUnit = void 0;
const TimeUnit = __importStar(require("./timeunit"));

@@ -48,3 +49,3 @@ const s = 1000;

default:
return undefined;
throw new Error(`Unknown TimeUnit ${type}`);
}

@@ -54,2 +55,2 @@ }

exports.TimeUnit = __importStar(require("./timeunit"));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEscURBQXVDO0FBRXZDLE1BQU0sQ0FBQyxHQUFHLElBQUksQ0FBQztBQUNmLE1BQU0sQ0FBQyxHQUFHLENBQUMsR0FBRyxFQUFFLENBQUM7QUFDakIsTUFBTSxDQUFDLEdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUNqQixNQUFNLENBQUMsR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBQ2pCLE1BQU0sQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDaEIsTUFBTSxDQUFDLEdBQUcsQ0FBQyxHQUFHLE1BQU0sQ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EdBQUcsQ0FBQyxHQUFHLEVBQUUsQ0FBQztBQUNqQixNQUFNLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ2hCLE1BQU0sQ0FBQyxHQUFHLENBQUMsR0FBRyxNQUFNLENBQUM7QUFXckIsbUJBQXlCLENBQVMsRUFBRSxJQUFjO0lBQ2hELFFBQVEsSUFBSSxFQUFFO1FBQ1osS0FBSyxRQUFRLENBQUMsSUFBSTtZQUNoQixPQUFPLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDZixLQUFLLFFBQVEsQ0FBQyxJQUFJO1lBQ2hCLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUNmLEtBQUssUUFBUSxDQUFDLEdBQUc7WUFDZixPQUFPLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDZixLQUFLLFFBQVEsQ0FBQyxJQUFJO1lBQ2hCLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUNmLEtBQUssUUFBUSxDQUFDLE1BQU07WUFDbEIsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQ2YsS0FBSyxRQUFRLENBQUMsTUFBTTtZQUNsQixPQUFPLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDZixLQUFLLFFBQVEsQ0FBQyxXQUFXO1lBQ3ZCLE9BQU8sQ0FBQyxDQUFDO1FBQ1g7WUFDRSxNQUFNLElBQUksS0FBSyxDQUFDLG9CQUFvQixJQUFJLEVBQUUsQ0FBQyxDQUFBO0tBQzlDO0FBQ0gsQ0FBQztBQW5CRCw0QkFtQkM7QUFFRCx1REFBdUMifQ==
{
"name": "@turist/time",
"version": "0.0.1",
"version": "0.0.2",
"description": "Making time pass faster on the ship",

@@ -56,4 +56,4 @@ "main": "lib/index.js",

"ts-jest": "26.0.0",
"ts-node": "8.10.1",
"typescript": "3.9.3"
"ts-node": "10.0.0",
"typescript": "4.3.5"
},

@@ -60,0 +60,0 @@ "jest": {

@@ -10,6 +10,6 @@ # time

console.log(10, TimeUnit.Minute))
console.log(1, TimeUnit.Hour))
console.log(time(10, TimeUnit.Minute))
console.log(time(1, TimeUnit.Hour))
```
Available `TimeUnit`s are `Year`, `Week`, `Day`, `Hour`, `Minute`, `Second`, `MilliSecond`
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc