@ttoss/auth-core 0.2.3 → 0.3.1
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/dist/index.js
CHANGED
|
@@ -36,14 +36,14 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
36
36
|
}), mod);
|
|
37
37
|
|
|
38
38
|
// src/index.ts
|
|
39
|
-
var
|
|
40
|
-
__export(
|
|
39
|
+
var index_exports = {};
|
|
40
|
+
__export(index_exports, {
|
|
41
41
|
comparePassword: () => comparePassword,
|
|
42
42
|
decode: () => decode,
|
|
43
43
|
encode: () => encode,
|
|
44
44
|
hashPassword: () => hashPassword
|
|
45
45
|
});
|
|
46
|
-
module.exports = __toCommonJS(
|
|
46
|
+
module.exports = __toCommonJS(index_exports);
|
|
47
47
|
|
|
48
48
|
// src/encodeDecode.ts
|
|
49
49
|
var encode = obj => {
|
|
@@ -54,7 +54,7 @@ var decode = encoded => {
|
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
// src/hash.ts
|
|
57
|
-
var import_node_crypto = __toESM(require("crypto"));
|
|
57
|
+
var import_node_crypto = __toESM(require("crypto"), 1);
|
|
58
58
|
var ITERATIONS = 1e3;
|
|
59
59
|
var KEY_LENGTH = 64;
|
|
60
60
|
var DIGEST = "sha256";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/auth-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Core authentication library for ttoss",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"url": "https://github.com/ttoss/ttoss.git",
|
|
13
13
|
"directory": "packages/auth-core"
|
|
14
14
|
},
|
|
15
|
+
"type": "module",
|
|
15
16
|
"exports": {
|
|
16
17
|
".": {
|
|
17
18
|
"import": "./dist/esm/index.js",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"jest": "^29.7.0",
|
|
36
37
|
"tsup": "^8.3.5",
|
|
37
|
-
"@ttoss/config": "^1.35.
|
|
38
|
+
"@ttoss/config": "^1.35.1"
|
|
38
39
|
},
|
|
39
40
|
"keywords": [
|
|
40
41
|
"auth",
|
|
File without changes
|
|
File without changes
|