Skip to content

Commit

Permalink
deps: updated object-code
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Feb 21, 2022
1 parent 6db8953 commit 9f4b400
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"dependencies": {
"cache-parser": "1.2.0",
"fast-defer": "^1.1.3",
"object-code": "^1.0.1"
"object-code": "^1.1.2"
},
"resolutions": {
"colors": "1.4.0"
Expand Down
4 changes: 2 additions & 2 deletions src/util/key-generator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Method } from 'axios';
import { code } from 'object-code';
import { hashCode } from 'object-code';
import type { CacheRequestConfig } from '../cache/axios';
import type { KeyGenerator } from './types';

Expand Down Expand Up @@ -53,7 +53,7 @@ export function buildKeyGenerator<R = unknown, D = unknown>(
request.method && (request.method = request.method.toLowerCase() as Method);

const result = generator(request) as string;
return hash ? code(result).toString() : result;
return hash ? hashCode(result).toString() : result;
};
}

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3183,10 +3183,10 @@ nwsapi@^2.2.0:
resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7"
integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==

object-code@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/object-code/-/object-code-1.0.1.tgz#57a6243fde3b47f0093fd71d5883e3335a297706"
integrity sha512-zt/mZJvjm3nyMH9BMcrV/NYgPrqKwno0sx2bdqD4juT2EWa7wxDPn5nQnYMIsfz4pIIDh6gupQ5bMJ+tTy1Kqw==
object-code@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/object-code/-/object-code-1.1.2.tgz#586f9bd51ceb2f9da91348ffe5f08e0b97b27134"
integrity sha512-b1cbP5l3wNfFbUUje7AbX9mlZ8G1XVSzzsjPdGp7+UHyg+PNvMlo+wmZq+/qYqeH7Me7hyrqKoKf6LNgzkIsjg==

once@^1.3.0:
version "1.4.0"
Expand Down

0 comments on commit 9f4b400

Please sign in to comment.