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

@tinypudding/csrftoken-lib

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinypudding/csrftoken-lib - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

5

checker.js

@@ -14,2 +14,3 @@ module.exports = function (data) {

timeoutUpdate: 60,
timeoutType: 'minutes'
});

@@ -27,3 +28,3 @@

result.now.date = moment.tz(tinyCfg.date, 'Universal');
result.new.date = moment.tz('Universal').subtract(tinyCfg.timeoutUpdate, 'minutes');
result.new.date = moment.tz('Universal').subtract(tinyCfg.timeoutUpdate, tinyCfg.timeoutType);
}

@@ -37,3 +38,3 @@

(!result.now.date && !result.new.date) ||
(result.now.date.isValid() && result.new.date.isValid() && Math.abs(result.now.date.diff(result.new.date, 'minutes')) < tinyCfg.timeoutUpdate)
(result.now.date.isValid() && result.new.date.isValid() && Math.abs(result.now.date.diff(result.new.date, tinyCfg.timeoutType)) < tinyCfg.timeoutUpdate)
) {

@@ -40,0 +41,0 @@

2

package.json
{
"name": "@tinypudding/csrftoken-lib",
"version": "1.0.3",
"version": "1.0.4",
"description": "Code Lib to help work with csrfToken.",

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

// https://stackoverflow.com/questions/34212039/redirect-to-firebase-hosting-custom-domain
module.exports = function (varname = 'csrfToken', timeoutUpdate = 60) {
module.exports = function (varname = 'csrfToken', timeoutUpdate = 60, timeoutType = 'minutes') {
return (req, res, next) => {

@@ -11,2 +11,3 @@

timeoutUpdate: timeoutUpdate,
timeoutType: timeoutType
});

@@ -13,0 +14,0 @@

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