🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

pear-init

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pear-init - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+6
-1
index.js

@@ -11,2 +11,3 @@ 'use strict'

const plink = require('pear-link')
const isTextFile = require('is-text-filetype')
const {

@@ -108,4 +109,8 @@ ERR_PERMISSION_REQUIRED,

const file = stamp.sync(key, fields)
const fileStream = isTextFile(file) ? stamp.stream(value, fields, shave) : Readable.from([value])
const writeStream = dst.createWriteStream(file)
const promise = pipelinePromise(stamp.stream(value, fields, shave), writeStream)
const promise = pipelinePromise(
fileStream,
writeStream
)
promise.catch((err) => {

@@ -112,0 +117,0 @@ this.push({ tag: 'error', data: err })

+2
-1
{
"name": "pear-init",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",

@@ -25,2 +25,3 @@ "type": "commonjs",

"bare-realm": "^1.0.8",
"is-text-filetype": "^1.0.0",
"localdrive": "^2.2.0",

@@ -27,0 +28,0 @@ "pear-constants": "^1.1.3",