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

@waiting/shared-core

Package Overview
Dependencies
Maintainers
1
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waiting/shared-core - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## 6.1.1 (2021-03-18)
**Note:** Version bump only for package @waiting/shared-core
# 6.1.0 (2021-03-17)

@@ -8,0 +16,0 @@

26

dist/index.cjs.js

@@ -5,3 +5,3 @@ /**

*
* @version 6.0.2
* @version 6.1.0
* @author waiting

@@ -263,20 +263,16 @@ * @license MIT

const ret = dd.getFullYear().toString()
+ '-' + pad(dd.getMonth() + 1)
+ '-' + pad(dd.getDate())
+ 'T' + pad(dd.getHours())
+ ':' + pad(dd.getMinutes())
+ ':' + pad(dd.getSeconds())
+ '.' + pad3(dd.getMilliseconds())
+ dif + pad(tzo / 60)
+ ':' + pad(tzo % 60);
+ '-' + pad(dd.getMonth() + 1, 2)
+ '-' + pad(dd.getDate(), 2)
+ 'T' + pad(dd.getHours(), 2)
+ ':' + pad(dd.getMinutes(), 2)
+ ':' + pad(dd.getSeconds(), 2)
+ '.' + pad(dd.getMilliseconds(), 3)
+ dif + pad(tzo / 60, 2)
+ ':' + pad(tzo % 60, 2);
return ret;
}
function pad(num) {
function pad(num, length) {
const norm = Math.floor(Math.abs(num));
return (norm < 10 ? '0' : '') + norm.toString();
return norm.toString().padStart(length, '0');
}
function pad3(num) {
const norm = Math.floor(Math.abs(num));
return (norm < 99 ? '0' : '') + norm.toString();
}

@@ -283,0 +279,0 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

@@ -12,19 +12,15 @@ /**

const ret = dd.getFullYear().toString()
+ '-' + pad(dd.getMonth() + 1)
+ '-' + pad(dd.getDate())
+ 'T' + pad(dd.getHours())
+ ':' + pad(dd.getMinutes())
+ ':' + pad(dd.getSeconds())
+ '.' + pad3(dd.getMilliseconds())
+ dif + pad(tzo / 60)
+ ':' + pad(tzo % 60);
+ '-' + pad(dd.getMonth() + 1, 2)
+ '-' + pad(dd.getDate(), 2)
+ 'T' + pad(dd.getHours(), 2)
+ ':' + pad(dd.getMinutes(), 2)
+ ':' + pad(dd.getSeconds(), 2)
+ '.' + pad(dd.getMilliseconds(), 3)
+ dif + pad(tzo / 60, 2)
+ ':' + pad(tzo % 60, 2);
return ret;
}
function pad(num) {
function pad(num, length) {
const norm = Math.floor(Math.abs(num));
return (norm < 10 ? '0' : '') + norm.toString();
return norm.toString().padStart(length, '0');
}
function pad3(num) {
const norm = Math.floor(Math.abs(num));
return (norm < 99 ? '0' : '') + norm.toString();
}
{
"name": "@waiting/shared-core",
"author": "waiting",
"version": "6.1.0",
"version": "6.1.1",
"description": "node core function re export with Promise or Observable",

@@ -26,3 +26,3 @@ "keywords": [

"dependencies": {
"@waiting/shared-types": "^6.1.0",
"@waiting/shared-types": "^6.1.1",
"rxjs": "6"

@@ -82,3 +82,3 @@ },

},
"gitHead": "66990bb9425d8a7b274d036f07f30ec975cd0f5c"
"gitHead": "5e27c11c4c929ad4b3e60b2be8da40b778da1607"
}

Sorry, the diff of this file is not supported yet

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