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

bigview-cli

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

bigview-cli - npm Package Compare versions

Comparing version 1.2.7 to 1.3.10

tpl/pagelet/const.js

23

index.js
#!/usr/bin/env node
const fse = require('fs-extra')
var fs = require("fs")

@@ -19,8 +19,21 @@ var argv = process.argv;

//
function generatePageletModule (moduleName) {
var files = fs.readdirSync(file_path + "/tpl/pagelet")
// console.log(files)
function generatePageletModule (moduleName) {
var p = file_path + "/tpl/pagelet"
var files = fs.readdirSync(p)
for(var i in files){
var file = files[i]
gOne(file, moduleName)
var stat = fs.statSync(p + '/' + file)
if (stat.isDirectory()){
console.log('copy tpl ' + current_path + '/' + moduleName + '/tpl')
fse.copy(p + '/' + file , current_path + '/' + moduleName + '/tpl', err => {
if (err) {
return console.error(err)
}
// console.log("success!")
});
} else {
gOne(file, moduleName)
}
}

@@ -27,0 +40,0 @@ }

{
"name": "bigview-cli",
"version": "1.2.7",
"version": "1.3.10",
"description": "",

@@ -17,2 +17,3 @@ "main": "index.js",

"dependencies": {
"fs-extra": "^2.0.0",
"mkdirp": "^0.5.1",

@@ -19,0 +20,0 @@ "tpl_apply": "^1.0.5"

@@ -5,26 +5,16 @@ 'use strict'

module.exports = class MyPagelet extends Pagelet {
module.exports = class QPagelet extends Pagelet {
constructor() {
super()
this.root = __dirname
this.name = '{{name}}'
this.data = {t: "测试" }
this.selector = '{{name}}'
this.location = '{{name}}'
this.tpl = 'index.html'
this.delay = 0
this.domid = '{{name}}'
}
fetch() {
let self = this
return new Promise(function(resolve, reject){
setTimeout(function() {
resolve(self.data)
}, self.delay)
})
return Promise.resolve()
}
parse() {
return Promise.resolve(this.data = {})
return Promise.resolve()
}
}
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