Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions install.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 469, reused 469, downloaded 0, added 0
Progress: resolved 908, reused 908, downloaded 0, added 0
[WARN] 42 deprecated subdependencies found: @humanwhocodes/config-array@0.13.0, @humanwhocodes/object-schema@2.0.3, are-we-there-yet@1.1.7, axios@0.18.0, boom@2.10.1, conventional-changelog-atom@2.0.8, conventional-changelog-codemirror@2.0.8, conventional-changelog-core@4.2.4, conventional-changelog-ember@2.0.9, conventional-changelog-eslint@3.0.9, conventional-changelog-express@2.0.6, conventional-changelog-jquery@3.0.11, conventional-changelog-jshint@2.0.9, cryptiles@2.0.5, eslint@8.57.1, gauge@2.7.4, git-raw-commits@2.0.11, git-semver-tags@4.1.1, github@2.4.0, glob@7.1.2, glob@7.2.3, har-validator@4.2.1, hawk@3.1.3, hoek@2.16.3, inflight@1.0.6, nomnom@1.8.1, npm-registry-client@8.6.0, npmlog@4.1.2, osenv@0.1.5, q@1.4.1, q@1.5.0, q@1.5.1, q@2.0.3, request@2.81.0, rimraf@2.7.1, rimraf@3.0.2, sliced@1.0.1, sntp@1.0.9, stringify-package@1.0.1, tsml@1.0.1, uuid@2.0.3, uuid@3.4.0
Packages: +941
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are cloned from the content-addressable store to the virtual store.
Content-addressable store is at: /Users/kikobeats/Library/pnpm/store/v11
Virtual store is at: node_modules/.pnpm
Progress: resolved 960, reused 941, downloaded 0, added 233
Progress: resolved 960, reused 941, downloaded 0, added 940
Progress: resolved 960, reused 941, downloaded 0, added 941, done
.../node_modules/spawn-sync postinstall$ node postinstall
.../node_modules/simple-git-hooks postinstall$ node ./postinstall.js
.../node_modules/spawn-sync postinstall: Done
.../node_modules/simple-git-hooks postinstall: [INFO] Successfully set the pre-commit with command: npx nano-staged
.../node_modules/simple-git-hooks postinstall: [INFO] Successfully set the commit-msg with command: npx commitlint --edit
.../node_modules/simple-git-hooks postinstall: Done

dependencies:
+ @kikobeats/got 11.8.8
+ data-uri-utils 1.0.15

devDependencies:
+ @commitlint/cli 21.2.2
+ @commitlint/config-conventional 21.2.2
+ ava 8.0.1
+ c8 12.0.0
+ ci-publish 1.3.1
+ finepack 2.12.20
+ git-authors-cli 1.0.54
+ github-generate-release 1.0.16
+ nano-staged 1.0.2
+ simple-git-hooks 2.14.0
+ standard 17.1.2
+ standard-version 9.5.0

Done in 4.9s using pnpm v11.20.0
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"url"
],
"dependencies": {
"data-uri-utils": "~1.0.15",
"got": "~11.8.6"
"@kikobeats/got": "~11.8.8",
"data-uri-utils": "~1.0.15"
},
"devDependencies": {
"@commitlint/cli": "latest",
Expand Down
6 changes: 2 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const dataUri = require('data-uri-utils')
const got = require('got').extend({ throwHttpErrors: false })
const got = require('@kikobeats/got').extend({ throwHttpErrors: false })

const finiteLength = value => {
if (!value) return
Expand All @@ -10,9 +10,7 @@ const finiteLength = value => {
}

const fromHeaders = headers => {
const normalized = headers.entries
? Object.fromEntries(headers)
: headers
const normalized = headers.entries ? Object.fromEntries(headers) : headers

const fromRange = finiteLength(normalized['content-range']?.split('/').pop())
if (fromRange !== undefined) return fromRange
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const http = require('http')
const got = require('got')
const got = require('@kikobeats/got')
const test = require('ava').default

const contentLength = require('..')
Expand Down
Loading