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.4 to 1.0.5

2

changelog.md

@@ -13,4 +13,4 @@ ### 1.0.0

### 1.0.3, 1.0.4
### 1.0.3 - 1.0.5
(No changes)
{
"name": "parsehttpdate",
"description": "Parses the value of the Date header in HTTP responses",
"version": "1.0.4",
"version": "1.0.5",
"main": "compiled/cjs/parsehttpdate.min.js",

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

"devDependencies": {
"@babel/preset-env": "^7.4.5",
"jest": "^24.8.0",
"rollup": "^1.15.6",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-babel-minify": "^8.0.0",
"typescript": "^3.5.2"
"@babel/preset-env": "^7.5.5",
"jest": "^24.9.0",
"rollup": "^1.20.3",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-babel-minify": "^9.0.0",
"typescript": "^3.6.2"
},

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

@@ -5,7 +5,7 @@ Ontleedt de waarde van de `Date` header in HTTP antwoorden.

Ontleedt datum-tijdstippen van HTTP-headers zoals _Date_, _Last-Modified_, en _Expires_. Die datum-tijdstippen zijn bijna altijd opgeschreven in het aangeraden formaat [gedefinieerd door HTTP/1.1](https://tools.ietf.org/html/rfc7231#section-7.1.1.1). Een voorbeeld van zo een datum-tijdstip is:
Ontleedt datum-tijdstippen van HTTP-headers zoals _Date_, _Last-Modified_, en _Expires_. Die datum-tijdstippen zijn bijna altijd opgeschreven in het aangeraden formaat [gedefinieerd door HTTP/1.1][http-1.1]. Een voorbeeld van zo een datum-tijdstip is:
> Tue, 15 Nov 1994 08:12:31 GMT
Dit formaat is een subgroep van de specificatie die wordt gebruikt door in het [Internet Message Format](https://tools.ietf.org/html/rfc5322).
Dit formaat is een subgroep van de specificatie die wordt gebruikt door in het [Internet Message Format][imf].

@@ -21,3 +21,3 @@ # Installatie

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

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

### In combinatie met [fetch](https://developer.mozilla.org/docs/Web/API/Fetch_API)
### In combinatie met [fetch][mdn-fetch]

@@ -54,3 +54,3 @@ Op deze manier vind je de tijd volgens jouw server:

Dit is hetzelfde voorbeeld met een [async-functie](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/async_function):
Dit is hetzelfde voorbeeld met een [async-functie][mdn-async-function]:

@@ -89,3 +89,3 @@ ```javascript

Gefeliciteerd: jouw datum-tijdstip is opgeschreven in het [ISO 8601](http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15)-formaat. _Je hebt parseHttpDate niet nodig_. Je hebt geen enkele bibliotheek nodig:
Gefeliciteerd: jouw datum-tijdstip is opgeschreven in het [ISO 8601][ecmascript-10-date-time]-formaat. _Je hebt deze bibliotheek niet nodig_. Je hebt geen enkele bibliotheek nodig:

@@ -102,3 +102,3 @@ ```javascript

Deze implementatie ondersteunt deze niet.
Deze bibliotheek ondersteunt deze niet.

@@ -112,2 +112,9 @@ ## Licentie (X11/MIT)

**The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the Software.**
**The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the Software.**
[http-1.1]: https://tools.ietf.org/html/rfc7231#section-7.1.1.1
[imf]: https://tools.ietf.org/html/rfc5322
[ecmascript-10-date-time]: http://www.ecma-international.org/ecma-262/10.0/#sec-date-time-string-format
[mdn-fetch]: https://developer.mozilla.org/docs/Web/API/Fetch_API
[mdn-async-function]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/async_function

@@ -5,7 +5,7 @@ Parses the value of the `Date` header in HTTP responses.

Parses date-times from HTTP headers such as _Date_, _Last Modified_, and _Expires_. Those date-times almost always have the preferred format [as defined by HTTP/1.1](https://tools.ietf.org/html/rfc7231#section-7.1.1.1). An example of such a date-time is:
Parses date-times from HTTP headers such as _Date_, _Last Modified_, and _Expires_. Those date-times almost always have the preferred format [as defined by HTTP/1.1][http-1.1]. An example of such a date-time is:
> Tue, 15 Nov 1994 08:12:31 GMT
This format is a subset of the specification used by the [Internet Message Format](https://tools.ietf.org/html/rfc5322).
This format is a subset of the specification used by the [Internet Message Format][imf].

@@ -21,3 +21,3 @@ # Installation

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

@@ -32,3 +32,3 @@ This alternative makes the function available at `window.parseHttpDate`.

### Combined with [fetch](https://developer.mozilla.org/docs/Web/API/Fetch_API)
### Combined with [fetch][mdn-fetch]

@@ -52,3 +52,3 @@ This is how you can determine the time according to your server:

This is the same example using an [async function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/async_function):
This is the same example using an [async function][mdn-async-function]:

@@ -85,3 +85,3 @@ ```javascript

Congratulations: your date-time is formatted [according to ISO 8601](http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15). _You don't need parseHttpDate_. You don't need any library:
Congratulations: your date-time is formatted [according to ISO 8601][ecmascript-10-date-time]. _You don't need this library_. You don't need any library:

@@ -98,3 +98,3 @@ ```javascript

This implementation does not support those.
This library does not support those.

@@ -108,2 +108,9 @@ # License (X11/MIT)

**The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the Software.**
**The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the Software.**
[http-1.1]: https://tools.ietf.org/html/rfc7231#section-7.1.1.1
[imf]: https://tools.ietf.org/html/rfc5322
[ecmascript-10-date-time]: http://www.ecma-international.org/ecma-262/10.0/#sec-date-time-string-format
[mdn-fetch]: https://developer.mozilla.org/docs/Web/API/Fetch_API
[mdn-async-function]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/async_function
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