Socket
Socket
Sign inDemoInstall

parsehttpdate

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.8 to 1.0.9

2

compiled/esm/parsehttpdate.min.js

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

var pattern=/^[F-W][a-u]{2}, [0-3]\d (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \d{4} [0-2]\d:[0-5]\d:[0-6]\d GMT$/,monthsNames="anebarprayunulugepctovec";function parseHttpDate(a,b){if(!1!=b&&!1==pattern.test(a))throw new Error("The passed value has an unexpected format");var c=a.substring.bind(a);return new Date(Date.UTC(parseInt(c(12,16),10),monthsNames.indexOf(c(9,11))>>1,parseInt(c(5,7),10),parseInt(c(17,19),10),parseInt(c(20,22),10),parseInt(c(23,25),10)))}export default parseHttpDate;
var pattern=/^[F-W][a-u]{2}, [0-3]\d (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \d{4} [0-2]\d:[0-5]\d:[0-6]\d GMT$/,monthsNames="anebarprayunulugepctovec";function parseHttpDate(a,b){if(!1!=b&&!1==pattern.test(a))throw new Error("The passed value has an unexpected format");var c=a.substring.bind(a);return new Date(Date.UTC(parseInt(c(12,16),10),monthsNames.indexOf(c(9,11))>>1,parseInt(c(5,7),10),parseInt(c(17,19),10),parseInt(c(20,22),10),parseInt(c(23,25),10)))}export{parseHttpDate as default};

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

var parseHttpDate=(function(){'use strict';var pattern=/^[F-W][a-u]{2}, [0-3]\d (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \d{4} [0-2]\d:[0-5]\d:[0-6]\d GMT$/,monthsNames="anebarprayunulugepctovec";function parseHttpDate(a,b){if(!1!=b&&!1==pattern.test(a))throw new Error("The passed value has an unexpected format");var c=a.substring.bind(a);return new Date(Date.UTC(parseInt(c(12,16),10),monthsNames.indexOf(c(9,11))>>1,parseInt(c(5,7),10),parseInt(c(17,19),10),parseInt(c(20,22),10),parseInt(c(23,25),10)))}return parseHttpDate;}());
var parseHttpDate=(function(){'use strict';var pattern=/^[F-W][a-u]{2}, [0-3]\d (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \d{4} [0-2]\d:[0-5]\d:[0-6]\d GMT$/,monthsNames="anebarprayunulugepctovec";function parseHttpDate(a,b){if(!1!=b&&!1==pattern.test(a))throw new Error("The passed value has an unexpected format");var c=a.substring.bind(a);return new Date(Date.UTC(parseInt(c(12,16),10),monthsNames.indexOf(c(9,11))>>1,parseInt(c(5,7),10),parseInt(c(17,19),10),parseInt(c(20,22),10),parseInt(c(23,25),10)))}return parseHttpDate;})();
{
"name": "parsehttpdate",
"description": "Parses the value of the Date header in HTTP responses",
"version": "1.0.8",
"version": "1.0.9",
"main": "compiled/cjs/parsehttpdate.min.js",

@@ -18,8 +18,8 @@ "module": "compiled/esm/parsehttpdate.min.js",

"devDependencies": {
"@babel/preset-env": "^7.14.4",
"@babel/preset-env": "^7.16.7",
"@rollup/plugin-babel": "^5.3.0",
"babel-preset-minify": "^0.5.1",
"jest": "^27.0.3",
"rollup": "^2.50.5",
"typescript": "^4.3.2"
"jest": "^27.4.5",
"rollup": "^2.62.0",
"typescript": "^4.5.4"
},

@@ -26,0 +26,0 @@ "scripts": {

@@ -20,3 +20,3 @@ Ontleedt de waarde van de `Date` header in HTTP antwoorden.

```html
<script src="https://unpkg.com/parsehttpdate@^1.0.8"></script>
<script src="https://unpkg.com/parsehttpdate@^1.0.9"></script>
```

@@ -23,0 +23,0 @@ Met deze aanpak wordt de functie beschikbaar als `window.parseHttpDate`.

@@ -20,3 +20,3 @@ Parses the value of the `Date` header in HTTP responses.

```html
<script src="https://unpkg.com/parsehttpdate@^1.0.8"></script>
<script src="https://unpkg.com/parsehttpdate@^1.0.9"></script>
```

@@ -23,0 +23,0 @@ This alternative makes the function available at `window.parseHttpDate`.

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc