📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

npm-profile

Package Overview
Dependencies
Maintainers
5
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-profile - npm Package Compare versions

Comparing version

to
7.0.1

lib/index.js

45

package.json
{
"name": "npm-profile",
"version": "5.0.4",
"version": "7.0.1",
"description": "Library for updating an npmjs.com profile",
"keywords": [],
"author": "Rebecca Turner <me@re-becca.org> (http://re-becca.org/)",
"author": "GitHub Inc.",
"license": "ISC",
"dependencies": {
"npm-registry-fetch": "^11.0.0"
"npm-registry-fetch": "^14.0.0",
"proc-log": "^3.0.0"
},
"main": "index.js",
"main": "./lib/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/npm-profile.git"
"url": "https://github.com/npm/npm-profile.git"
},
"files": [
"index.js"
"bin/",
"lib/"
],
"devDependencies": {
"nock": "^12.0.1",
"require-inject": "^1.4.4",
"standard": "^14.3.1",
"tap": "^14.10.6"
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.5.1",
"nock": "^13.2.4",
"tap": "^16.0.1"
},
"scripts": {
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags",
"posttest": "standard index.js",
"posttest": "npm run lint",
"test": "tap",
"snap": "tap"
"snap": "tap",
"lint": "eslint \"**/*.js\"",
"postlint": "template-oss-check",
"lintfix": "npm run lint -- --fix",
"template-oss-apply": "template-oss-apply --force"
},
"tap": {
"check-coverage": true
"check-coverage": true,
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
},
"engines": {
"node": ">=10"
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.5.1"
}
}

@@ -7,3 +7,3 @@ # npm-profile

const profile = require('npm-profile')
const result = await profile.get(registry, {token})
const result = await profile.get({token})
//...

@@ -530,10 +530,11 @@ ```

This modules logs by emitting `log` events on the global `process` object.
This modules logs by emitting `log` events on the global `process` object
via [`proc-log`](https://www.npmjs.com/package/proc-log).
These events look like this:
```js
process.emit('log', 'loglevel', 'feature', 'message part 1', 'part 2', 'part 3', 'etc')
procLog[loglevel]('feature', 'message part 1', 'part 2', 'part 3', 'etc')
```
`loglevel` can be one of: `error`, `warn`, `notice`, `http`, `timing`, `info`, `verbose`, and `silly`.
`loglevel` can be one of: `error`, `warn`, `notice`, `http`, `info`, `verbose`, and `silly`.

@@ -547,3 +548,3 @@ `feature` is any brief string that describes the component doing the logging.

```js
process.emit('log', 'http', 'request', '→', conf.method || 'GET', conf.target)
procLog.http('request', '→', conf.method || 'GET', conf.target)
```

@@ -554,6 +555,5 @@

```js
const log = require('npmlog')
process.on('log', function (level) {
return log[level].apply(log, [].slice.call(arguments, 1))
process.on('log', (level, feature, ...args) => {
console.log(level, feature, ...args)
})
```