New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@tangible/roller

Package Overview
Dependencies
Maintainers
3
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tangible/roller - npm Package Compare versions

Comparing version
2.1.4
to
2.1.5
+9
-7
commands/install.js

@@ -57,7 +57,9 @@ import path from 'path'

// Fallback to HTTPS instead of Git/SSH protocol
const fallbackGit = git.replace('git@github.com:', 'https://github.com/')
const fallbackGit = git
.replace('git@github.com:', 'https://github.com/')
.replace('git@bitbucket.org:', 'https://bitbucket.org/')
async function runWithFallback(command, givenOptions = {}) {
const options = {
cwd: givenOptions.cwd || parentPath,
cwd: givenOptions.cwd || parentPath
}

@@ -74,3 +76,3 @@ // console.log('Running command in path', options.cwd)

console.log(
"Git did't work with SSH protocol. Trying fallback with HTTPS.",
"Git did't work with SSH protocol. Trying fallback with HTTPS."
)

@@ -92,3 +94,3 @@ const fallbackCommand = command.replace(git, fallbackGit)

await runWithFallback(`git pull --ff-only ${git} ${branch}`, {
cwd: targetPath,
cwd: targetPath
})

@@ -99,4 +101,4 @@ } else {

{
cwd: parentPath,
},
cwd: parentPath
}
)

@@ -139,3 +141,3 @@ }

await fs.rm(targetPath, {
recursive: true,
recursive: true
})

@@ -142,0 +144,0 @@ }

@@ -14,4 +14,3 @@ import path from 'path'

const configJsFileName = 'tangible.config.js'
let configJsFileName = 'tangible.config.js'
let configJsPath = path.join(rootDir, configJsFileName)

@@ -26,3 +25,3 @@

// Child project directory
const customConfigJsPath = path.join(rootDir, name, configJsFileName)
let customConfigJsPath = path.join(rootDir, name, configJsFileName)

@@ -29,0 +28,0 @@ if (fs.existsSync(customConfigJsPath)) {

{
"name": "@tangible/roller",
"type": "module",
"version": "2.1.4",
"version": "2.1.5",
"description": "Build project assets using Rollup and ESBuild",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/tangibleinc/tangible-roller",

@@ -130,3 +130,6 @@ import path from 'path'

// Provide default aliases for Preact
/**
* Provide aliases for Preact
* https://preactjs.com/guide/v10/getting-started/#aliasing-in-rollup
*/
if (reactMode === 'preact' && !aliases.react) {

@@ -136,2 +139,4 @@ Object.assign(aliases, {

'react-dom': 'preact/compat',
'react-dom/test-utils': 'preact/test-utils',
'react/jsx-runtime': 'preact/jsx-runtime',
})

@@ -138,0 +143,0 @@ }