Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.2.0 #20

Merged
merged 2 commits into from
Feb 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion fs/ReadDataByPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ReadDataByPath extends AsyncObject {
});
}

definedAsyncCall () {
asyncCall () {
return fs.readFile
}
}
Expand Down
2 changes: 1 addition & 1 deletion http/ClosedServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ClosedServer extends AsyncObject {
super(server);
}

definedAsyncCall () {
asyncCall () {
return (server, callback) => {
server.close(callback)
this.server = server
Expand Down
2 changes: 1 addition & 1 deletion http/CreatedHttpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class CreatedHttpServer extends AsyncObject {
super(options, requestListener)
}

definedSyncCall () {
syncCall () {
return (options, requestListener) => {
return http.createServer(options, requestListener);
}
Expand Down
2 changes: 1 addition & 1 deletion http/ListeningServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ListeningServer extends AsyncObject {
super(server, ...args)
}

definedSyncCall () {
syncCall () {
return (server, ...args) => {
return server.listen(...args)
}
Expand Down
2 changes: 1 addition & 1 deletion json/ParsedJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ParsedJSON extends AsyncObject {
super(string)
}

definedSyncCall () {
syncCall () {
return JSON.parse
}
}
Expand Down
84 changes: 42 additions & 42 deletions package-lock.json

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

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cuties/process",
"version": "1.1.4",
"version": "1.2.0",
"description": "Cutie extension for process module in Node.",
"main": "index.js",
"scripts": {
Expand All @@ -16,14 +16,14 @@
"process"
],
"dependencies": {
"@cuties/assert": "^1.1.11",
"@cuties/child-process": "^1.0.5",
"@cuties/cutie": "^1.6.8",
"@cuties/is": "^1.0.14",
"@cuties/wall": "^1.0.19",
"@cuties/assert": "^1.2.0",
"@cuties/child-process": "^1.1.0",
"@cuties/cutie": "^1.7.0",
"@cuties/is": "^1.1.0",
"@cuties/wall": "^1.1.0",
"find-process": "1.1.1",
"promise-to-callback": "1.0.0",
"test-executor": "^1.1.34"
"test-executor": "^1.2.0"
},
"author": "guseyn",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/Arch.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Arch extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.arch
}
Expand Down
2 changes: 1 addition & 1 deletion src/Argv.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Argv extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.argv
}
Expand Down
2 changes: 1 addition & 1 deletion src/Argv0.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Argv0 extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.argv0
}
Expand Down
2 changes: 1 addition & 1 deletion src/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Channel extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.channel
}
Expand Down
2 changes: 1 addition & 1 deletion src/Chdir.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Chdir extends AsyncObject {
super(process, dir)
}

definedSyncCall () {
syncCall () {
return (process, dir) => {
process.chdir(dir)
return dir
Expand Down
2 changes: 1 addition & 1 deletion src/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Config extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.config
}
Expand Down
2 changes: 1 addition & 1 deletion src/CpuUsage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class CpuUsage extends AsyncObject {
super(process, previousValue)
}

definedSyncCall () {
syncCall () {
return (process, previousValue) => {
return process.cpuUsage(previousValue)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Cwd.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Cwd extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.cwd()
}
Expand Down
2 changes: 1 addition & 1 deletion src/DebugPort.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class DebugPort extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.debugPort
}
Expand Down
2 changes: 1 addition & 1 deletion src/DisconnectedProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class DisconnectedProcess extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
process.disconnect()
return process
Expand Down
2 changes: 1 addition & 1 deletion src/Egid.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Egid extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.getegid()
}
Expand Down
2 changes: 1 addition & 1 deletion src/Env.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Env extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.env
}
Expand Down
2 changes: 1 addition & 1 deletion src/Euid.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Euid extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.geteuid()
}
Expand Down
2 changes: 1 addition & 1 deletion src/ExecArgv.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ExecArgv extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.execArgv
}
Expand Down
2 changes: 1 addition & 1 deletion src/ExecPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ExecPath extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.execPath
}
Expand Down
2 changes: 1 addition & 1 deletion src/ExitCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ExitCode extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.exitCode
}
Expand Down
2 changes: 1 addition & 1 deletion src/ExitedProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ExitedProcess extends AsyncObject {
super(process, code)
}

definedSyncCall () {
syncCall () {
return (process, code) => {
process.exit(code)
}
Expand Down
2 changes: 1 addition & 1 deletion src/FoundProcessOnPort.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FoundProcessOnPort extends AsyncObject {
super(port)
}

definedAsyncCall () {
asyncCall () {
return (port, callback) => {
promiseToCallback(find('port', port))(callback)
}
Expand Down
2 changes: 1 addition & 1 deletion src/Gid.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Gid extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.getgid()
}
Expand Down
2 changes: 1 addition & 1 deletion src/Hrtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Hrtime extends AsyncObject {
super(process, time)
}

definedSyncCall () {
syncCall () {
return (process, time) => {
return process.hrtime(time)
}
Expand Down
2 changes: 1 addition & 1 deletion src/IsConnected.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class IsConnected extends AsyncObject {
super(process)
}

definedSyncCall () {
syncCall () {
return (process) => {
return process.connected
}
Expand Down
2 changes: 1 addition & 1 deletion src/KilledProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class KilledProcess extends AsyncObject {
super(pid, signal)
}

definedSyncCall () {
syncCall () {
return (pid, signal) => {
if (pid) {
process.kill(pid, signal)
Expand Down
Loading