2.5.0 • Published 5 years ago

idcs-webgate v2.5.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

README

This library simplifies access to Webgate REST API of IDCS project.

IDCS project backend is private and you probably do NOT want to use this package unles you are working with the author of the package.

Commands

Build:

make
or
make build

To generate documentation manually

typedoc --out public src

How to Publish to NPM

To publish to NPM the local copy must have no modified or staged content.

The following command publishes to GIT and NPM:

npm version X.Y.Z

where X.Y.Z is the next version to publish such as 1.2.3.

Conditions and effects:

  • version must NOT be the same
  • tag in the form vX.Y.Z will be created locally
  • tag will be pushed to GIT
  • Gitlab will trigger build on tag push.
  • Trusted Gitlab runner will push build artifacts to NPM.

NOTE: only tagged builds will be pushed to NPM.

Client Code

To use:

import { baseUrl, AuthLogon } from 'webgate'

baseUrl = 'https://hostname'
await AuthLogon(email, password)

HTML needs to import:

<script crossorigin defer src="webgate/index.umd.js"></script>

UMD module is in 'webgate/index.umd.js' and it exposes 'webgate' variable.

rollup.config.js needs to define exports:

exports: ['webgate'],

output: {
    globals: {
        'webgate': 'webgate'
    }
}

History

2.x.x is fetch and REST API based.

1.x.x was based on gRPC-web project.

2.5.0

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.0.0

6 years ago