gatsby-plugin-config
Advanced tools
Comparing version 1.0.6 to 1.0.7
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -10,8 +8,14 @@ value: true | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread")); | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } | ||
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
var PREFIX = 'GATSBY_'; | ||
@@ -22,7 +26,7 @@ | ||
var _ref2 = (0, _slicedToArray2.default)(_ref, 2), | ||
var _ref2 = _slicedToArray(_ref, 2), | ||
key = _ref2[0], | ||
value = _ref2[1]; | ||
return (0, _objectSpread2.default)({}, value !== '' && (_ref3 = {}, (0, _defineProperty2.default)(_ref3, key, value), (0, _defineProperty2.default)(_ref3, key.replace(new RegExp("^".concat(PREFIX)), ''), value), _ref3), acc); | ||
return _objectSpread({}, value !== '' && (_ref3 = {}, _defineProperty(_ref3, key, value), _defineProperty(_ref3, key.replace(new RegExp("^".concat(PREFIX)), ''), value), _ref3), acc); | ||
} | ||
@@ -29,0 +33,0 @@ |
{ | ||
"name": "gatsby-plugin-config", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Gatsby config", | ||
@@ -28,3 +28,2 @@ "main": "lib/index.js", | ||
"@babel/core": "7.1.2", | ||
"@babel/plugin-proposal-class-properties": "7.1.0", | ||
"@babel/plugin-proposal-object-rest-spread": "7.0.0", | ||
@@ -31,0 +30,0 @@ "@babel/plugin-transform-runtime": "7.1.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
6990
9
7
43
1