@power-plant/unstorage-output 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -33,7 +33,7 @@ The Power Plant monorepo is a collection of packages that are designed to work t
33
33
 
34
34
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
35
35
 
36
- [![Version](https://img.shields.io/badge/version-0.0.8-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://docs.stormsoftware.com/projects/power-plant)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/power-plant/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
36
+ [![Version](https://img.shields.io/badge/version-0.0.10-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://docs.stormsoftware.com/projects/power-plant)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/power-plant/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
37
37
 
38
38
  <!-- prettier-ignore-start -->
39
39
  <!-- markdownlint-disable -->
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("@power-plant/core"),l=require("@stryke/path"),u=require("@stryke/type-checks/is-set-string"),d=require("unstorage"),f=require("unstorage/drivers/fs-lite");f=s(f,1);var p=(0,c.defineOutput)({meta:{name:`unstorage-output`,description:`An output that writes generated documents to an Unstorage driver.`,version:`1.0`,tags:[`unstorage`],links:[{href:`https://unstorage.unjs.io`,description:`Unstorage documentation`},{href:`https://unstorage.unjs.io/drivers`,description:`Unstorage Drivers documentation`},{href:`https://github.com/unjs/unstorage`,description:`Unstorage GitHub repository`}]},output:async(e,t,n)=>{let{cwd:r,storage:i}=(0,c.useContext)(),a=t.outputStorage?t.outputStorage:t.outputPath?(0,d.createStorage)({driver:(0,f.default)({base:t.outputPath})}):i;await Promise.all(Object.values(n).map(async e=>Promise.all(e.source?.filter(e=>(0,u.isSetString)(e?.content))?.map(async n=>a.setItem((0,l.isValidFileSystemPath)(e.path)?(0,l.appendPath)(e.path,t.outputPath||r):e.path,String(n.content)))??[])))}});module.exports=p;
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("@power-plant/core"),l=require("@stryke/path"),u=require("@stryke/type-checks/is-set-string"),d=require("unstorage"),f=require("unstorage/drivers/fs-lite");f=s(f,1);var p=(0,c.defineOutput)({meta:{name:`unstorage-output`,description:`An output that writes generated documents to an Unstorage driver.`,version:`1.0`,tags:[`unstorage`],links:[{href:`https://unstorage.unjs.io`,description:`Unstorage documentation`},{href:`https://unstorage.unjs.io/drivers`,description:`Unstorage Drivers documentation`},{href:`https://github.com/unjs/unstorage`,description:`Unstorage GitHub repository`}]},output:async(e,t,n)=>{let{cwd:r,storage:i}=(0,c.useExecution)(),a=t.outputStorage?t.outputStorage:t.outputPath?(0,d.createStorage)({driver:(0,f.default)({base:t.outputPath})}):i;await Promise.all(Object.values(n).map(async e=>Promise.all(e.chunks?.filter(e=>(0,u.isSetString)(e?.content))?.map(async n=>a.setItem((0,l.isValidFileSystemPath)(e.path)?(0,l.appendPath)(e.path,t.outputPath||r):e.path,String(n.content)))??[])))}});module.exports=p;
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{defineOutput as e,useContext as t}from"@power-plant/core";import{appendPath as n,isValidFileSystemPath as r}from"@stryke/path";import{isSetString as i}from"@stryke/type-checks/is-set-string";import{createStorage as a}from"unstorage";import o from"unstorage/drivers/fs-lite";var s=e({meta:{name:`unstorage-output`,description:`An output that writes generated documents to an Unstorage driver.`,version:`1.0`,tags:[`unstorage`],links:[{href:`https://unstorage.unjs.io`,description:`Unstorage documentation`},{href:`https://unstorage.unjs.io/drivers`,description:`Unstorage Drivers documentation`},{href:`https://github.com/unjs/unstorage`,description:`Unstorage GitHub repository`}]},output:async(e,s,c)=>{let{cwd:l,storage:u}=t(),d=s.outputStorage?s.outputStorage:s.outputPath?a({driver:o({base:s.outputPath})}):u;await Promise.all(Object.values(c).map(async e=>Promise.all(e.source?.filter(e=>i(e?.content))?.map(async t=>d.setItem(r(e.path)?n(e.path,s.outputPath||l):e.path,String(t.content)))??[])))}});export{s as default};
1
+ import{defineOutput as e,useExecution as t}from"@power-plant/core";import{appendPath as n,isValidFileSystemPath as r}from"@stryke/path";import{isSetString as i}from"@stryke/type-checks/is-set-string";import{createStorage as a}from"unstorage";import o from"unstorage/drivers/fs-lite";var s=e({meta:{name:`unstorage-output`,description:`An output that writes generated documents to an Unstorage driver.`,version:`1.0`,tags:[`unstorage`],links:[{href:`https://unstorage.unjs.io`,description:`Unstorage documentation`},{href:`https://unstorage.unjs.io/drivers`,description:`Unstorage Drivers documentation`},{href:`https://github.com/unjs/unstorage`,description:`Unstorage GitHub repository`}]},output:async(e,s,c)=>{let{cwd:l,storage:u}=t(),d=s.outputStorage?s.outputStorage:s.outputPath?a({driver:o({base:s.outputPath})}):u;await Promise.all(Object.values(c).map(async e=>Promise.all(e.chunks?.filter(e=>i(e?.content))?.map(async t=>d.setItem(r(e.path)?n(e.path,s.outputPath||l):e.path,String(t.content)))??[])))}});export{s as default};
2
2
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@power-plant/unstorage-output",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "private": false,
5
5
  "description": "A Power Plant output for writing generated code to an Unstorage driver.",
6
6
  "keywords": [
@@ -67,8 +67,8 @@
67
67
  "typings": "dist/index.d.mts",
68
68
  "files": ["dist"],
69
69
  "dependencies": {
70
- "@power-plant/core": "^0.0.15",
71
- "@power-plant/schema": "^0.0.15",
70
+ "@power-plant/core": "^0.0.16",
71
+ "@power-plant/schema": "^0.0.16",
72
72
  "@stryke/convert": "^0.7.26",
73
73
  "@stryke/path": "^0.29.22",
74
74
  "@stryke/type-checks": "^0.6.28",
@@ -76,10 +76,10 @@
76
76
  "unstorage": "^1.17.5"
77
77
  },
78
78
  "devDependencies": {
79
- "@powerlines/plugin-tsdown": "^0.1.544",
79
+ "@powerlines/plugin-tsdown": "^0.1.545",
80
80
  "@types/node": "^25.9.5",
81
- "powerlines": "^0.47.143"
81
+ "powerlines": "^0.47.144"
82
82
  },
83
83
  "publishConfig": { "access": "public" },
84
- "gitHead": "53b9aaba951c67546a3774251f4ad973eccc3997"
84
+ "gitHead": "8cb4ebd50961de43b9482885f5ba5779b8ded913"
85
85
  }