@poppinss/utils
Advanced tools
Comparing version 6.5.0-2 to 6.5.0-3
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="@types/node" resolution-mode="require"/> | ||
export { base64 } from './src/base64.js'; | ||
@@ -3,0 +3,0 @@ export { compose } from './src/compose.js'; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="@types/node" resolution-mode="require"/> | ||
declare class Base64 { | ||
@@ -3,0 +3,0 @@ encode(arrayBuffer: ArrayBuffer | SharedArrayBuffer): string; |
import { Exception } from '../exception.js'; | ||
class InvalidArgumentsException extends Exception { | ||
export class InvalidArgumentsException extends Exception { | ||
static code = 'E_INVALID_ARGUMENTS_EXCEPTION'; | ||
static status = 500; | ||
} | ||
export { InvalidArgumentsException }; |
import { Exception } from '../exception.js'; | ||
class RuntimeException extends Exception { | ||
export class RuntimeException extends Exception { | ||
static code = 'E_RUNTIME_EXCEPTION'; | ||
static status = 500; | ||
} | ||
export { RuntimeException }; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="@types/node" resolution-mode="require"/> | ||
import { ImportAllFilesOptions } from './types.js'; | ||
export declare function fsImportAll(location: string | URL, options?: ImportAllFilesOptions): Promise<any>; |
@@ -1,3 +0,3 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="@types/node" resolution-mode="require"/> | ||
import { ReadAllFilesOptions } from './types.js'; | ||
export declare function fsReadAll(location: string | URL, options?: ReadAllFilesOptions): Promise<string[]>; |
101
package.json
{ | ||
"name": "@poppinss/utils", | ||
"version": "6.5.0-2", | ||
"version": "6.5.0-3", | ||
"description": "Handy utilities for repetitive work", | ||
@@ -25,8 +25,12 @@ "main": "build/index.js", | ||
}, | ||
"engines": { | ||
"node": ">=18.16.0" | ||
}, | ||
"scripts": { | ||
"pretest": "npm run lint", | ||
"test": "npm run build:lodash && c8 npm run vscode:test", | ||
"test": "npm run build:lodash && c8 npm run quick:test", | ||
"build:lodash": "lodash include=\"pick,omit,has,get,set,unset,mergeWith,merge,size,clone,cloneDeep,toPath\" --production && move-file ./lodash.custom.min.js build/lodash/main.cjs", | ||
"vscode:test": "node --loader=ts-node/esm bin/test.ts", | ||
"quick:test": "node --loader=ts-node/esm bin/test.ts", | ||
"clean": "del-cli build", | ||
"typecheck": "tsc --noEmit", | ||
"compile": "npm run lint && npm run clean && tsc", | ||
@@ -41,12 +45,2 @@ "build": "npm run compile && npm run build:lodash", | ||
}, | ||
"c8": { | ||
"reporter": [ | ||
"text", | ||
"html" | ||
], | ||
"exclude": [ | ||
"**/build/lodash/**", | ||
"tests/**" | ||
] | ||
}, | ||
"keywords": [ | ||
@@ -59,18 +53,16 @@ "toolkit", | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.5.0", | ||
"@commitlint/config-conventional": "^17.4.4", | ||
"@japa/assert": "^1.4.1", | ||
"@japa/expect-type": "^1.0.3", | ||
"@japa/run-failed-tests": "^1.1.1", | ||
"@japa/runner": "^2.5.1", | ||
"@japa/spec-reporter": "^1.3.3", | ||
"@swc/core": "^1.3.42", | ||
"@adonisjs/eslint-config": "^1.1.6", | ||
"@adonisjs/prettier-config": "^1.1.6", | ||
"@adonisjs/tsconfig": "^1.1.6", | ||
"@commitlint/cli": "^17.6.6", | ||
"@commitlint/config-conventional": "^17.6.6", | ||
"@japa/assert": "^2.0.0-1", | ||
"@japa/expect-type": "^2.0.0-0", | ||
"@japa/runner": "^3.0.0-2", | ||
"@swc/core": "^1.3.67", | ||
"@types/fs-extra": "^11.0.1", | ||
"@types/node": "^18.15.8", | ||
"c8": "^7.13.0", | ||
"@types/node": "^20.3.2", | ||
"c8": "^8.0.0", | ||
"del-cli": "^5.0.0", | ||
"eslint": "^8.36.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-adonis": "^3.0.3", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint": "^8.43.0", | ||
"fs-extra": "^11.1.1", | ||
@@ -82,6 +74,6 @@ "github-label-sync": "^2.3.1", | ||
"move-file-cli": "^3.0.0", | ||
"np": "^7.6.4", | ||
"prettier": "^2.8.7", | ||
"np": "^8.0.4", | ||
"prettier": "^2.8.8", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.0.2" | ||
"typescript": "^5.1.6" | ||
}, | ||
@@ -93,3 +85,3 @@ "dependencies": { | ||
"bytes": "^3.1.2", | ||
"case-anything": "^2.1.10", | ||
"case-anything": "^2.1.13", | ||
"flattie": "^1.1.0", | ||
@@ -99,4 +91,4 @@ "pluralize": "^8.0.0", | ||
"secure-json-parse": "^2.7.0", | ||
"slash": "^5.0.0", | ||
"slugify": "^1.6.5", | ||
"slash": "^5.1.0", | ||
"slugify": "^1.6.6", | ||
"truncatise": "^0.0.8" | ||
@@ -112,32 +104,13 @@ }, | ||
"homepage": "https://github.com/poppinss/utils#readme", | ||
"eslintConfig": { | ||
"extends": [ | ||
"plugin:adonis/typescriptPackage", | ||
"prettier" | ||
"c8": { | ||
"reporter": [ | ||
"text", | ||
"html" | ||
], | ||
"plugins": [ | ||
"prettier" | ||
], | ||
"rules": { | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
"endOfLine": "auto" | ||
} | ||
] | ||
} | ||
"exclude": [ | ||
"**/build/lodash/**", | ||
"tests/**", | ||
"test_helpers/**" | ||
] | ||
}, | ||
"eslintIgnore": [ | ||
"build" | ||
], | ||
"prettier": { | ||
"trailingComma": "es5", | ||
"semi": false, | ||
"singleQuote": true, | ||
"useTabs": false, | ||
"quoteProps": "consistent", | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"printWidth": 100 | ||
}, | ||
"commitlint": { | ||
@@ -157,3 +130,7 @@ "extends": [ | ||
"anyBranch": false | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": "@adonisjs/eslint-config/package" | ||
}, | ||
"prettier": "@adonisjs/prettier-config" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24
98829
1122
Updatedcase-anything@^2.1.13
Updatedslash@^5.1.0
Updatedslugify@^1.6.6