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
1
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 1.0.0-rc.0 to 1.0.0-rc.1

lib/models/index.d.ts

4

lib/database/utils.d.ts

@@ -12,4 +12,4 @@ import type { SchemaValuePrimitive, SchemaValue } from '@logto/schemas';

export declare const autoSetFields: readonly ["createdAt", "updatedAt"];
export type OmitAutoSetFields<T> = Omit<T, typeof autoSetFields[number]>;
export type ExcludeAutoSetFields<T> = Exclude<T, typeof autoSetFields[number]>;
export type OmitAutoSetFields<T> = Omit<T, (typeof autoSetFields)[number]>;
export type ExcludeAutoSetFields<T> = Exclude<T, (typeof autoSetFields)[number]>;
export declare const excludeAutoSetFields: <T extends string>(fields: readonly T[]) => readonly Exclude<T, "createdAt" | "updatedAt">[];

@@ -16,0 +16,0 @@ /**

@@ -18,3 +18,2 @@ import { notFalsy } from '@silverhand/essentials';

*/
// eslint-disable-next-line complexity
export const convertToPrimitiveOrSql = (key, value) => {

@@ -21,0 +20,0 @@ if (value === null) {

@@ -45,6 +45,6 @@ import { sql } from 'slonik';

for (const value of timestampKeyEndings) {
expect(convertToPrimitiveOrSql(`${normalKey}${value}`, 12341234)).toEqual({
expect(convertToPrimitiveOrSql(`${normalKey}${value}`, 12_341_234)).toEqual({
sql: 'to_timestamp($1::double precision / 1000)',
type: SqlToken,
values: [12341234],
values: [12_341_234],
});

@@ -102,3 +102,3 @@ }

it('converts to sql per time parameter', () => {
const time = new Date(123123123);
const time = new Date(123_123_123);
expect(convertToTimestamp(time)).toEqual({

@@ -105,0 +105,0 @@ sql: 'to_timestamp($1)',

export * from './database/index.js';
export * from './utils/index.js';
export * from './models/index.js';
export * from './database/index.js';
export * from './utils/index.js';
export * from './models/index.js';
{
"name": "@logto/shared",
"version": "1.0.0-rc.0",
"version": "1.0.0-rc.1",
"main": "lib/index.js",

@@ -23,11 +23,12 @@ "author": "Silverhand Inc. <contact@silverhand.io>",

"devDependencies": {
"@silverhand/eslint-config": "1.3.0",
"@silverhand/ts-config": "1.2.1",
"@silverhand/eslint-config": "2.0.1",
"@silverhand/ts-config": "2.0.3",
"@types/jest": "^29.1.2",
"@types/node": "^18.11.18",
"eslint": "^8.21.0",
"eslint": "^8.34.0",
"jest": "^29.1.2",
"lint-staged": "^13.0.0",
"prettier": "^2.8.1",
"typescript": "^4.9.4"
"prettier": "^2.8.2",
"typescript": "^4.9.4",
"@logto/connector-kit": "1.0.0-rc.2"
},

@@ -45,7 +46,8 @@ "engines": {

"dependencies": {
"@silverhand/essentials": "2.1.0",
"@silverhand/essentials": "2.2.0",
"find-up": "^6.3.0",
"nanoid": "^4.0.0",
"slonik": "^30.0.0",
"@logto/schemas": "1.0.0-rc.0"
"@logto/core-kit": "1.0.0-rc.0",
"@logto/schemas": "1.0.0-rc.1"
},

@@ -52,0 +54,0 @@ "scripts": {

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