@otplib/preset-v11 13.0.1 → 13.0.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/README.md +4 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -32,6 +32,10 @@ const isValid = authenticator.check(token, secret);
|
|
|
32
32
|
- **Error Handling**: `check` and `verify` methods swallow errors and return `false`, matching v11 behavior.
|
|
33
33
|
- **Secret Length**: Enforces strict secret length (> 16 bytes) due to v13 core security requirements.
|
|
34
34
|
|
|
35
|
+
## Migration Guide
|
|
36
|
+
|
|
37
|
+
For a full guide on migrating to v13 refer to the [Migration Guide](https://otplib.yeojz.dev/guide/v11-adapter).
|
|
38
|
+
|
|
35
39
|
## License
|
|
36
40
|
|
|
37
41
|
[MIT](./LICENSE) © 2026 Gerald Yeo
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/types.ts":{"bytes":1715,"imports":[],"format":"esm"},"src/hotp.ts":{"bytes":3798,"imports":[{"path":"@otplib/core","kind":"import-statement","external":true},{"path":"@otplib/hotp","kind":"import-statement","external":true},{"path":"@otplib/plugin-base32-scure","kind":"import-statement","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"import-statement","external":true},{"path":"@otplib/uri","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/totp.ts":{"bytes":3953,"imports":[{"path":"@otplib/plugin-base32-scure","kind":"import-statement","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"import-statement","external":true},{"path":"@otplib/totp","kind":"import-statement","external":true},{"path":"@otplib/uri","kind":"import-statement","external":true},{"path":"src/hotp.ts","kind":"import-statement","original":"./hotp"},{"path":"src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/authenticator.ts":{"bytes":4541,"imports":[{"path":"@otplib/core","kind":"import-statement","external":true},{"path":"@otplib/plugin-base32-scure","kind":"import-statement","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"import-statement","external":true},{"path":"@otplib/totp","kind":"import-statement","external":true},{"path":"src/totp.ts","kind":"import-statement","original":"./totp"},{"path":"src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":353,"imports":[{"path":"src/authenticator.ts","kind":"import-statement","original":"./authenticator"},{"path":"src/hotp.ts","kind":"import-statement","original":"./hotp"},{"path":"src/totp.ts","kind":"import-statement","original":"./totp"},{"path":"src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"}},"outputs":{"dist/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":22624},"dist/index.cjs":{"imports":[{"path":"@otplib/core","kind":"require-call","external":true},{"path":"@otplib/plugin-base32-scure","kind":"require-call","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"require-call","external":true},{"path":"@otplib/totp","kind":"require-call","external":true},{"path":"@otplib/plugin-base32-scure","kind":"require-call","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"require-call","external":true},{"path":"@otplib/totp","kind":"require-call","external":true},{"path":"@otplib/uri","kind":"require-call","external":true},{"path":"@otplib/core","kind":"require-call","external":true},{"path":"@otplib/hotp","kind":"require-call","external":true},{"path":"@otplib/plugin-base32-scure","kind":"require-call","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"require-call","external":true},{"path":"@otplib/uri","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":418},"src/authenticator.ts":{"bytesInOutput":3390},"src/totp.ts":{"bytesInOutput":3107},"src/hotp.ts":{"bytesInOutput":2958},"src/types.ts":{"bytesInOutput":212}},"bytes":11239}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/types.ts":{"bytes":1715,"imports":[],"format":"esm"},"src/hotp.ts":{"bytes":3798,"imports":[{"path":"@otplib/core","kind":"import-statement","external":true},{"path":"@otplib/hotp","kind":"import-statement","external":true},{"path":"@otplib/plugin-base32-scure","kind":"import-statement","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"import-statement","external":true},{"path":"@otplib/uri","kind":"import-statement","external":true},{"path":"src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/totp.ts":{"bytes":3953,"imports":[{"path":"@otplib/plugin-base32-scure","kind":"import-statement","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"import-statement","external":true},{"path":"@otplib/totp","kind":"import-statement","external":true},{"path":"@otplib/uri","kind":"import-statement","external":true},{"path":"src/hotp.ts","kind":"import-statement","original":"./hotp"},{"path":"src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/authenticator.ts":{"bytes":4541,"imports":[{"path":"@otplib/core","kind":"import-statement","external":true},{"path":"@otplib/plugin-base32-scure","kind":"import-statement","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"import-statement","external":true},{"path":"@otplib/totp","kind":"import-statement","external":true},{"path":"src/totp.ts","kind":"import-statement","original":"./totp"},{"path":"src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"},"src/index.ts":{"bytes":353,"imports":[{"path":"src/authenticator.ts","kind":"import-statement","original":"./authenticator"},{"path":"src/hotp.ts","kind":"import-statement","original":"./hotp"},{"path":"src/totp.ts","kind":"import-statement","original":"./totp"},{"path":"src/types.ts","kind":"import-statement","original":"./types"}],"format":"esm"}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":22567},"dist/index.js":{"imports":[{"path":"@otplib/core","kind":"import-statement","external":true},{"path":"@otplib/plugin-base32-scure","kind":"import-statement","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"import-statement","external":true},{"path":"@otplib/totp","kind":"import-statement","external":true},{"path":"@otplib/plugin-base32-scure","kind":"import-statement","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"import-statement","external":true},{"path":"@otplib/totp","kind":"import-statement","external":true},{"path":"@otplib/uri","kind":"import-statement","external":true},{"path":"@otplib/core","kind":"import-statement","external":true},{"path":"@otplib/hotp","kind":"import-statement","external":true},{"path":"@otplib/plugin-base32-scure","kind":"import-statement","external":true},{"path":"@otplib/plugin-crypto-noble","kind":"import-statement","external":true},{"path":"@otplib/uri","kind":"import-statement","external":true}],"exports":["Authenticator","HOTP","HashAlgorithms","KeyEncodings","TOTP","authenticator","hotp","totp"],"entryPoint":"src/index.ts","inputs":{"src/authenticator.ts":{"bytesInOutput":3400},"src/totp.ts":{"bytesInOutput":3119},"src/hotp.ts":{"bytesInOutput":2904},"src/types.ts":{"bytesInOutput":212},"src/index.ts":{"bytesInOutput":87}},"bytes":9980}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@otplib/preset-v11",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.2",
|
|
4
4
|
"description": "v11 compatibility preset for otplib",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Gerald Yeo <support@yeojz.dev>",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"LICENSE"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@otplib/core": "13.0.
|
|
51
|
-
"@otplib/totp": "13.0.
|
|
52
|
-
"@otplib/
|
|
53
|
-
"@otplib/
|
|
54
|
-
"@otplib/
|
|
55
|
-
"@otplib/plugin-
|
|
50
|
+
"@otplib/core": "13.0.2",
|
|
51
|
+
"@otplib/totp": "13.0.2",
|
|
52
|
+
"@otplib/uri": "13.0.2",
|
|
53
|
+
"@otplib/plugin-crypto-noble": "13.0.2",
|
|
54
|
+
"@otplib/hotp": "13.0.2",
|
|
55
|
+
"@otplib/plugin-base32-scure": "13.0.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"tsup": "^8.0.1",
|