New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mysten/enoki

Package Overview
Dependencies
Maintainers
0
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mysten/enoki - npm Package Compare versions

Comparing version

to
0.0.0-experimental-20250311002615

16

CHANGELOG.md
# @mysten/enoki
## 0.0.0-experimental-20250306185647
## 0.0.0-experimental-20250311002615
### Minor Changes
- 8baac61: remove jose dependency
### Patch Changes
- Updated dependencies [8baac61]
- Updated dependencies [8baac61]
- @mysten/sui@0.0.0-experimental-20250311002615
## 0.4.26
### Patch Changes
- Updated dependencies [03975f4]
- @mysten/sui@0.0.0-experimental-20250306185647
- @mysten/sui@1.22.0

@@ -10,0 +22,0 @@ ## 0.4.25

7

dist/cjs/EnokiFlow.js

@@ -35,3 +35,3 @@ "use strict";

var import_utils = require("@mysten/sui/utils");
var import_jose = require("jose");
var import_zklogin = require("@mysten/sui/zklogin");
var import_nanostores = require("nanostores");

@@ -142,6 +142,3 @@ var import_encryption = require("./encryption.js");

}
const decodedJwt = (0, import_jose.decodeJwt)(jwt);
if (!decodedJwt.sub || !decodedJwt.aud || typeof decodedJwt.aud !== "string") {
throw new Error("Missing JWT data");
}
(0, import_zklogin.decodeJwt)(jwt);
const { address, salt } = await __privateGet(this, _enokiClient).getZkLogin({ jwt });

@@ -148,0 +145,0 @@ this.$zkLoginState.set({

@@ -13,3 +13,3 @@ var __typeError = (msg) => {

import { fromBase64, toBase64 } from "@mysten/sui/utils";
import { decodeJwt } from "jose";
import { decodeJwt } from "@mysten/sui/zklogin";
import { atom, onMount, onSet } from "nanostores";

@@ -119,6 +119,3 @@ import { createDefaultEncryption } from "./encryption.js";

}
const decodedJwt = decodeJwt(jwt);
if (!decodedJwt.sub || !decodedJwt.aud || typeof decodedJwt.aud !== "string") {
throw new Error("Missing JWT data");
}
decodeJwt(jwt);
const { address, salt } = await __privateGet(this, _enokiClient).getZkLogin({ jwt });

@@ -125,0 +122,0 @@ this.$zkLoginState.set({

{
"name": "@mysten/enoki",
"version": "0.0.0-experimental-20250306185647",
"version": "0.0.0-experimental-20250311002615",
"description": "TODO: Description",

@@ -47,5 +47,4 @@ "license": "Apache-2.0",

"@nanostores/react": "^0.7.2",
"jose": "^5.6.3",
"nanostores": "^0.10.3",
"@mysten/sui": "0.0.0-experimental-20250306185647"
"@mysten/sui": "0.0.0-experimental-20250311002615"
},

@@ -52,0 +51,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet