chatbot-nc 2.2.23 → 2.2.24
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as jwt from 'jsonwebtoken';
|
|
1
2
|
export declare const Utils: {
|
|
2
3
|
Intents: {
|
|
3
4
|
getSessionAttributes: (intentRequest: any) => Promise<any>;
|
|
@@ -34,4 +35,5 @@ export declare const Utils: {
|
|
|
34
35
|
getWeekDayforTimeZone: (epochTime: number, timeZone?: string) => string;
|
|
35
36
|
formatUSDate: (date: Date) => string;
|
|
36
37
|
};
|
|
38
|
+
jwt: typeof jwt;
|
|
37
39
|
};
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.Utils = void 0;
|
|
4
27
|
const common_1 = require("./common");
|
|
5
28
|
const intent_1 = require("./intent");
|
|
6
29
|
const date_format_1 = require("./date-format");
|
|
30
|
+
const jwt = __importStar(require("jsonwebtoken"));
|
|
7
31
|
exports.Utils = {
|
|
8
32
|
Intents: intent_1.Intents,
|
|
9
33
|
Common: common_1.Common,
|
|
10
|
-
DateFormat: date_format_1.DateFormat
|
|
34
|
+
DateFormat: date_format_1.DateFormat,
|
|
35
|
+
jwt
|
|
11
36
|
};
|
|
12
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAAkC;AAClC,qCAAmC;AACnC,+CAA2C;AAC3C,kDAAoC;AAEvB,QAAA,KAAK,GAAG;IACjB,OAAO,EAAP,gBAAO;IACP,MAAM,EAAN,eAAM;IACN,UAAU,EAAV,wBAAU;IACV,GAAG;CACN,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as jwt from 'jsonwebtoken';
|
|
1
2
|
export declare const Utils: {
|
|
2
3
|
Intents: {
|
|
3
4
|
getSessionAttributes: (intentRequest: any) => Promise<any>;
|
|
@@ -34,4 +35,5 @@ export declare const Utils: {
|
|
|
34
35
|
getWeekDayforTimeZone: (epochTime: number, timeZone?: string) => string;
|
|
35
36
|
formatUSDate: (date: Date) => string;
|
|
36
37
|
};
|
|
38
|
+
jwt: typeof jwt;
|
|
37
39
|
};
|
package/dist/esm/utils/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Common } from "./common";
|
|
2
2
|
import { Intents } from "./intent";
|
|
3
3
|
import { DateFormat } from "./date-format";
|
|
4
|
+
import * as jwt from 'jsonwebtoken';
|
|
4
5
|
export const Utils = {
|
|
5
6
|
Intents,
|
|
6
7
|
Common,
|
|
7
|
-
DateFormat
|
|
8
|
+
DateFormat,
|
|
9
|
+
jwt
|
|
8
10
|
};
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AAEpC,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,OAAO;IACP,MAAM;IACN,UAAU;IACV,GAAG;CACN,CAAA"}
|