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

@foxify/fresh

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@foxify/fresh - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0-beta.0

.build/cjs/index.d.ts

24

CHANGELOG.md

@@ -1,23 +0,11 @@

# Changelog
# @foxify/fresh
## Emojis
## 1.2.0-beta.0
- New Features -> :zap:
- Enhancements -> :star2:
- Breaking Changes -> :boom:
- Dependency Changes -> :package:
- Bugs -> :beetle:
- Pull Requests -> :book:
- Documents -> :mortar_board:
- Tests -> :eyeglasses:
### Minor Changes
---
- [#50](https://github.com/foxifyjs/foxify/pull/50) [`978b57e`](https://github.com/foxifyjs/foxify/commit/978b57e98b4c92f80eef0ad539320a3f79e11917) Thanks [@ardalanamini](https://github.com/ardalanamini)! - Check `max-age` in `Cache-Control` header for freshness
## [v1.1.0](https://github.com/foxifyjs/fresh/releases/tag/v1.1.0) - _(2019-08-24)_
### Patch Changes
- ::zap:: Added benchmarks
- :star2: Improved performance
## [v1.0.0](https://github.com/foxifyjs/fresh/releases/tag/v1.0.0) - _(2019-08-23)_
- :tada: First Release
- [`634f7ec`](https://github.com/foxifyjs/foxify/commit/634f7ec0a5261b63000500ede3a7dafdc356c123) Thanks [@ardalanamini](https://github.com/ardalanamini)! - Improve stale check performance
{
"name": "@foxify/fresh",
"version": "1.1.0",
"version": "1.2.0-beta.0",
"description": "HTTP response freshness testing",
"author": {
"name": "Ardalan Amini",
"email": "ardalanamini22@gmail.com",
"url": "https://ardalanamini.com"
},
"homepage": "https://github.com/foxifyjs/foxify/tree/main/packages/fresh#readme",
"author": "Ardalan Amini <ardalanamini22@gmail.com> (https://ardalanamini.com)",
"funding": [
{
"type": "opencollective",
"url": "https://opencollective.com/foxify"
}
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/foxifyjs/fresh.git"
"url": "git+https://github.com/foxifyjs/foxify.git",
"directory": "packages/fresh"
},
"bugs": {
"url": "https://github.com/foxifyjs/foxify/issues"
},
"keywords": [

@@ -22,44 +29,54 @@ "fresh",

"engines": {
"node": ">= 8"
"node": ">=16"
},
"files": [
"dist"
],
"main": "dist/index.js",
"imports": {
"#src/*": {
"import": {
"types": "./.build/esm/*.d.ts",
"default": "./.build/esm/*.js"
},
"default": {
"types": "./.build/cjs/*.d.ts",
"default": "./.build/cjs/*.js"
}
}
},
"main": ".build/cjs/index.js",
"exports": {
".": {
"import": {
"types": "./.build/esm/index.d.ts",
"default": "./.build/esm/index.js"
},
"default": {
"types": "./.build/cjs/index.d.ts",
"default": "./.build/cjs/index.js"
}
},
"./package.json": "./package.json"
},
"peerDependencies": {
"@types/node": ">=16"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc",
"watch": "npm run build -- --watch",
"docs": "typedoc --out docs/ --mode file src/",
"lint": "tslint -p tsconfig.json -c tslint.json --exclude '**/*.d.ts'",
"test": "jest",
"coverage": "npm test -- --coverage",
"codecov": "npm run coverage -- --runInBand && codecov",
"benchmarks": "find benchmarks -name '*.js' -exec benchmarks/start.sh {} \\;"
"build": "pnpm build:esm && pnpm build:cjs",
"build:watch": "nodemon",
"build:esm": "tsc",
"build:esm:watch": "pnpm build:esm --watch",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:cjs:watch": "pnpm build:cjs --watch",
"lint": "eslint --cache src tests jest.config.js",
"lint:fix": "pnpm lint --fix",
"document": "typedoc",
"test": "node --no-compilation-cache --expose-gc ../../node_modules/jest/bin/jest --logHeapUsage",
"test:coverage": "pnpm test -- --coverage",
"test:ci": "pnpm test:coverage --ci --verbose --no-cache",
"build:pre": "scripts/pre-build.sh",
"build:post": "scripts/post-build.sh"
},
"devDependencies": {
"@types/jest": "^24.0.18",
"@types/node": "^12.7.2",
"benchmark": "^2.1.4",
"codecov": "^3.5.0",
"fresh": "^0.5.2",
"jest": "^24.9.0",
"ts-jest": "^24.0.2",
"tslint": "^5.19.0",
"tslint-config-airbnb": "^5.11.1",
"typedoc": "^0.15.0",
"typescript": "^3.5.3"
},
"jest": {
"moduleFileExtensions": [
"ts",
"js",
"node"
],
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testMatch": [
"<rootDir>/__tests__/**/*\\.ts"
]
}
}
"module": ".build/esm/index.js",
"types": ".build/cjs/index.d.ts"
}

@@ -9,4 +9,2 @@ # Fresh <!-- omit in toc -->

[![License][license-image]][license-url]
[![Build Status][travis-image]][travis-url]
[![Coverage Status][codecov-image]][codecov-url]
[![Package Quality][quality-image]][quality-url]

@@ -16,4 +14,2 @@ [![Dependencies Status][dependency-status-image]][dependency-status-url]

[![NPM Monthly Downloads][monthly-downloads-image]][monthly-downloads-url]
[![Open Issues][open-issues-image]][open-issues-url]
[![Closed Issues][close-issues-image]][close-issues-url]
[![Github Stars][stars-image]][stars-url]

@@ -24,13 +20,12 @@ [![Github Forks][forks-image]][forks-url]

## Table of Contents <!-- omit in toc -->
## Table of Contents
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Known Issues](#known-issues)
- [Example](#example)
- [API usage](#api-usage)
- [Using with Node.js http server](#using-with-nodejs-http-server)
- [Benchmarks](#benchmarks)
- [API usage](#api-usage)
- [Using with Node.js http server](#using-with-nodejs-http-server)
- [Versioning](#versioning)

@@ -50,3 +45,3 @@ - [Changelog](#changelog)

```bash
npm i -s fresh
npm i @foxify/fresh
```

@@ -59,3 +54,3 @@

```typescript
import fresh from "fresh";
import fresh from "@foxify/fresh";
```

@@ -66,3 +61,3 @@

```javascript
const fresh = require("fresh").default;
const fresh = require("@foxify/fresh").default;
```

@@ -114,3 +109,3 @@

```typescript
import fresh from "fresh";
import fresh from "@foxify/fresh";
import http from "http";

@@ -143,11 +138,5 @@

## Benchmarks
```bash
npm run benchmarks
```
## Versioning
We use [SemVer](http://semver.org) for versioning. For the versions available, see the [tags on this repository](https://github.com/foxifyjs/odin/tags).
We use [SemVer](http://semver.org) for versioning. For the versions available, see the [tags on this repository](https://github.com/foxifyjs/fresh/tags).

@@ -162,3 +151,3 @@ ## Changelog

See also the list of [contributors](https://github.com/foxifyjs/odin/contributors) who participated in this project.
See also the list of [contributors](https://github.com/foxifyjs/fresh/contributors) who participated in this project.

@@ -178,10 +167,6 @@ ## License

[pulls-image]: https://img.shields.io/badge/PRs-Welcome-brightgreen.svg
[pulls-url]: https://github.com/foxifyjs/fresh/pulls
[pulls-url]: https://github.com/foxifyjs/foxify/pulls
[license-image]: https://img.shields.io/github/license/foxifyjs/fresh.svg
[license-url]: https://github.com/foxifyjs/fresh/blob/master/LICENSE
[travis-image]: https://api.travis-ci.com/foxifyjs/fresh.svg?branch=master
[travis-url]: https://travis-ci.com/foxifyjs/fresh
[codecov-image]: https://codecov.io/gh/foxifyjs/fresh/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/foxifyjs/fresh
[quality-image]: http://npm.packagequality.com/shield/%40foxify%2Fodin.svg
[license-url]: https://github.com/foxifyjs/foxify/blob/main/packages/fresh/LICENSE
[quality-image]: http://npm.packagequality.com/shield/%40foxify%2Ffresh.svg
[quality-url]: http://packagequality.com/#?package=@foxify/fresh

@@ -194,9 +179,5 @@ [dependency-status-image]: https://david-dm.org/foxifyjs/fresh.svg

[monthly-downloads-url]: https://www.npmjs.com/package/@foxify/fresh
[open-issues-image]: https://img.shields.io/github/issues-raw/foxifyjs/fresh.svg
[open-issues-url]: https://github.com/foxifyjs/fresh/issues?q=is%3Aopen+is%3Aissue
[close-issues-image]: https://img.shields.io/github/issues-closed-raw/foxifyjs/fresh.svg
[close-issues-url]: https://github.com/foxifyjs/fresh/issues?q=is%3Aissue+is%3Aclosed
[stars-image]: https://img.shields.io/github/stars/foxifyjs/fresh.svg?style=social
[stars-url]: https://github.com/foxifyjs/fresh
[stars-image]: https://img.shields.io/github/stars/foxifyjs/foxify.svg?style=social
[stars-url]: https://github.com/foxifyjs/foxify
[forks-image]: https://img.shields.io/github/forks/foxifyjs/fresh.svg?style=social&label=Fork
[forks-url]: https://github.com/foxifyjs/fresh
[forks-url]: https://github.com/foxifyjs/foxify

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