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

afix

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

afix - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

global.d.ts

2

index.d.ts

@@ -15,3 +15,3 @@ export declare type Filepath = string;

files: Files;
cleanup(): boolean;
cleanup(): Promise<boolean>;
};

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

var l=Object.create;var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var c=t=>i(t,"__esModule",{value:!0});var g=(t,o)=>{c(t);for(var e in o)i(t,e,{get:o[e],enumerable:!0})},u=(t,o,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of x(o))!F.call(t,r)&&r!=="default"&&i(t,r,{get:()=>o[r],enumerable:!(e=h(o,r))||e.enumerable});return t},n=t=>u(c(i(t!=null?l(y(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);g(exports,{afix:()=>d});var p=n(require("fs")),s=n(require("path")),a=n(require("premove/sync")),m=n(require("nanoid")),f=n(require("exit-hook"));function d(t){let o={},e=s.default.join(process.cwd(),`./.afix-${(0,m.customAlphabet)("1234567890abcdef",10)()}`);p.default.mkdirSync(e);for(let r of Object.keys(t))o[r]={path:s.default.join(e,t[r][0]),content:t[r][1]},p.default.writeFileSync(o[r].path,o[r].content,"utf8");return(0,f.default)(()=>(0,a.premove)(e)),{root:e,files:o,cleanup(){return(0,a.premove)(e)}}}0&&(module.exports={afix});
var l=Object.create;var i=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var c=t=>i(t,"__esModule",{value:!0});var x=(t,o)=>{c(t);for(var e in o)i(t,e,{get:o[e],enumerable:!0})},F=(t,o,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of g(o))!u.call(t,r)&&r!=="default"&&i(t,r,{get:()=>o[r],enumerable:!(e=y(o,r))||e.enumerable});return t},n=t=>F(c(i(t!=null?l(h(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);x(exports,{afix:()=>d});var p=n(require("fs")),s=n(require("path")),a=n(require("premove")),f=n(require("nanoid")),m=n(require("graceful-goodbye"));function d(t){let o={},e=s.default.join(process.cwd(),`./.afix-${(0,f.customAlphabet)("1234567890abcdef",10)()}`);p.default.mkdirSync(e);for(let r of Object.keys(t))o[r]={path:s.default.join(e,t[r][0]),content:t[r][1]},p.default.writeFileSync(o[r].path,o[r].content,"utf8");return(0,m.default)(async()=>(0,a.premove)(e)),{root:e,files:o,cleanup(){return(0,a.premove)(e)}}}0&&(module.exports={afix});
{
"name": "afix",
"version": "1.1.4",
"version": "1.1.5",
"description": "Tiny fixture utility.",

@@ -43,3 +43,3 @@ "main": "./index.js",

"dependencies": {
"exit-hook": "^3.0.0",
"graceful-goodbye": "^1.0.0",
"nanoid": "^3.1.30",

@@ -46,0 +46,0 @@ "premove": "^4.0.0"

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