Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
PK ! õg7®N N appveyor.ymlnu „[µü¤ environment:
matrix:
- nodejs_version: "10"
- nodejs_version: "9"
- nodejs_version: "8"
- nodejs_version: "6"
platform:
- x64
install:
- ps: Install-Product node $env:nodejs_version $env:platform
- npm config set spin false
- npm install
test_script:
- npm test
matrix:
fast_finish: true
build: off
PK ! D[fÏ
Ï
index.jsnu „[µü¤ 'use strict'
const eu = encodeURIComponent
const figgyPudding = require('figgy-pudding')
const getStream = require('get-stream')
const npmFetch = require('npm-registry-fetch')
const validate = require('aproba')
const TeamConfig = figgyPudding({
description: {},
Promise: { default: () => Promise }
})
const cmd = module.exports = {}
cmd.create = (entity, opts) => {
opts = TeamConfig(opts)
return pwrap(opts, () => {
const { scope, team } = splitEntity(entity)
validate('SSO', [scope, team, opts])
return npmFetch.json(`/-/org/${eu(scope)}/team`, opts.concat({
method: 'PUT',
scope,
body: { name: team, description: opts.description }
}))
})
}
cmd.destroy = (entity, opts) => {
opts = TeamConfig(opts)
return pwrap(opts, () => {
const { scope, team } = splitEntity(entity)
validate('SSO', [scope, team, opts])
return npmFetch.json(`/-/team/${eu(scope)}/${eu(team)}`, opts.concat({
method: 'DELETE',
scope
}))
})
}
cmd.add = (user, entity, opts) => {
opts = TeamConfig(opts)
return pwrap(opts, () => {
const { scope, team } = splitEntity(entity)
validate('SSO', [scope, team, opts])
return npmFetch.json(`/-/team/${eu(scope)}/${eu(team)}/user`, opts.concat({
method: 'PUT',
scope,
body: { user }
}))
})
}
cmd.rm = (user, entity, opts) => {
opts = TeamConfig(opts)
return pwrap(opts, () => {
const { scope, team } = splitEntity(entity)
validate('SSO', [scope, team, opts])
return npmFetch.json(`/-/team/${eu(scope)}/${eu(team)}/user`, opts.concat({
method: 'DELETE',
scope,
body: { user }
}))
})
}
cmd.lsTeams = (scope, opts) => {
opts = TeamConfig(opts)
return pwrap(opts, () => getStream.array(cmd.lsTeams.stream(scope, opts)))
}
cmd.lsTeams.stream = (scope, opts) => {
opts = TeamConfig(opts)
validate('SO', [scope, opts])
return npmFetch.json.stream(`/-/org/${eu(scope)}/team`, '.*', opts.concat({
query: { format: 'cli' }
}))
}
cmd.lsUsers = (entity, opts) => {
opts = TeamConfig(opts)
return pwrap(opts, () => getStream.array(cmd.lsUsers.stream(entity, opts)))
}
cmd.lsUsers.stream = (entity, opts) => {
opts = TeamConfig(opts)
const { scope, team } = splitEntity(entity)
validate('SSO', [scope, team, opts])
const uri = `/-/team/${eu(scope)}/${eu(team)}/user`
return npmFetch.json.stream(uri, '.*', opts.concat({
query: { format: 'cli' }
}))
}
cmd.edit = () => {
throw new Error('edit is not implemented yet')
}
function splitEntity (entity = '') {
let [, scope, team] = entity.match(/^@?([^:]+):(.*)$/) || []
return { scope, team }
}
function pwrap (opts, fn) {
return new opts.Promise((resolve, reject) => {
fn().then(resolve, reject)
})
}
PK ! .óB} } README.mdnu „[µü¤ # libnpmteam [](https://npm.im/libnpmteam) [](https://npm.im/libnpmteam) [](https://travis-ci.org/npm/libnpmteam) [](https://ci.appveyor.com/project/zkat/libnpmteam) [](https://coveralls.io/github/npm/libnpmteam?branch=latest)
[`libnpmteam`](https://github.com/npm/libnpmteam) is a Node.js
library that provides programmatic access to the guts of the npm CLI's `npm
team` command and its various subcommands.
## Example
```javascript
const access = require('libnpmteam')
// List all teams for the @npm org.
console.log(await team.lsTeams('npm'))
```
## Table of Contents
* [Installing](#install)
* [Example](#example)
* [Contributing](#contributing)
* [API](#api)
* [team opts](#opts)
* [`create()`](#create)
* [`destroy()`](#destroy)
* [`add()`](#add)
* [`rm()`](#rm)
* [`lsTeams()`](#ls-teams)
* [`lsTeams.stream()`](#ls-teams-stream)
* [`lsUsers()`](#ls-users)
* [`lsUsers.stream()`](#ls-users-stream)
### Install
`$ npm install libnpmteam`
### Contributing
The npm team enthusiastically welcomes contributions and project participation!
There's a bunch of things you can do if you want to contribute! The [Contributor
Guide](CONTRIBUTING.md) has all the information you need for everything from
reporting bugs to contributing entire new features. Please don't hesitate to
jump in if you'd like to, or even ask us questions if something isn't clear.
All participants and maintainers in this project are expected to follow [Code of
Conduct](CODE_OF_CONDUCT.md), and just generally be excellent to each other.
Please refer to the [Changelog](CHANGELOG.md) for project history details, too.
Happy hacking!
### API
#### `opts` for `libnpmteam` commands
`libnpmteam` uses [`npm-registry-fetch`](https://npm.im/npm-registry-fetch).
All options are passed through directly to that library, so please refer to [its
own `opts`
documentation](https://www.npmjs.com/package/npm-registry-fetch#fetch-options)
for options that can be passed in.
A couple of options of note for those in a hurry:
* `opts.token` - can be passed in and will be used as the authentication token for the registry. For other ways to pass in auth details, see the n-r-f docs.
* `opts.otp` - certain operations will require an OTP token to be passed in. If a `libnpmteam` command fails with `err.code === EOTP`, please retry the request with `{otp: <2fa token>}`
* `opts.Promise` - If you pass this in, the Promises returned by `libnpmteam` commands will use this Promise class instead. For example: `{Promise: require('bluebird')}`
#### `> team.create(team, [opts]) -> Promise`
Creates a team named `team`. Team names use the format `@:`, with
the `@` being optional.
Additionally, `opts.description` may be passed in to include a description.
##### Example
```javascript
await team.create('@npm:cli', {token: 'myregistrytoken'})
// The @npm:cli team now exists.
```
#### `> team.destroy(team, [opts]) -> Promise`
Destroys a team named `team`. Team names use the format `@:`, with
the `@` being optional.
##### Example
```javascript
await team.destroy('@npm:cli', {token: 'myregistrytoken'})
// The @npm:cli team has been destroyed.
```
#### `> team.add(user, team, [opts]) -> Promise`
Adds `user` to `team`.
##### Example
```javascript
await team.add('zkat', '@npm:cli', {token: 'myregistrytoken'})
// @zkat now belongs to the @npm:cli team.
```
#### `> team.rm(user, team, [opts]) -> Promise`
Removes `user` from `team`.
##### Example
```javascript
await team.rm('zkat', '@npm:cli', {token: 'myregistrytoken'})
// @zkat is no longer part of the @npm:cli team.
```
#### `> team.lsTeams(scope, [opts]) -> Promise`
Resolves to an array of team names belonging to `scope`.
##### Example
```javascript
await team.lsTeams('@npm', {token: 'myregistrytoken'})
=>
[
'npm:cli',
'npm:web',
'npm:registry',
'npm:developers'
]
```
#### `> team.lsTeams.stream(scope, [opts]) -> Stream`
Returns a stream of teams belonging to `scope`.
For a Promise-based version of these results, see [`team.lsTeams()`](#ls-teams).
##### Example
```javascript
for await (let team of team.lsTeams.stream('@npm', {token: 'myregistrytoken'})) {
console.log(team)
}
// outputs
// npm:cli
// npm:web
// npm:registry
// npm:developers
```
#### `> team.lsUsers(team, [opts]) -> Promise`
Resolves to an array of usernames belonging to `team`.
For a streamed version of these results, see [`team.lsUsers.stream()`](#ls-users-stream).
##### Example
```javascript
await team.lsUsers('@npm:cli', {token: 'myregistrytoken'})
=>
[
'iarna',
'zkat'
]
```
#### `> team.lsUsers.stream(team, [opts]) -> Stream`
Returns a stream of usernames belonging to `team`.
For a Promise-based version of these results, see [`team.lsUsers()`](#ls-users).
##### Example
```javascript
for await (let user of team.lsUsers.stream('@npm:cli', {token: 'myregistrytoken'})) {
console.log(user)
}
// outputs
// iarna
// zkat
```
PK ! ’·H H .travis.ymlnu „[µü¤ language: node_js
sudo: false
node_js:
- "10"
- "9"
- "8"
- "6"
PK ! âgXÍ Í LICENSEnu „[µü¤ Copyright npm, Inc
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
PK ! ÞW W CHANGELOG.mdnu „[µü¤ # Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [1.0.2](https://github.com/npm/libnpmteam/compare/v1.0.1...v1.0.2) (2019-07-16)
### Bug Fixes
* **standard:** standard --fix ([3dc9144](https://github.com/npm/libnpmteam/commit/3dc9144))
## [1.0.1](https://github.com/npm/libnpmteam/compare/v1.0.0...v1.0.1) (2018-08-24)
# 1.0.0 (2018-08-22)
### Features
* **api:** implement team api ([50dd0e1](https://github.com/npm/libnpmteam/commit/50dd0e1))
* **docs:** add fully-documented readme ([b1370f3](https://github.com/npm/libnpmteam/commit/b1370f3))
* **test:** test --100 ftw ([9d3bdc3](https://github.com/npm/libnpmteam/commit/9d3bdc3))
PK ! óR˜n· · PULL_REQUEST_TEMPLATEnu „[µü¤
PK ! €²9xà à package.jsonnu „[µü¤ {
"_from": "libnpmteam@1.0.2",
"_id": "libnpmteam@1.0.2",
"_inBundle": false,
"_integrity": "sha512-p420vM28Us04NAcg1rzgGW63LMM6rwe+6rtZpfDxCcXxM0zUTLl7nPFEnRF3JfFBF5skF/yuZDUthTsHgde8QA==",
"_location": "/libnpmteam",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "libnpmteam@1.0.2",
"name": "libnpmteam",
"escapedName": "libnpmteam",
"rawSpec": "1.0.2",
"saveSpec": null,
"fetchSpec": "1.0.2"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/libnpmteam/-/libnpmteam-1.0.2.tgz",
"_shasum": "8b48bcbb6ce70dd8150c950fcbdbf3feb6eec820",
"_spec": "libnpmteam@1.0.2",
"_where": "/Users/isaacs/dev/npm/cli",
"author": {
"name": "Kat Marchán",
"email": "kzm@zkat.tech"
},
"bugs": {
"url": "https://github.com/npm/libnpmteam/issues"
},
"bundleDependencies": false,
"dependencies": {
"aproba": "^2.0.0",
"figgy-pudding": "^3.4.1",
"get-stream": "^4.0.0",
"npm-registry-fetch": "^4.0.0"
},
"deprecated": false,
"description": "npm Team management APIs",
"devDependencies": {
"nock": "^9.6.1",
"standard": "^12.0.0",
"standard-version": "*",
"tap": "*",
"weallbehave": "*",
"weallcontribute": "*"
},
"homepage": "https://npmjs.com/package/libnpmteam",
"license": "ISC",
"name": "libnpmteam",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/libnpmteam.git"
},
"scripts": {
"postrelease": "npm publish && git push --follow-tags",
"prerelease": "npm t",
"pretest": "standard",
"release": "standard-version -s",
"test": "tap -J --100 test/*.js",
"update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'",
"update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'"
},
"version": "1.0.2"
}
PK ! õg7®N N appveyor.ymlnu „[µü¤ PK ! D[fÏ
Ï
Š index.jsnu „[µü¤ PK ! .óB} } ‘ README.mdnu „[µü¤ PK ! ’·H H G" .travis.ymlnu „[µü¤ PK ! âgXÍ Í Ê" LICENSEnu „[µü¤ PK ! ÞW W Î% CHANGELOG.mdnu „[µü¤ PK ! óR˜n· · a) PULL_REQUEST_TEMPLATEnu „[µü¤ PK ! €²9xà à ]* package.jsonnu „[µü¤ PK \ \2