@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 +5 -0
- package/index.ts +23 -0
- package/package.json +1 -1
- package/types/index.d.ts +11 -12
- package/types/index.d.ts.map +1 -1
- package/index.js +0 -12
- package/status.js +0 -18
- package/types/status.d.ts +0 -19
- package/types/status.d.ts.map +0 -1
package/index.d.ts
ADDED
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
package/types/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.
|
|
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
|
package/types/status.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../status.js"],"names":[],"mappings":""}
|