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.4.1 to 2.5.0

10

CHANGELOG.md
# Changelog
## v2.5.0 (2020-06-22)
### Added
- Added new predefined variable in GitLab 13.1 (CI_HAS_OPEN_REQUIREMENTS) and 13.2 (CI_PROJECT_ROOT_NAMESPACE)
### Fixed
- Updated to latest dependencies
## v2.4.1 (2020-06-14)

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

2

index.js

@@ -56,2 +56,3 @@ 'use strict';

},
hasOpenRequirements: process.env.CI_HAS_OPEN_REQUIREMENTS,
isCI: process.env.CI,

@@ -127,2 +128,3 @@ job: {

repositoryLanguages: process.env.CI_PROJECT_REPOSITORY_LANGUAGES,
rootNamespace: process.env.CI_PROJECT_ROOT_NAMESPACE,
title: process.env.CI_PROJECT_TITLE,

@@ -129,0 +131,0 @@ url: process.env.CI_PROJECT_URL,

10

package.json
{
"name": "gitlab-ci-env",
"version": "2.4.1",
"version": "2.5.0",
"description": "Get built-in environment variables exposed by GitLab CI.",

@@ -37,7 +37,7 @@ "main": "index.js",

"devDependencies": {
"@aarongoldenthal/eslint-config-standard": "^5.0.0",
"@aarongoldenthal/eslint-config-standard": "^5.1.0",
"axios": "^0.19.2",
"dotenv": "^8.2.0",
"eslint": "^7.2.0",
"eslint-plugin-jest": "^23.13.2",
"eslint": "^7.3.0",
"eslint-plugin-jest": "^23.16.0",
"eslint-plugin-node": "^11.1.0",

@@ -49,3 +49,3 @@ "eslint-plugin-sonarjs": "^0.5.0",

"jest": "^26.0.1",
"jest-junit": "^10.0.0",
"jest-junit": "^11.0.1",
"markdownlint-cli": "^0.23.1",

@@ -52,0 +52,0 @@ "tabletojson": "^2.0.4"

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

},
hasOpenRequirements: 'CI_HAS_OPEN_REQUIREMENTS',
isCI: 'CI',

@@ -145,2 +146,3 @@ job: {

repositoryLanguages: 'CI_PROJECT_REPOSITORY_LANGUAGES',
rootNamespace: 'CI_PROJECT_ROOT_NAMESPACE',
title: 'CI_PROJECT_TITLE',

@@ -147,0 +149,0 @@ url: 'CI_PROJECT_URL',

@@ -26,5 +26,4 @@ 'use strict';

/* Test calls function with assertions */
/* eslint-disable jest/expect-expect */
it('should return correct results for example variables (value = name)', () => {
expect.assertions(1);
testVar('names.env');

@@ -34,2 +33,3 @@ });

it('should return correct results for commit variables', () => {
expect.assertions(1);
testVar('commit.env');

@@ -39,2 +39,3 @@ });

it('should return correct results for merge request variables', () => {
expect.assertions(1);
testVar('mergeRequest.env');

@@ -44,2 +45,3 @@ });

it('should return correct results for schedules variables', () => {
expect.assertions(1);
testVar('schedules.env');

@@ -49,5 +51,5 @@ });

it('should return correct results for tag variables', () => {
expect.assertions(1);
testVar('tag.env');
});
/* eslint-enable jest/expect-expect */
});

@@ -70,2 +70,3 @@ 'use strict';

it('should return GitLab predefined var from documentation', () => {
expect.assertions(2); // eslint-disable-line no-magic-numbers
// Check that GitLab predefined variables were properly returned, i.e. that an

@@ -80,2 +81,3 @@ // appropriate number of value were returned (within a predefined threshold)

it('should not have new variables', () => {
expect.assertions(1);
expect(newGitLabVar).toHaveLength(0);

@@ -85,4 +87,5 @@ });

it('should not have variables that have been removed', () => {
expect.assertions(1);
expect(Object.keys(deletedGitLabVar)).toHaveLength(0);
});
});

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