New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aiot-project-templates

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aiot-project-templates - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

6

dist/index.d.ts

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

declare module "aiot-project-templates";
export default function getTemplates(basePath: string): Promise<any>
declare module "aiot-project-templates" {
function getTemplates(BasePath: string): Promise<any>
}

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

(()=>{var e=[(e,t,r)=>{const s=r(1),a=r(2),i=r(3),o={watch:"Vela","tv-h5":"MinaH5","tv-quickapp":"MinaQuickApp",phone:"QuickApp"};let l=i.resolve(__dirname,"./templates");"dev"===process.env.NODE_ENV&&(l=i.resolve(__dirname,"../templates"));let n=l;function c(e){let t=i.resolve(n,e),r=i.resolve(t,"./src/manifest.json"),s=i.resolve(t,"./manifest.json"),a=i.resolve(t,"package.json");return new Promise((async(e,o)=>{try{let o={},n=await Promise.allSettled([p(r),p(s)]);for(var l of n)"fulfilled"===l.status&&(o.type=l.value.deviceTypeList[0],o.icon=i.join(l.value.base,l.value.icon));let c=await p(a);c.privateDesc&&(o.detail=c.privateDesc),o.dest=t,e(o)}catch(e){o(e)}}))}function p(e){return new Promise((async(t,r)=>{try{if(a.existsSync(e)){let r=await s.readFile(e);r=JSON.parse(r),r.base=i.resolve(e,".."),t(r)}else r({msg:"文件不存在"})}catch(e){r(e)}}))}e.exports=function(e){return new Promise((async(t,r)=>{try{n=e||l;let r=await s.readdir(n),i=await(a=r,new Promise((async(e,t)=>{try{let t=[],r={};for(let e of a)t.push(await c(e));for(let e of t){let t=o[e.type];delete e.type;let s=e.detail||"default";delete e.detail,t&&(!r[t]&&(r[t]={}),!r[t][s]&&(r[t][s]=e))}e(r)}catch(e){t(e)}})));t(i)}catch(e){r(e)}var a}))}},e=>{"use strict";e.exports=require("fs/promises")},e=>{"use strict";e.exports=require("fs")},e=>{"use strict";e.exports=require("path")}],t={};var r=function r(s){if(t[s])return t[s].exports;var a=t[s]={exports:{}};return e[s](a,a.exports,r),a.exports}(0);module.exports=r})();
(()=>{var e=[(e,t,r)=>{const s=r(1),a=r(2),i=r(3),o={watch:"Vela","tv-h5":"MinaH5","tv-quickapp":"MinaQuickApp",phone:"QuickApp"};let l=i.resolve(__dirname,"./templates");"dev"===process.env.NODE_ENV&&(l=i.resolve(__dirname,"../templates"));let n=l;function c(e){let t=i.resolve(n,e),r=i.resolve(t,"./src/manifest.json"),s=i.resolve(t,"./manifest.json"),a=i.resolve(t,"package.json");return new Promise((async(e,o)=>{try{let o={},n=await Promise.allSettled([p(r),p(s)]);for(var l of n)"fulfilled"===l.status&&(o.type=l.value.deviceTypeList[0],o.icon=i.join(l.value.base,l.value.icon));let c=await p(a);c.privateDesc&&(o.detail=c.privateDesc),o.dest=t,e(o)}catch(e){o(e)}}))}function p(e){return new Promise((async(t,r)=>{try{if(a.existsSync(e)){let r=await s.readFile(e);r=JSON.parse(r),r.base=i.resolve(e,".."),t(r)}else r({msg:"文件不存在"})}catch(e){r(e)}}))}e.exports={getTemplates:function(e){return new Promise((async(t,r)=>{try{n=e||l;let r=await s.readdir(n),i=await(a=r,new Promise((async(e,t)=>{try{let t=[],r={};for(let e of a)t.push(await c(e));for(let e of t){let t=o[e.type];delete e.type;let s=e.detail||"default";delete e.detail,t&&(!r[t]&&(r[t]={}),!r[t][s]&&(r[t][s]=e))}e(r)}catch(e){t(e)}})));t(i)}catch(e){r(e)}var a}))}}},e=>{"use strict";e.exports=require("fs/promises")},e=>{"use strict";e.exports=require("fs")},e=>{"use strict";e.exports=require("path")}],t={};var r=function r(s){if(t[s])return t[s].exports;var a=t[s]={exports:{}};return e[s](a,a.exports,r),a.exports}(0);module.exports=r})();
//# sourceMappingURL=index.js.map
{
"name": "aiot-project-templates",
"version": "0.0.19",
"version": "0.0.20",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "author": "zhaoyinggang",

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