Socket
Socket
Sign inDemoInstall

@arktype/fs

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arktype/fs - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

8

caller.ts

@@ -43,3 +43,3 @@ import path from "node:path"

relative?: string | boolean
seperator?: string
separator?: string
}

@@ -52,3 +52,3 @@

original: string,
{ relative, seperator }: FormatFilePathOptions
{ relative, separator }: FormatFilePathOptions
) => {

@@ -65,4 +65,4 @@ let formatted = original

}
if (seperator) {
formatted = formatted.replace(new RegExp(`\\${path.sep}`, "g"), seperator)
if (separator) {
formatted = formatted.replace(new RegExp(`\\${path.sep}`, "g"), separator)
}

@@ -69,0 +69,0 @@ return formatted

@@ -156,3 +156,3 @@ import {

include: (path) => tsFileMatcher.test(path),
ignoreDirsMatching: /node_modules|dist|docgen/
ignoreDirsMatching: /node_modules|out|dist|docgen/
}

@@ -159,0 +159,0 @@

@@ -21,8 +21,8 @@ export type GetCallStackOptions = {

relative?: string | boolean;
seperator?: string;
separator?: string;
};
export declare const positionToString: (position: SourcePosition) => string;
export declare const formatFilePath: (original: string, { relative, seperator }: FormatFilePathOptions) => string;
export declare const formatFilePath: (original: string, { relative, separator }: FormatFilePathOptions) => string;
export declare const caller: (options?: CallerOfOptions) => SourcePosition;
export declare const callsAgo: (num: number, options?: Omit<CallerOfOptions, "upStackBy">) => SourcePosition;
//# sourceMappingURL=caller.d.ts.map

@@ -18,3 +18,3 @@ import path from "node:path";

export const positionToString = (position) => `line ${position.line}, character ${position.char} at path '${position.file}'`;
export const formatFilePath = (original, { relative, seperator }) => {
export const formatFilePath = (original, { relative, separator }) => {
let formatted = original;

@@ -27,4 +27,4 @@ if (original.startsWith("file:///")) {

}
if (seperator) {
formatted = formatted.replace(new RegExp(`\\${path.sep}`, "g"), seperator);
if (separator) {
formatted = formatted.replace(new RegExp(`\\${path.sep}`, "g"), separator);
}

@@ -31,0 +31,0 @@ return formatted;

@@ -100,3 +100,3 @@ import { cpSync, existsSync, lstatSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";

include: (path) => tsFileMatcher.test(path),
ignoreDirsMatching: /node_modules|dist|docgen/
ignoreDirsMatching: /node_modules|out|dist|docgen/
};

@@ -103,0 +103,0 @@ export const getSourceFilePaths = (dir = ".") => walkPaths(dir, inFileFilter);

{
"name": "@arktype/fs",
"version": "0.0.7",
"version": "0.0.8",
"author": {

@@ -14,3 +14,2 @@ "name": "David Blass",

".": {
"arktype-repo": "./main.js",
"types": "./out/main.d.ts",

@@ -20,3 +19,2 @@ "default": "./out/main.js"

"./internal/*": {
"arktype-repo": "./*",
"default": "./out/*"

@@ -26,3 +24,3 @@ }

"scripts": {
"build": "ts ../repo/build.ts"
"build": "tsx ../repo/build.ts"
},

@@ -29,0 +27,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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