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

@architect/hydrate

Package Overview
Dependencies
Maintainers
7
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/hydrate - npm Package Compare versions

Comparing version 1.3.3-RC.2 to 1.3.3-RC.3

2

package.json
{
"name": "@architect/hydrate",
"version": "1.3.3-RC.2",
"version": "1.3.3-RC.3",
"description": "Architect dependency hydrator and shared file manager",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -63,8 +63,10 @@ let parse = require('@architect/parser')

getBasePaths('arcfile', function gotBasePaths(err, paths) {
if (err) throw err
series(paths.map(dest=> {
return function copier(callback) {
copy(path.join(dest, 'shared'), callback)
}
}), done)
if (err) done(err)
else {
series(paths.map(dest=> {
return function copier(callback) {
copy(path.join(dest, 'shared'), callback)
}
}), done)
}
})

@@ -71,0 +73,0 @@ }

@@ -20,3 +20,3 @@ let cp = require('./copy')

*/
module.exports = function copyArc(params, callback) {
module.exports = function copyStatic(params, callback) {
let {quiet} = params

@@ -71,8 +71,9 @@ let {arc} = readArc()

if (err) done(err)
series(paths.map(dest=> {
return function copier(callback) {
cp(static, path.join(dest, 'shared', 'static.json'), callback)
}
}), done)
else {
series(paths.map(dest=> {
return function copier(callback) {
cp(static, path.join(dest, 'shared', 'static.json'), callback)
}
}), done)
}
})

@@ -79,0 +80,0 @@ }

@@ -21,3 +21,3 @@ let cp = require('./copy')

*/
module.exports = function copyArc(params, callback) {
module.exports = function copyViews(params, callback) {
let {quiet} = params

@@ -24,0 +24,0 @@ let views = path.join(process.cwd(), 'src', 'views')

@@ -30,3 +30,10 @@ let fs = require('fs')

},
], callback)
], function done(err, result) {
if (err) callback(err)
else {
// Remove empty positions from series functions that skipped
result = result.filter(r => r)
callback(null, result)
}
})
}

@@ -87,3 +87,3 @@ let chalk = require('chalk')

if (deps && deps > 0 && !quiet) {
let msg = 'Finished hydrating dependencies'
let msg = 'Finished updating dependencies'
let confirm = chalk.green(msg)

@@ -95,4 +95,4 @@ update.done('Success!', confirm)

if (!deps && !quiet) {
let msg = 'Finished checks, nothing to hydrate'
update.done('Finished checks, nothing to hydrate')
let msg = 'Finished checks, nothing to update'
update.done('Finished checks, nothing to update')
result.push({raw: {stdout: msg}, term: {stdout: msg}})

@@ -99,0 +99,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