Comparing version 3.11.0 to 3.12.0
@@ -10,18 +10,13 @@ // Licensed to the Apache Software Foundation (ASF) under one or more contributor | ||
list () { | ||
return this.client.request('GET', `namespaces`) | ||
return this.client.request('GET', 'namespaces') | ||
} | ||
get (options) { | ||
if (typeof options === 'string') { | ||
return this.client.request('GET', `namespaces/${options}`) | ||
} | ||
options = options || {} | ||
const id = options.name || options.namespace | ||
if (!id) { | ||
throw new Error('Missing mandatory parameter: id or namespace.') | ||
} | ||
return this.client.request('GET', `namespaces/${id}`) | ||
get () { | ||
let actions = this.client.request('GET', 'namespaces/_/actions') | ||
let packages = this.client.request('GET', 'namespaces/_/packages') | ||
let triggers = this.client.request('GET', 'namespaces/_/triggers') | ||
let rules = this.client.request('GET', 'namespaces/_/rules') | ||
return Promise | ||
.all([actions, packages, triggers, rules]) | ||
.then(([actions, packages, triggers, rules]) => ({actions, packages, triggers, rules})) | ||
} | ||
@@ -28,0 +23,0 @@ } |
{ | ||
"name": "openwhisk", | ||
"version": "3.11.0", | ||
"version": "3.12.0", | ||
"description": "JavaScript client library for the OpenWhisk platform", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -248,3 +248,2 @@ # OpenWhisk Client for JavaScript | ||
ow.rules.get({name: '...'}) | ||
ow.namespaces.get({name: '...'}) | ||
ow.packages.get({name: '...'}) | ||
@@ -251,0 +250,0 @@ ow.feeds.get({name: '...', trigger: '...'}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73252
1004
553