glpi-project / node-module-glpi Goto Github PK
View Code? Open in Web Editor NEWNode client to interact with GLPI API REST
Home Page: https://glpi-project.github.io/node-module-glpi/
License: GNU General Public License v3.0
Node client to interact with GLPI API REST
Home Page: https://glpi-project.github.io/node-module-glpi/
License: GNU General Public License v3.0
Change the continuous integration service of Circleci to Travis.
Currently a small problem arises when making a request that responds with a redirect (a response with status 300), since it is returned as it is received, without making the additional request to the indicated location. The api of the node core does not handle these behaviors by default when making a request, this I have to do it completely manually or use a third-party library (which I was avoiding).
Hi, @Gianfranco97 and @btry
I will add a bot soon, to create the project board and the label of the issues
Regards
Fail running mocha
Reference:
https://circleci.com/gh/glpi-project/node-module-glpi/127
Hi, @Naylin15
Could you add a compatibility matrix to the README file?
Similar to this format:
GLPI | 9.1.1 | 9.1.2 | 9.1.3 | 9.2.0 |
---|---|---|---|---|
GLPI API Client | 1.x.x | 1.x.x | 1.x.x | 2.0.0-dev |
Hi, @Naylin15
Please, write an article per each method of the library (https://prose.io).
Try to use common name and information for all the libraries and report issues related to missed or different information with other libraries.
/cc @Gianfranco97
Hi, @Naylin15
Could you write the documentation of the code?
And please share with us the feedback to merge in all client libraries common error messages.
Thanks.
8.0.0
to 8.0.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
eslint-plugin-node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
node/no-deprecated-api
rule (#142).no-unpublished-(bin|import|require)
rules (#115, #126).The new version differs by 8 commits.
b234dcc
8.0.1
0593c67
π¨ remove garbage
679752b
π fix no-unpublished-(require|import) false positive (fixes #126)
e2fc482
π fix no-unpublished-bin false positive (fixes #115)
0225b02
π¨ rename a function
43e3198
β disable codecov comments
62ba642
π fix no-deprecated-api error messages (#147)
153ab03
Chore: support the new rule meta.type
property (fixes #143) (#145)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
8.0.4
to 8.0.5
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
babel-loader is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
find-cache-dir
to 2.0The new version differs by 8 commits.
20c9e0e
8.0.5
de51b5d
chore: Update ava
66f92af
Remove docs mention about sourceMap option being ignored (#750)
6df8af1
Update dependencies and run all tests (#745)
2c61de5
Add node 11 and 10 (#744)
1bda840
Fix config issue in example (#708)
364387d
Merge pull request #698 from MattGurneyAMP/patch-1
98f936d
Fix license header and link
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Wrong way to use promises
const client = new GlpiRestClient(config.apirest)
client.initSessionByCredentials(config.user.name, config.user.password, config.appToken)
.then((res) => {
client.getActiveProfile()
.then((res2) => {
console.log(res2)
client.killSession()
.catch((err3) => {
console.log(err3)
})
})
.catch((err2) => {
console.log(err2)
})
})
.catch((err) => {
console.log(err)
})
Ref: #36
const client = new GlpiRestClient(config.apirest);
client.initSessionByCredentials(config.user.name, config.user.password, config.appToken)
.then((res) => {
// Do your stuff here
return client.getActiveProfile();
})
.then((res) => {
// Do your stuff here
return client.killSession();
})
.catch((err) => {
console.log(err);
});
Transpile the library of ECMAScript 6 to 5 and minify the resulting code.
5.14.0
to 5.14.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
eslint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 3 commits.
b2e94d8
5.14.1
ce129ed
Build: changelog update for 5.14.1
1d6e639
Fix: sort-keys throws Error at SpreadElement (fixes #11402) (#11403)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Hi, @Gianfranco97
Please, use this header for the copyright information.
/* --------------------------------------------------------------------
*
* LICENSE
*
* This file is part of the GLPI API Client Library for Node.js,
* a subproject of GLPI. GLPI is a free IT Asset Management.
*
* GLPI is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* GLPI is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* --------------------------------------------------------------------
* @author Gianfranco Manganiello - <[email protected]>
* @copyright (C) 2017 Teclib' and contributors.
* @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
* @link https://github.com/glpi-project/angularjs-glpi
* @link http://www.glpi-project.org/
* -------------------------------------------------------------------- */
# ---------------------------------------------------------------------
#
# LICENSE
#
# This file is part of the GLPI API Client Library for Node.js,
# a subproject of GLPI. GLPI is a free IT Asset Management.
#
# GLPI is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# GLPI is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# --------------------------------------------------------------------
# @author Gianfranco Manganiello - <[email protected]>
# @copyright (C) 2017 Teclib' and contributors.
# @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
# @link https://github.com/glpi-project/node-module-glpi
# @link http://www.glpi-project.org/
# --------------------------------------------------------------------
3.1.2
to 3.2.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
webpack-cli is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 124 commits.
6253a73
chore: v.3.2.0
0c3be76
chore: make tests pass
0b6bab3
chore: better defaults
78436ff
chore: add-on -> scaffold
3281372
chore: simplify clean-all script
b0f4a0f
chore: addon -> scaffold
82c9ea8
chore: update lockfiles
a3fe013
Merge pull request #716 from EvsChen/dist-scaffold
f9bb82d
Merge pull request #693 from lakatostamas/feature/find-config-recursively
3ec2e9d
chore: resolve conflict
83602d4
chore: update package lock and scripts
d82b016
Merge pull request #720 from rishabh3112/patch-7
4d9c847
Merge pull request #723 from eavichay/patch-1
4b2a127
docs: improve the docs (#722)
9ad8c1d
See #721
There are 124 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Hi, @btry
Could you move this repository to the @flyve-mdm org?
The idea is to create more faster the project site, and the documentation.
With owner access.
And later we can propose to the GLPI team to relocate this repository.
Thanks.
Hi, @Naylin15
Could you add a README.md file in the example folder with the information about how to install and run the example?
Thanks
Hi, @Gianfranco97
Could you create the project site of this repository?
Btw, we need to create a new Winstrap theme with the colors of the GLPI Network (blue)
Thanks
4.28.1
to 4.28.2
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 3 commits.
fe514dd
4.28.2
899eeff
Merge pull request #8542 from webpack/bugfix/ignore-externals
bc368c7
fixes #8538
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Hi, @btry and @Gianfranco97
This is the main task, create the NPM module for the GLPI API REST.
Generic for any project in the future.
For front-end (@Gianfranco97) and for the back-end (@btry)
This is an example.
https://github.com/ajsb85/angular-glpi
As requested, the information in the project sites will be migrated to the main site of GLPI Project (glpi-project.org)
Hi, @Naylin15
Please, create these files in this repository
Thank you.
Hi, @btry and @Gianfranco97
When the first version is ready, I will publish the NPM module with the scope @TECLIB to the NPM site.
2.0.1
to 2.1.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
uglifyjs-webpack-plugin is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
chunks
is a Set
in webpack@5 (#365) (bf36e21)worker-farm
errors (#380) (aa7a9fc)contenthash
when assets was minified (#386) (65a30da)The new version differs by 10 commits.
e3eff76
chore(release): 2.1.0
65a30da
fix: regenerate contenthash
when assets was minified (#386)
f61439d
fix: more consistent cache (#385)
15e38e8
refactor: update defaults
(#384)
beaf1ad
fix: dedupe extracted comments (#383)
1e58c99
feat: chunkFilter
option for filtering chunks (#382)
1282b87
docs: improve readme (#381)
aa7a9fc
fix: catch worker-farm
errors (#380)
bf36e21
fix: chunks
is a Set
in webpack@5 (#365)
96cfdb5
docs: fix github templates (#361)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Branch | Build failing π¨ |
---|---|
Dependency | webpack |
Current Version | 4.17.2 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 7 commits.
ee27d36
4.17.3
4430524
Merge pull request #7966 from webpack/refactor-remove-webpack-command-from-clis
b717aad
Show only webpack-cli in the list
c5eab67
Merge pull request #8001 from webpack/bugfix/exit-code
943aa6b
Fix exit code when multiple CLIs are installed
691cc94
Spelling
898462d
refactor: remove webpack-command
from CLIs
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Hi, @Gianfranco97
I will put here all possible errors for the library.
2.16.0
to 2.17.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
eslint-plugin-import is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 61 commits.
0499050
bump to v2.17.0
f479635
[webpack] v0.11.1
8a4226d
Merge pull request #1320 from bradzacher/export-ts-namespaces
988e12b
fix(export): Support typescript namespaces
70c3679
[docs] make rule names consistent
6ab25ea
[Tests] skip a TS test in eslint < 4
405900e
[Tests] fix tests from #1319
2098797
[fix] export
: false positives for typescript type + value export
70a59fe
[fix] Fix overwriting of dynamic import() CallExpression
e4850df
[ExportMap] fix condition for checking if block comment
918567d
[fix] namespace
: add check for null ExportMap
2d21c4c
Merge pull request #1297 from echenley/ech/fix-isBuiltIn-local-aliases
0ff1c83
[dev deps] lock typescript to ~
, since it doesnβt follow semver
40bf40a
[*] [deps] update resolve
28dd614
Merge pull request #1304 from bradennapier/feature/typescript-export-type
There are 61 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
4.0.1
to 4.1.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
eslint-plugin-promise is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
4.0.0
to 4.0.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
eslint-plugin-standard is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 8 commits.
116eb98
4.0.1
5f37f70
HACK: disable failing tests
64d4df8
standard
cfa02fc
mocha@6
093ca7a
eslint@6
900b256
Merge pull request #30 from limpid-kzonix/master
f9de5c3
add missing comma-separators in example of eslint-rules.
deb1a2a
remove gitignore
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Hi, @Naylin15
Could you change the banner of the README?
Use the banner for GLPI.
Reference: https://github.com/flyve-mdm/flyve-mdm-press-kit/issues/51
Considering your code with promises in README.md, I wonder if you understand how we use them?
You take the path to the pyramid of doom.
This is the correct way to use promises :
const client = new GlpiRestClient(config.apirest);
client.initSessionByCredentials(config.user.name, config.user.password, config.appToken)
.then((res) => {
// Do your stuff here
return client.getActiveProfile();
})
.then((res) => {
// Do your stuff here
return client.killSession();
})
.catch((err) => {
console.log(err);
});
hth
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.