Skip to content

Commit

Permalink
fix: use @eggjs/ip instead of ip (#95)
Browse files Browse the repository at this point in the history
closes #94
  • Loading branch information
fengmk2 authored Jun 12, 2024
1 parent b7d47ec commit 5e3ee95
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 100 deletions.
29 changes: 0 additions & 29 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { normalize } = require('node:path');
const IP = require('ip');
const IP = require('@eggjs/ip');
const matcher = require('matcher');

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"security"
],
"dependencies": {
"@eggjs/ip": "^2.0.2",
"csrf": "^3.0.6",
"delegates": "^1.0.0",
"egg-path-matching": "^1.0.0",
"escape-html": "^1.0.3",
"extend": "^3.0.1",
"ip": "^2.0.1",
"koa-compose": "^4.1.0",
"matcher": "^4.0.0",
"methods": "^1.1.2",
Expand Down
2 changes: 1 addition & 1 deletion test/benchmark/cidr_subnet.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const ip = require('ip');
const ip = require('@eggjs/ip');
const Benchmark = require('benchmark');
const benchmarks = require('beautify-benchmark');
const suite = new Benchmark.Suite();
Expand Down

0 comments on commit 5e3ee95

Please sign in to comment.