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

runik

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runik - npm Package Compare versions

Comparing version 0.3.10 to 0.3.11

1

dist/classes/user.d.ts

@@ -13,4 +13,3 @@ import type { User as _User } from 'src/types/user.js';

updatePassword(oldPassword: string, newPassword: string): Promise<void>;
removeTotp(session: string, password: string): Promise<void>;
}
export default User;

@@ -112,16 +112,2 @@ import { request } from "undici";

}
async removeTotp(session, password) {
const { body, statusCode } = await request(`${this.endpoint}/users/totp`, {
headers: {
Authorization: session,
"Content-type": "application/json"
},
method: "DELETE",
body: JSON.stringify({ password })
});
if (statusCode !== 201) {
const json = await body.json();
throw new Error(`Runik: ${JSON.stringify(json)}`);
}
}
}

@@ -128,0 +114,0 @@ var user_default = User;

1

dist/classes/users.d.ts

@@ -37,2 +37,3 @@ import Client from './client.js';

deleteAvatar: (session: string) => Promise<void>;
removeTotp: (session: string, password: string) => Promise<void>;
};

@@ -39,0 +40,0 @@ verifyEmail(token: string): Promise<void>;

@@ -298,2 +298,19 @@ import { request } from "undici";

}
},
removeTotp: async (session, password) => {
const { body, statusCode } = await request(
`${this.endpoint}/users/totp`,
{
headers: {
Authorization: session,
"Content-type": "application/json"
},
method: "DELETE",
body: JSON.stringify({ password })
}
);
if (statusCode !== 201) {
const json = await body.json();
throw new Error(`Runik: ${JSON.stringify(json)}`);
}
}

@@ -300,0 +317,0 @@ };

{
"name": "runik",
"version": "0.3.10",
"version": "0.3.11",
"description": "SDK for Runik API",

@@ -5,0 +5,0 @@ "type": "module",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc