@nsshunt/stsutils 1.9.1 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export declare class STSOptionsBase {
2
+ private _options;
3
+ constructor(options?: any);
4
+ get options(): any;
5
+ }
package/index.ts ADDED
@@ -0,0 +1,23 @@
1
+ const sleep = require('./sleep.js');
2
+ const AuthUtilsBrowser = require('./authutilsbrowser.js');
3
+ //const STSOptionsBase = require('./stsoptionsbase.js');
4
+ const { AddSchema, Validate } = require('./validate.js');
5
+ const GetErrorPayload = require('./errorhandling.js');
6
+ const { OAuth2ParameterType, OIDCStandardClaim, OIDCAddressClaim, compareParameterTypes } = require('./oauth2terms.js');
7
+
8
+ export declare class status {
9
+ static readonly SUCCESS = 200;
10
+ static readonly CREATED = 201;
11
+ static readonly NO_CONTENT = 204;
12
+ static readonly BAD = 400;
13
+ static readonly UNAUTHORIZED = 401;
14
+ static readonly NOTFOUND = 404;
15
+ static readonly CONFLICT = 409;
16
+ static readonly ERROR = 500;
17
+ static readonly SERVER_ERROR_MALFORMED = 520;
18
+ }
19
+
20
+ module.exports = {
21
+ sleep, AuthUtilsBrowser, AddSchema, Validate, GetErrorPayload,
22
+ OAuth2ParameterType, OIDCStandardClaim, OIDCAddressClaim, compareParameterTypes
23
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsshunt/stsutils",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/types/index.d.ts CHANGED
@@ -1,13 +1,12 @@
1
- import sleep = require("./sleep.js");
2
- import status = require("./status.js");
3
- import STSOptionsBase = require("./stsoptionsbase.js");
4
- import AuthUtilsBrowser = require("./authutilsbrowser.js");
5
- import { AddSchema } from "./validate.js";
6
- import { Validate } from "./validate.js";
7
- import GetErrorPayload = require("./errorhandling.js");
8
- import { OAuth2ParameterType } from "./oauth2terms.js";
9
- import { OIDCStandardClaim } from "./oauth2terms.js";
10
- import { OIDCAddressClaim } from "./oauth2terms.js";
11
- import { compareParameterTypes } from "./oauth2terms.js";
12
- export { sleep, status, STSOptionsBase, AuthUtilsBrowser, AddSchema, Validate, GetErrorPayload, OAuth2ParameterType, OIDCStandardClaim, OIDCAddressClaim, compareParameterTypes };
1
+ export declare class status {
2
+ static readonly SUCCESS = 200;
3
+ static readonly CREATED = 201;
4
+ static readonly NO_CONTENT = 204;
5
+ static readonly BAD = 400;
6
+ static readonly UNAUTHORIZED = 401;
7
+ static readonly NOTFOUND = 404;
8
+ static readonly CONFLICT = 409;
9
+ static readonly ERROR = 500;
10
+ static readonly SERVER_ERROR_MALFORMED = 520;
11
+ }
13
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,OAAO,OAAO,MAAM;IAC1B,MAAM,CAAC,QAAQ,CAAC,OAAO,OAAO;IAC9B,MAAM,CAAC,QAAQ,CAAC,OAAO,OAAO;IAC9B,MAAM,CAAC,QAAQ,CAAC,UAAU,OAAO;IACjC,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO;IAC1B,MAAM,CAAC,QAAQ,CAAC,YAAY,OAAO;IACnC,MAAM,CAAC,QAAQ,CAAC,QAAQ,OAAO;IAC/B,MAAM,CAAC,QAAQ,CAAC,QAAQ,OAAO;IAC/B,MAAM,CAAC,QAAQ,CAAC,KAAK,OAAO;IAC5B,MAAM,CAAC,QAAQ,CAAC,sBAAsB,OAAO;CAC7C"}
package/index.js DELETED
@@ -1,12 +0,0 @@
1
- let sleep = require('./sleep.js');
2
- let status = require('./status.js');
3
- const AuthUtilsBrowser = require('./authutilsbrowser.js');
4
- const STSOptionsBase = require('./stsoptionsbase.js');
5
- const { AddSchema, Validate } = require('./validate.js');
6
- const GetErrorPayload = require('./errorhandling.js');
7
- const { OAuth2ParameterType, OIDCStandardClaim, OIDCAddressClaim, compareParameterTypes } = require('./oauth2terms.js');
8
-
9
- module.exports = {
10
- sleep, status, STSOptionsBase, AuthUtilsBrowser, AddSchema, Validate, GetErrorPayload,
11
- OAuth2ParameterType, OIDCStandardClaim, OIDCAddressClaim, compareParameterTypes
12
- };
package/status.js DELETED
@@ -1,18 +0,0 @@
1
- const successMessage = { status: 'success' };
2
-
3
- const errorMessage = { status: 'error' };
4
-
5
- const status = {
6
- success: 200,
7
- created: 201,
8
- nocontent: 204,
9
- bad: 400,
10
- unauthorized: 401,
11
- notfound: 404,
12
- conflict: 409,
13
- error: 500,
14
- // STS Specific Errors
15
- serverErrorMalformed: 520
16
- };
17
-
18
- module.exports = { successMessage, errorMessage, status };
package/types/status.d.ts DELETED
@@ -1,19 +0,0 @@
1
- export namespace successMessage {
2
- const status: string;
3
- }
4
- export namespace errorMessage {
5
- const status_1: string;
6
- export { status_1 as status };
7
- }
8
- export namespace status {
9
- const success: number;
10
- const created: number;
11
- const nocontent: number;
12
- const bad: number;
13
- const unauthorized: number;
14
- const notfound: number;
15
- const conflict: number;
16
- const error: number;
17
- const serverErrorMalformed: number;
18
- }
19
- //# sourceMappingURL=status.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../status.js"],"names":[],"mappings":""}