Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nikitajs/network

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nikitajs/network - npm Package Compare versions

Comparing version 1.0.0-alpha.0 to 1.0.0-alpha.1

13

CHANGELOG.md

@@ -6,4 +6,15 @@ # Change Log

# [1.0.0-alpha.1](https://github.com/adaltas/node-nikita/compare/@nikitajs/network@1.0.0-alpha.0...@nikitajs/network@1.0.0-alpha.1) (2021-03-10)
### Features
* schema coercion ([9e52391](https://github.com/adaltas/node-nikita/commit/9e52391852a8e45b35674faa44f17747303b2851))
# 1.0.0-alpha.0 (2021-02-03)
The jump to version 1.0.0 is a major which rewrite every single part of the code. The list of changes is too big to be reproduce here. We'll started generating the changelog from this version.
The jump to version 1.0.0 is a major which rewrite every single part of the code. The list of changes is too big to be reproduced here. We'll start generating the changelog from this version.

23

lib/http/index.js

@@ -9,15 +9,15 @@ // Generated by CoffeeScript 2.5.1

// * `output.data` (string)
// * `data` (string)
// The decoded data is type is provided or detected.
// * `output.body` (string)
// * `body` (string)
// The HTTP response body.
// * `output.headers` ([string])
// * `headers` ([string])
// The HTTP response headers.
// * `output.http_version` ([string])
// * `http_version` ([string])
// The HTTP response http_version, eg 'HTTP/1.1'.
// * `output.status_code` (string)
// * `status_code` (string)
// The HTTP response status code.
// * `output.status_message` (string)
// * `status_message` (string)
// The HTTP response status message.
// * `output.type` (string)
// * `type` (string)
// The format type if provided or detected, possible values is only "json" for now.

@@ -31,5 +31,4 @@

// ```js
// try
// nikita.network.http({
// ssh: ssh,
// try {
// await nikita.network.http({
// url: "http://2222:localhost"

@@ -257,7 +256,7 @@ // })

await this.fs.chmod({
if: config.target && config.mode,
$if: config.target && config.mode,
mode: config.mode
});
await this.fs.chown({
if: config.target && (config.uid != null) || (config.gid != null),
$if: config.target && (config.uid != null) || (config.gid != null),
target: config.target,

@@ -264,0 +263,0 @@ uid: config.uid,

@@ -23,7 +23,7 @@ // Generated by CoffeeScript 2.5.1

// ```js
// const {status} = await nikita.network.tcp.wait({
// const {$status} = await nikita.network.tcp.wait({
// hosts: [ '1.domain.com', '2.domain.com' ],
// port: 80
// })
// console.info(`Servers listening on port 80: ${status}`)
// console.info(`Servers listening on port 80: ${$status}`)
// ```

@@ -34,7 +34,7 @@

// ```js
// const {status} = await nikita.network.tcp.wait({
// const {$status} = await nikita.network.tcp.wait({
// host: 'my.domain.com',
// ports: [80, 443]
// })
// console.info(`Servers listening on ports 80 and 443: ${status}`)
// console.info(`Servers listening on ports 80 and 443: ${$status}`)
// ```

@@ -45,3 +45,3 @@

// ```js
// const {status} = await nikita.network.tcp.wait({
// const {$status} = await nikita.network.tcp.wait({
// servers: [

@@ -52,3 +52,3 @@ // {host: '1.domain.com', port: 80},

// })
// console.info(`Servers listening: ${status}`)
// console.info(`Servers listening: ${$status}`)
// ```

@@ -122,13 +122,6 @@

'host': {
oneOf: [
{
type: 'string'
},
{
type: 'array',
items: {
type: 'string'
}
}
],
type: 'array',
items: {
type: 'string'
},
description: `One or multiple hosts, used to build or enrich the 'server' option.`

@@ -141,34 +134,10 @@ },

'quorum': {
oneOf: [
{
type: 'boolean'
},
{
type: 'integer'
}
],
type: ['boolean', 'integer'],
description: `Number of minimal successful connection, 50%+1 if "true".`
},
'port': {
oneOf: [
{
type: 'integer'
},
{
type: 'string'
},
{
type: 'array',
items: {
oneOf: [
{
type: 'integer'
},
{
type: 'string'
}
]
}
}
],
type: 'array',
items: {
type: 'integer'
},
description: `One or multiple ports, used to build or enrich the 'server' option.`

@@ -175,0 +144,0 @@ },

@@ -14,3 +14,3 @@ {

],
"version": "1.0.0-alpha.0",
"version": "1.0.0-alpha.1",
"author": "David Worms <david@adaltas.com>",

@@ -37,10 +37,14 @@ "bugs": {

"email": "david@adaltas.com"
},
{
"name": "Sergei Kudinov",
"email": "sergei@adaltas.com"
}
],
"peerDependencies": {
"@nikitajs/core": "^0.9.7"
"@nikitajs/core": "^1.0.0"
},
"devDependencies": {
"coffeescript": "^2.5.1",
"mocha": "^8.2.1",
"mocha": "^8.3.1",
"mocha-they": "^0.1.2",

@@ -79,7 +83,6 @@ "should": "^13.2.3"

"build": "coffee -b -o lib src && find lib -type f | xargs sed -i -e 's/@nikitajs\\/network\\/src/@nikitajs\\/network\\/lib/g'",
"pretest": "npm run build",
"test": "mocha 'test/**/*.coffee'",
"testall": "mocha 'test/**/*.coffee'"
"test": "npm run test:local",
"test:local": "mocha 'test/**/*.coffee'"
},
"gitHead": "c5ee53354302fd36836e269ceac5639381efadd2"
"gitHead": "86d25e2158736f77e88edae3f243fcaba1b0b8b2"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc