update, text, response
This commit is contained in:
1
node_modules/reusify/.coveralls.yml
generated
vendored
1
node_modules/reusify/.coveralls.yml
generated
vendored
@@ -1 +0,0 @@
|
||||
repo_token: yIxhFqtaaz5iGVYfie9mODehFYogm8S8L
|
||||
7
node_modules/reusify/.github/dependabot.yml
generated
vendored
Normal file
7
node_modules/reusify/.github/dependabot.yml
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: npm
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: daily
|
||||
open-pull-requests-limit: 10
|
||||
96
node_modules/reusify/.github/workflows/ci.yml
generated
vendored
Normal file
96
node_modules/reusify/.github/workflows/ci.yml
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
name: ci
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
legacy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: ['0.10', '0.12', 4.x, 6.x, 8.x, 10.x, 12.x, 13.x, 14.x, 15.x, 16.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install
|
||||
run: |
|
||||
npm install --production && npm install tape
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
npm run test
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x, 20.x, 22.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Install
|
||||
run: |
|
||||
npm install
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
npm run test:coverage
|
||||
|
||||
types:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Install
|
||||
run: |
|
||||
npm install
|
||||
|
||||
- name: Run types tests
|
||||
run: |
|
||||
npm run test:typescript
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Install
|
||||
run: |
|
||||
npm install
|
||||
|
||||
- name: Lint
|
||||
run: |
|
||||
npm run lint
|
||||
28
node_modules/reusify/.travis.yml
generated
vendored
28
node_modules/reusify/.travis.yml
generated
vendored
@@ -1,28 +0,0 @@
|
||||
language: node_js
|
||||
sudo: false
|
||||
|
||||
node_js:
|
||||
- 9
|
||||
- 8
|
||||
- 7
|
||||
- 6
|
||||
- 5
|
||||
- 4
|
||||
- 4.0
|
||||
- iojs-v3
|
||||
- iojs-v2
|
||||
- iojs-v1
|
||||
- 0.12
|
||||
- 0.10
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
|
||||
after_script:
|
||||
- npm run coverage
|
||||
|
||||
notifications:
|
||||
email:
|
||||
on_success: never
|
||||
on_failure: always
|
||||
2
node_modules/reusify/LICENSE
generated
vendored
2
node_modules/reusify/LICENSE
generated
vendored
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Matteo Collina
|
||||
Copyright (c) 2015-2024 Matteo Collina
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
8
node_modules/reusify/README.md
generated
vendored
8
node_modules/reusify/README.md
generated
vendored
@@ -1,8 +1,6 @@
|
||||
# reusify
|
||||
|
||||
[![npm version][npm-badge]][npm-url]
|
||||
[![Build Status][travis-badge]][travis-url]
|
||||
[![Coverage Status][coveralls-badge]][coveralls-url]
|
||||
|
||||
Reuse your objects and functions for maximum speed. This technique will
|
||||
make any function run ~10% faster. You call your functions a
|
||||
@@ -111,7 +109,7 @@ function MyObject () {
|
||||
}
|
||||
```
|
||||
|
||||
Also note how in the above examples, the code, that consumes an istance of `MyObject`,
|
||||
Also note how in the above examples, the code, that consumes an instance of `MyObject`,
|
||||
reset the state to initial condition, just before storing it in the cache.
|
||||
That's needed so that every subsequent request for an instance from the cache,
|
||||
could get a clean instance.
|
||||
@@ -139,7 +137,3 @@ MIT
|
||||
|
||||
[npm-badge]: https://badge.fury.io/js/reusify.svg
|
||||
[npm-url]: https://badge.fury.io/js/reusify
|
||||
[travis-badge]: https://api.travis-ci.org/mcollina/reusify.svg
|
||||
[travis-url]: https://travis-ci.org/mcollina/reusify
|
||||
[coveralls-badge]: https://coveralls.io/repos/mcollina/reusify/badge.svg?branch=master&service=github
|
||||
[coveralls-url]: https://coveralls.io/github/mcollina/reusify?branch=master
|
||||
|
||||
15
node_modules/reusify/SECURITY.md
generated
vendored
Normal file
15
node_modules/reusify/SECURITY.md
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Use this section to tell people about which versions of your project are
|
||||
currently being supported with security updates.
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 1.x | :white_check_mark: |
|
||||
| < 1.0 | :x: |
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
Please report all vulnerabilities at [https://github.com/mcollina/fastq/security](https://github.com/mcollina/fastq/security).
|
||||
14
node_modules/reusify/eslint.config.js
generated
vendored
Normal file
14
node_modules/reusify/eslint.config.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
const base = require('neostandard')({})
|
||||
|
||||
module.exports = [
|
||||
...base,
|
||||
{
|
||||
name: 'old-standard',
|
||||
rules: {
|
||||
'no-var': 'off',
|
||||
'object-shorthand': 'off',
|
||||
}
|
||||
}
|
||||
]
|
||||
27
node_modules/reusify/package.json
generated
vendored
27
node_modules/reusify/package.json
generated
vendored
@@ -1,17 +1,19 @@
|
||||
{
|
||||
"name": "reusify",
|
||||
"version": "1.0.4",
|
||||
"version": "1.1.0",
|
||||
"description": "Reuse objects and functions with style",
|
||||
"main": "reusify.js",
|
||||
"types": "reusify.d.ts",
|
||||
"scripts": {
|
||||
"lint": "standard",
|
||||
"test": "tape test.js | faucet",
|
||||
"istanbul": "istanbul cover tape test.js",
|
||||
"coverage": "npm run istanbul; cat coverage/lcov.info | coveralls"
|
||||
"lint": "eslint",
|
||||
"test": "tape test.js",
|
||||
"test:coverage": "c8 --100 tape test.js",
|
||||
"test:typescript": "tsc"
|
||||
},
|
||||
"pre-commit": [
|
||||
"lint",
|
||||
"test"
|
||||
"test",
|
||||
"test:typescript"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -35,11 +37,14 @@
|
||||
"iojs": ">=1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"coveralls": "^2.13.3",
|
||||
"faucet": "0.0.1",
|
||||
"istanbul": "^0.4.5",
|
||||
"@types/node": "^22.9.0",
|
||||
"eslint": "^9.13.0",
|
||||
"neostandard": "^0.12.0",
|
||||
"pre-commit": "^1.2.2",
|
||||
"standard": "^10.0.3",
|
||||
"tape": "^4.8.0"
|
||||
"tape": "^5.0.0",
|
||||
"c8": "^10.1.2",
|
||||
"typescript": "^5.2.2"
|
||||
},
|
||||
"dependencies": {
|
||||
}
|
||||
}
|
||||
|
||||
14
node_modules/reusify/reusify.d.ts
generated
vendored
Normal file
14
node_modules/reusify/reusify.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
interface Node {
|
||||
next: Node | null;
|
||||
}
|
||||
|
||||
interface Constructor<T> {
|
||||
new(): T;
|
||||
}
|
||||
|
||||
declare function reusify<T extends Node>(constructor: Constructor<T>): {
|
||||
get(): T;
|
||||
release(node: T): void;
|
||||
};
|
||||
|
||||
export = reusify;
|
||||
11
node_modules/reusify/tsconfig.json
generated
vendored
Normal file
11
node_modules/reusify/tsconfig.json
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"noEmit": true,
|
||||
"strict": true
|
||||
},
|
||||
"files": [
|
||||
"./reusify.d.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user