Comparing version 1.1.2 to 1.1.3
@@ -1,1 +0,1 @@ | ||
var f=Object.create;var r=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var s=t=>r(t,"__esModule",{value:!0});var F=(t,e)=>{s(t);for(var n in e)r(t,n,{get:e[n],enumerable:!0})},g=(t,e,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of h(e))!y.call(t,o)&&o!=="default"&&r(t,o,{get:()=>e[o],enumerable:!(n=l(e,o))||n.enumerable});return t},i=t=>g(s(r(t!=null?f(x(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);F(exports,{afix:()=>u});var p=i(require("fs")),a=i(require("path")),c=i(require("premove")),m=i(require("nanoid"));function u(t){let e={},n=a.default.join(__dirname,`./.afix-${(0,m.customAlphabet)("1234567890abcdef",10)()}`);p.default.mkdirSync(n);for(let o of Object.keys(t))e[o]={path:a.default.join(n,t[o][0]),content:t[o][1]},p.default.writeFileSync(e[o].path,e[o].content,"utf8");return{root:n,files:e,cleanup(){return(0,c.premove)(n)}}}0&&(module.exports={afix}); | ||
var m=Object.create;var r=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var a=t=>r(t,"__esModule",{value:!0});var F=(t,e)=>{a(t);for(var n in e)r(t,n,{get:e[n],enumerable:!0})},g=(t,e,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of h(e))!y.call(t,o)&&o!=="default"&&r(t,o,{get:()=>e[o],enumerable:!(n=l(e,o))||n.enumerable});return t},i=t=>g(a(r(t!=null?m(x(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);F(exports,{afix:()=>u});var p=i(require("fs")),s=i(require("path")),c=i(require("premove")),f=i(require("nanoid"));function u(t){let e={},n=s.default.join(process.cwd(),`./.afix-${(0,f.customAlphabet)("1234567890abcdef",10)()}`);p.default.mkdirSync(n);for(let o of Object.keys(t))e[o]={path:s.default.join(n,t[o][0]),content:t[o][1]},p.default.writeFileSync(e[o].path,e[o].content,"utf8");return{root:n,files:e,cleanup(){return(0,c.premove)(n)}}}0&&(module.exports={afix}); |
{ | ||
"name": "afix", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Tiny fixture utility.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -29,2 +29,3 @@ # afix | ||
assert.ok(fs.existsSync(fixture.root)) | ||
assert(fs.existsSync(fixture.files.config.path)) | ||
@@ -31,0 +32,0 @@ assert.equal(fs.readFileSync(fixture.files.config.path), fixture.files.config.content) |
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
3934
40