Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@poppinss/utils

Package Overview
Dependencies
Maintainers
2
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@poppinss/utils - npm Package Compare versions

Comparing version 6.0.1-0 to 6.1.0-0

build/src/exceptions/runtime_exception.d.ts

1

build/index.d.ts

@@ -15,3 +15,4 @@ /// <reference types="node" resolution-mode="require"/>

export { slash } from './src/slash.js';
export { RuntimeException } from './src/exceptions/runtime_exception.js';
export declare function getDirname(url: string | URL): string;
export declare function getFilename(url: string | URL): string;

@@ -16,2 +16,3 @@ import { fileURLToPath } from 'node:url';

export { slash } from './src/slash.js';
export { RuntimeException } from './src/exceptions/runtime_exception.js';
export function getDirname(url) {

@@ -18,0 +19,0 @@ return pathDirname(getFilename(url));

4

build/src/define_static_property.d.ts

@@ -1,3 +0,3 @@

declare type Constructor = new (...args: any[]) => any;
declare type AbstractConstructor = abstract new (...args: any[]) => any;
type Constructor = new (...args: any[]) => any;
type AbstractConstructor = abstract new (...args: any[]) => any;
export declare function defineStaticProperty<T extends Constructor | AbstractConstructor, Prop extends keyof T>(self: T, propertyName: Prop, { initialValue, strategy, }: {

@@ -4,0 +4,0 @@ initialValue: T[Prop];

@@ -1,2 +0,2 @@

declare type BufferSafeValue = ArrayBuffer | SharedArrayBuffer | number[] | string | {
type BufferSafeValue = ArrayBuffer | SharedArrayBuffer | number[] | string | {
valueOf(): string | object;

@@ -3,0 +3,0 @@ } | {

@@ -1,6 +0,6 @@

declare type PickKeysByValue<T, V> = {
type PickKeysByValue<T, V> = {
[K in keyof T]: T[K] extends V ? K : never;
}[keyof T];
export declare type OmitProperties<T, P> = Omit<T, PickKeysByValue<T, P>>;
declare type ScanFsBaseOptions = {
export type OmitProperties<T, P> = Omit<T, PickKeysByValue<T, P>>;
type ScanFsBaseOptions = {
ignoreMissingRoot?: boolean;

@@ -10,14 +10,14 @@ filter?: (filePath: string, index: number) => boolean;

};
export declare type ImportAllFilesOptions = ScanFsBaseOptions & {
export type ImportAllFilesOptions = ScanFsBaseOptions & {
transformKeys?: (keys: string[]) => string[];
};
export declare type ReadAllFilesOptions = ScanFsBaseOptions & {
export type ReadAllFilesOptions = ScanFsBaseOptions & {
pathType?: 'relative' | 'unixRelative' | 'absolute' | 'unixAbsolute' | 'url';
};
export declare type JSONReplacer = (this: any, key: string, value: any) => any;
export declare type JSONReviver = (this: any, key: string, value: any) => any;
export declare type Constructor = new (...args: any[]) => any;
export declare type NormalizeConstructor<T extends Constructor> = {
export type JSONReplacer = (this: any, key: string, value: any) => any;
export type JSONReviver = (this: any, key: string, value: any) => any;
export type Constructor = new (...args: any[]) => any;
export type NormalizeConstructor<T extends Constructor> = {
new (...args: any[]): InstanceType<T>;
} & Omit<T, 'constructor'>;
export {};
{
"name": "@poppinss/utils",
"version": "6.0.1-0",
"version": "6.1.0-0",
"description": "Handy utilities for repetitive work",

@@ -56,4 +56,4 @@ "main": "build/index.js",

"devDependencies": {
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@japa/assert": "^1.3.6",

@@ -64,3 +64,3 @@ "@japa/expect-type": "^1.0.2",

"@japa/spec-reporter": "^1.3.2",
"@swc/core": "^1.3.11",
"@swc/core": "^1.3.20",
"@types/fs-extra": "^9.0.13",

@@ -70,7 +70,7 @@ "@types/node": "^18.11.7",

"del-cli": "^5.0.0",
"eslint": "^8.26.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-adonis": "^3.0.3",
"eslint-plugin-prettier": "^4.2.1",
"fs-extra": "^10.1.0",
"fs-extra": "^11.0.0",
"github-label-sync": "^2.2.0",

@@ -82,5 +82,5 @@ "husky": "^8.0.1",

"np": "^7.6.2",
"prettier": "^2.7.1",
"prettier": "^2.8.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.3"
"typescript": "^4.9.3"
},

@@ -87,0 +87,0 @@ "dependencies": {

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