Skip to content

Commit

Permalink
fix: migrate from lodash to es-toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
gera2ld committed Oct 18, 2024
1 parent 41ad415 commit 3dd7a74
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 39 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,15 @@
"commander": "^11.0.0",
"console-table-printer": "^2.11.2",
"debug": "^4.3.4",
"es-toolkit": "^1.25.2",
"jsonwebtoken": "^9.0.2",
"lodash-es": "^4.17.21",
"read-package-up": "^11.0.0"
},
"devDependencies": {
"@gera2ld/plaid": "~2.7.0",
"@gera2ld/plaid-rollup": "~2.7.0",
"@types/debug": "^4.1.8",
"@types/jsonwebtoken": "^9.0.2",
"@types/lodash-es": "^4.17.9",
"@types/node": "^20.6.0",
"del-cli": "^5.1.0",
"husky": "^8.0.3"
Expand Down
87 changes: 57 additions & 30 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import debug from 'debug';
import { isEqual } from 'es-toolkit';
import { createWriteStream } from 'fs';
import { readFile, stat } from 'fs/promises';
import jwt from 'jsonwebtoken';
import { basename, join } from 'path';
import debug from 'debug';
import { isEqual } from 'lodash-es';
import { Readable } from 'stream';
import type { ReadableStream } from 'stream/web';
import { finished } from 'stream/promises';
import jwt from 'jsonwebtoken';
import type { ReadableStream } from 'stream/web';
import type {
ChannelType,
CompatibilityInfo,
SignAddonParam,
UploadResponse,
VersionDetail,
SignAddonParam,
CompatibilityInfo,
VersionListResponse,
VersionListRequest,
VersionListResponse,
} from './types';

const log = debug('amo-upload');
Expand Down

0 comments on commit 3dd7a74

Please sign in to comment.