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

@featurepeek/circleci

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@featurepeek/circleci - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

32

index.js
#!/usr/bin/env node
const request = require('request')
const yaml = require('js-yaml')
const walkBack = require('walk-back')
const fs = require('fs')
// console.log(process.argv)
// console.log(process.env)
if (process.argv.length <= 2) {
console.log('Not enough arguments.')
console.log('Usage: featurepeek <ARTIFACTS_PATH>')
process.exit()
}
const FEATUREPEEK_ENDPOINT = 'https://api.featurepeek.com/api/v1/peek'

@@ -23,4 +17,22 @@ const CI_HOST = 'circleci.com'

const build = process.env.CIRCLE_BUILD_NUM
const dirDepth = process.argv[2].replace(/^\.\//, '').split('/').length
let config
try {
const peekFile = walkBack('.', 'peek.yaml')
if (!peekFile) {
console.log('Error: No peek.yaml file could be found.');
process.exit()
}
config = yaml.safeLoad(fs.readFileSync(peekFile, 'utf8'))
console.log(config)
} catch (error) {
console.log(error)
process.exit()
}
const dirDepth = config.staticBuildPath.replace(/^\.\//, '').split('/').length
const artifactsBaseURL = `https://${CI_HOST}/api/v${CI_VERSION}/project/${VCS}/${org}/${repo}/${build}/artifacts`

@@ -27,0 +39,0 @@

{
"private": false,
"name": "@featurepeek/circleci",
"version": "0.0.9",
"version": "0.0.10",
"main": "index.js",

@@ -11,5 +11,7 @@ "bin": {

"dependencies": {
"request": "^2.88.0"
"js-yaml": "^3.12.2",
"request": "^2.88.0",
"walk-back": "^3.0.1"
},
"gitHead": "c27a5783cfe181fcda918151787d362ed95de9e2"
"gitHead": "3858b58cea0472502f5644eeb8ef176145e980ed"
}
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