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

gitlab-ci-env

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitlab-ci-env - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

1

.eslintrc.json

@@ -5,2 +5,3 @@ {

"@aarongoldenthal/eslint-config-standard/jest-config",
"@aarongoldenthal/eslint-config-standard/node-config",
"@aarongoldenthal/eslint-config-standard/sonarjs-config"

@@ -7,0 +8,0 @@ ],

# Changelog
## v2.4.0 (2020-05-22)
### Changed
- Added new predefined variable in GitLab 13.0 (CI_KUBERNETES_ACTIVE)
### Fixed
- Updated to latest dependencies
## v2.3.0 (2020-04-22)

@@ -4,0 +14,0 @@

3

index.js

@@ -39,3 +39,3 @@ 'use strict';

slug: process.env.CI_ENVIRONMENT_SLUG,
url: process.env.CI_ENVIRONMENT_URL,
url: process.env.CI_ENVIRONMENT_URL
},

@@ -71,2 +71,3 @@ externalPullRequest: {

},
kubernetesActive: process.env.CI_KUBERNETES_ACTIVE,
mergeRequest: {

@@ -73,0 +74,0 @@ assignees: process.env.CI_MERGE_REQUEST_ASSIGNEES,

{
"name": "gitlab-ci-env",
"version": "2.3.0",
"version": "2.4.0",
"description": "Get built-in environment variables exposed by GitLab CI.",

@@ -11,3 +11,3 @@ "main": "index.js",

"test-all": "npm test && npm run test-var",
"lint-js": "eslint **/*.js",
"lint-js": "eslint \"**/*.js\"",
"lint-md": "markdownlint **/*.md --ignore node_modules",

@@ -38,14 +38,15 @@ "lint": "npm run lint-js && npm run lint-md",

"devDependencies": {
"@aarongoldenthal/eslint-config-standard": "^3.1.0",
"@aarongoldenthal/eslint-config-standard": "^5.0.0",
"axios": "^0.19.2",
"dotenv": "^8.2.0",
"eslint": "^6.8.0",
"eslint-plugin-jest": "^23.8.2",
"eslint": "^7.0.0",
"eslint-plugin-jest": "^23.13.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-sonarjs": "^0.5.0",
"flat": "^5.0.0",
"husky": "^4.2.5",
"invert-kv": "^3.0.0",
"jest": "^25.4.0",
"invert-kv": "^3.0.1",
"jest": "^26.0.1",
"jest-junit": "^10.0.0",
"markdownlint-cli": "^0.22.0",
"markdownlint-cli": "^0.23.1",
"tabletojson": "^2.0.4"

@@ -52,0 +53,0 @@ },

@@ -88,2 +88,3 @@ # GitLab CI Env

},
kubernetesActive: 'CI_KUBERNETES_ACTIVE',
mergeRequest: {

@@ -90,0 +91,0 @@ assignees: 'CI_MERGE_REQUEST_ASSIGNEES',

'use strict';
const dotenv = require('dotenv');
const dotenv = require('dotenv'); // eslint-disable-line node/no-unpublished-require
const fs = require('fs');

@@ -16,2 +16,3 @@

// eslint-disable-next-line max-lines-per-function
describe('gitlab-ci-env results', () => {

@@ -21,2 +22,3 @@ const testVar = (envFile) => {

// Require module after env set since cached with require
// eslint-disable-next-line node/global-require
const env = require('../index');

@@ -23,0 +25,0 @@ expect(env).toMatchSnapshot();

'use strict';
/* eslint-disable node/no-unpublished-require */
const axios = require('axios');

@@ -8,2 +9,3 @@ const dotenv = require('dotenv');

const { Tabletojson: tabletojson } = require('tabletojson');
/* eslint-enable node/no-unpublished-require */
const fs = require('fs');

@@ -21,2 +23,3 @@

// eslint-disable-next-line max-lines-per-function
describe('gitlab predefined variables', () => {

@@ -38,2 +41,3 @@ const gitLabPredefinedVarUrl = 'https://docs.gitlab.com/ee/ci/variables/predefined_variables.html';

setEnv(envNamesFile);
// eslint-disable-next-line node/global-require
const env = require('../index');

@@ -40,0 +44,0 @@ // Flatten return object and invert key/value to allow lookup by GitLab var name

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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