@shopify/slate-env
Advanced tools
Comparing version 1.0.0-beta.11 to 1.0.0-beta.12
@@ -331,2 +331,16 @@ const fs = require('fs'); | ||
test('the store URL environment variable does not end with a trailing slash', () => { | ||
['shop1.myshopify.com', 'shop1.myshopify.com/'].forEach((value) => { | ||
setVars( | ||
Object.assign({}, TEST_ENV, { | ||
[config.get('env.keys.store')]: value, | ||
}), | ||
); | ||
const result = slateEnv.validate(); | ||
expect(result.errors).toHaveLength( | ||
value === 'shop1.myshopify.com/' ? 1 : 0, | ||
); | ||
}); | ||
}); | ||
test('the store API password environment variable is empty', () => { | ||
@@ -333,0 +347,0 @@ setVars( |
@@ -119,2 +119,8 @@ const fs = require('fs'); | ||
); | ||
} else if (store.slice(-1) === '/') { | ||
errors.push( | ||
new Error( | ||
`${config.get('env.keys.store')} must not end with a trailing slash`, | ||
), | ||
); | ||
} | ||
@@ -121,0 +127,0 @@ |
{ | ||
"name": "@shopify/slate-env", | ||
"version": "1.0.0-beta.11", | ||
"version": "1.0.0-beta.12", | ||
"description": "Manages the environment variables which are needed by Slate to interact with Shopify servers.", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@shopify/slate-config": "1.0.0-beta.11", | ||
"@shopify/slate-config": "1.0.0-beta.12", | ||
"dotenv": "^4.0.0" | ||
@@ -17,0 +17,0 @@ }, |
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
23543
573
+ Added@shopify/slate-config@1.0.0-beta.12(transitive)
- Removed@shopify/slate-config@1.0.0-beta.11(transitive)