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

@logto/shared

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logto/shared - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

4

lib/esm/mock-esm.d.ts

@@ -13,4 +13,4 @@ export type WithEsmMock = {

mockEsm: <T>(moduleName: string, factory: () => T) => T;
mockEsmDefault: <T_1>(moduleName: string, factory: () => T_1) => T_1;
mockEsmWithActual: <T_2>(moduleName: string, factory: () => T_2) => Promise<T_2>;
mockEsmDefault: <T>(moduleName: string, factory: () => T) => T;
mockEsmWithActual: <T>(moduleName: string, factory: () => T) => Promise<T>;
};

@@ -81,2 +81,3 @@ import UrlSet from './UrlSet.js';

readonly developmentTenantId: string;
/** @deprecated Use the built-in user default role configuration (`Roles.isDefault`) instead. */
readonly userDefaultRoleNames: string[];

@@ -90,2 +91,3 @@ readonly developmentUserId: string;

readonly databasePoolSize: number;
readonly databaseConnectionTimeout: number;
/** Case insensitive username */

@@ -92,0 +94,0 @@ readonly isCaseSensitiveUsername: boolean;

@@ -19,3 +19,3 @@ import { assertEnv, getEnv, getEnvAsStringArray, tryThat, yes } from '@silverhand/essentials';

this.isUnitTest = getEnv('NODE_ENV') === 'test';
this.isDevFeaturesEnabled = !this.isProduction || yes(getEnv('DEV_FEATURES_ENABLED')) || this.isIntegrationTest;
this.isDevFeaturesEnabled = !this.isProduction || yes(getEnv('DEV_FEATURES_ENABLED'));
this.httpsCert = process.env.HTTPS_CERT_PATH;

@@ -94,2 +94,3 @@ this.httpsKey = process.env.HTTPS_KEY_PATH;

this.developmentTenantId = getEnv('DEVELOPMENT_TENANT_ID');
/** @deprecated Use the built-in user default role configuration (`Roles.isDefault`) instead. */
this.userDefaultRoleNames = getEnvAsStringArray('USER_DEFAULT_ROLE_NAMES');

@@ -103,2 +104,3 @@ this.developmentUserId = getEnv('DEVELOPMENT_USER_ID');

this.databasePoolSize = Number(getEnv('DATABASE_POOL_SIZE', '20'));
this.databaseConnectionTimeout = Number(getEnv('DATABASE_CONNECTION_TIMEOUT', '5000'));
/** Case insensitive username */

@@ -105,0 +107,0 @@ this.isCaseSensitiveUsername = yes(getEnv('CASE_SENSITIVE_USERNAME', 'true'));

@@ -6,3 +6,3 @@ /**

*/
export declare const generateStandardId: (size?: number | undefined) => string;
export declare const generateStandardId: (size?: number) => string;
/**

@@ -13,3 +13,3 @@ * Generate a standard short id with 12 characters, including lowercase letters and numbers.

*/
export declare const generateStandardShortId: (size?: number | undefined) => string;
export declare const generateStandardShortId: (size?: number) => string;
/**

@@ -21,2 +21,2 @@ * Generate a standard secret with 32 characters, including uppercase letters, lowercase

*/
export declare const generateStandardSecret: (size?: number | undefined) => string;
export declare const generateStandardSecret: (size?: number) => string;

@@ -5,6 +5,6 @@ /**

export declare const getUserDisplayName: ({ name, username, primaryEmail, primaryPhone, }: {
name?: string | null | undefined;
username?: string | null | undefined;
primaryEmail?: string | null | undefined;
primaryPhone?: string | null | undefined;
name?: string | null;
username?: string | null;
primaryEmail?: string | null;
primaryPhone?: string | null;
}) => string | undefined;
{
"name": "@logto/shared",
"version": "3.1.1",
"version": "3.1.2",
"main": "lib/index.js",

@@ -33,8 +33,8 @@ "author": "Silverhand Inc. <contact@silverhand.io>",

"@types/node": "^20.9.5",
"@vitest/coverage-v8": "^1.4.0",
"@vitest/coverage-v8": "^2.0.0",
"eslint": "^8.56.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"typescript": "^5.3.3",
"vitest": "^1.4.0"
"typescript": "^5.5.3",
"vitest": "^2.0.0"
},

@@ -52,4 +52,4 @@ "engines": {

"dependencies": {
"@silverhand/essentials": "^2.9.0",
"chalk": "^5.0.0",
"@silverhand/essentials": "^2.9.1",
"chalk": "^5.3.0",
"find-up": "^7.0.0",

@@ -56,0 +56,0 @@ "libphonenumber-js": "^1.9.49",

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