New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@stackframe/stack-shared

Package Overview
Dependencies
Maintainers
2
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackframe/stack-shared - npm Package Compare versions

Comparing version
2.8.5
to
2.8.6
+6
-0
CHANGELOG.md
# @stackframe/stack-shared
## 2.8.6
### Patch Changes
- Various changes
## 2.8.5

@@ -4,0 +10,0 @@

+28
-1

@@ -251,5 +251,32 @@ import * as yup from "yup";

// eslint-disable-next-line no-restricted-syntax
export const strictEmailSchema = (message) => yupString().email(message).matches(/^[^.].*@.*\.[^.][^.]+$/, message);
export const strictEmailSchema = (message) => yupString().email(message).matches(/^[^.]+(\.[^.]+)*@.*\.[^.][^.]+$/, message);
// eslint-disable-next-line no-restricted-syntax
export const emailSchema = yupString().email();
import.meta.vitest?.test('strictEmailSchema', ({ expect }) => {
const validEmails = [
"a@example.com",
"abc@example.com",
"a.b@example.com",
"throwaway.mail+token@example.com",
"email-alt-dash@demo-mail.com",
"test-account@weird-domain.net",
"%!~&+{}=|`#@domain.test",
"admin@a.longtldexample",
];
for (const email of validEmails) {
expect(strictEmailSchema(undefined).validateSync(email)).toBe(email);
}
const invalidEmails = [
"test@localhost",
"test@gmail",
"test@gmail.com.a",
"test@gmail.a",
"test.@example.com",
"test..test@example.com",
".test@example.com",
];
for (const email of invalidEmails) {
expect(() => strictEmailSchema(undefined).validateSync(email)).toThrow();
}
});
// Request auth

@@ -256,0 +283,0 @@ export const clientOrHigherAuthTypeSchema = yupString().oneOf(['client', 'server', 'admin']).defined();

+1
-1
{
"name": "@stackframe/stack-shared",
"version": "2.8.5",
"version": "2.8.6",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts",