New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chaining-date

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chaining-date - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

dist/chaining-date.js

@@ -1,1 +0,1 @@

var ChainingDate=function(t){var n=Date;function e(t){this.date="number"==typeof t?new n(t):"string"==typeof t?new n(n.parse(t)):t||new n}var r=e.prototype;return r.add=function(){return this},r.set=function(){return this},r.get=function(){return this.date},r.toString=function(t){var n=this.date;return t?n:n.toString()},t.DateFormat={YYYY:"FullYear",MM:"Month",DD:"Date",D:"Day",hh:"Hours",mm:"Minutes",ss:"Seconds",sss:"Milliseconds"},t.default=e,t}({});
var ChainingDate=function(){var t=Date;function n(n){this.date="number"==typeof n?new t(n):"string"==typeof n?new t(t.parse(n)):n||new t}var e=n.prototype;return e.add=function(){return this},e.set=function(){return this},e.get=function(){return this.date},e.toString=function(t){var n=this.date;return t?n:n.toString()},n}();
/**
* @author TroyTae
* @version 0.2.1
* @version 0.2.2
* @name chaining-date

@@ -8,15 +8,2 @@ */

Object.defineProperty(exports, '__esModule', { value: true });
var DateFormat = {
YYYY: 'FullYear',
MM: 'Month',
DD: 'Date',
D: 'Day',
hh: 'Hours',
mm: 'Minutes',
ss: 'Seconds',
sss: 'Milliseconds',
};
var D = Date;

@@ -49,3 +36,2 @@ function ChainingDate(date) {

exports.DateFormat = DateFormat;
exports.default = ChainingDate;
module.exports = ChainingDate;
{
"name": "chaining-date",
"version": "0.2.1",
"version": "0.2.2",
"description": "A tiny module for using Date with chaining ⏱",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -15,7 +15,3 @@ const pkg = require('./package.json');

},
plugins: [
isNode ? null : terser({
compress: { loops: false }
})
].filter(Boolean)
plugins: [isNode ? null : terser()].filter(Boolean)
};

@@ -22,0 +18,0 @@ };

@@ -30,3 +30,2 @@ import { DateFormat } from './constants';

export { DateFormat };
export default ChainingDate;
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