d2l-class-stream-launch-darkly-feature-converter-plugin
Advanced tools
Comparing version 1.1.0 to 2.0.0
{ | ||
"name": "d2l-class-stream-launch-darkly-feature-converter-plugin", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "", | ||
@@ -28,2 +28,3 @@ "main": "src/index.js", | ||
"ajv": "^6.12.4", | ||
"d2l-lms-instance-catalog": "0.0.2", | ||
"lodash": "^4.17.20" | ||
@@ -30,0 +31,0 @@ }, |
const _ = require( 'lodash' ); | ||
const util = require( 'util' ); | ||
const Converter = require( './Converter.js' ); | ||
@@ -6,3 +7,4 @@ const EnvironmentMapper = require( './EnvironmentMapper.js' ); | ||
const loadInstanceCatalog = require( './instanceCatalog/instanceCatalogLoader.js' ); | ||
const lmsInstanceCatalog = require( 'd2l-lms-instance-catalog' ); | ||
const loadInstanceCatalog = util.callbackify( lmsInstanceCatalog.loadFromEnvironment ); | ||
@@ -9,0 +11,0 @@ const TenantRulesMapper = require( './tenant/TenantRulesMapper.js' ); |
@@ -17,3 +17,3 @@ const _ = require( 'lodash' ); | ||
const fileUrl = formatFileUrl( path ); | ||
process.env.D2L_CLASS_STREAM_INSTANCE_CATALOG_SOURCE = fileUrl; | ||
process.env.D2L_LMS_INSTANCE_CATALOG_SOURCE = fileUrl; | ||
@@ -24,3 +24,3 @@ const options = {}; | ||
if( err ) { | ||
delete process.env.D2L_CLASS_STREAM_INSTANCE_CATALOG_SOURCE; | ||
delete process.env.D2L_LMS_INSTANCE_CATALOG_SOURCE; | ||
return done( err ); | ||
@@ -35,3 +35,3 @@ } | ||
delete process.env.D2L_CLASS_STREAM_INSTANCE_CATALOG_SOURCE; | ||
delete process.env.D2L_LMS_INSTANCE_CATALOG_SOURCE; | ||
return done(); | ||
@@ -38,0 +38,0 @@ } ); |
const assert = require( 'chai' ).assert; | ||
const EnvironmentMapper = require( '../src/EnvironmentMapper.js' ); | ||
const InstanceCatalog = require( '../src/instanceCatalog/InstanceCatalog.js' ); | ||
const InstanceCatalog = require( 'd2l-lms-instance-catalog' ).InstanceCatalog; | ||
const TenantRulesMapper = require( '../src/tenant/TenantRulesMapper.js' ); | ||
@@ -15,3 +15,6 @@ const TenantTargetsMapper = require( '../src/tenant/TenantTargetsMapper.js' ); | ||
new TenantTargetsMapper( | ||
new InstanceCatalog( new Map() ) | ||
new InstanceCatalog( | ||
new Map(), | ||
new Map() | ||
) | ||
), | ||
@@ -18,0 +21,0 @@ new TenantRulesMapper() |
const assert = require( 'chai' ).assert; | ||
const InstanceCatalog = require( '../src/instanceCatalog/InstanceCatalog.js' ); | ||
const InstanceCatalog = require( 'd2l-lms-instance-catalog' ).InstanceCatalog; | ||
const TenantRulesMapper = require( '../src/tenant/TenantRulesMapper.js' ); | ||
@@ -7,2 +7,3 @@ const VariationIndexMap = require( '../src/variations/VariationIndexMap.js' ); | ||
const instanceCatalog = new InstanceCatalog( | ||
new Map(), | ||
new Map( [ | ||
@@ -9,0 +10,0 @@ [ 'www.tenant_a.org', 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' ], |
const assert = require( 'chai' ).assert; | ||
const InstanceCatalog = require( '../src/instanceCatalog/InstanceCatalog.js' ); | ||
const InstanceCatalog = require( 'd2l-lms-instance-catalog' ).InstanceCatalog; | ||
const TenantTargetsMapper = require( '../src/tenant/TenantTargetsMapper.js' ); | ||
@@ -7,2 +7,3 @@ const VariationIndexMap = require( '../src/variations/VariationIndexMap.js' ); | ||
const instanceCatalog = new InstanceCatalog( | ||
new Map(), | ||
new Map( [ | ||
@@ -9,0 +10,0 @@ [ 'www.tenant_a.org', 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' ], |
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
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
6
65373
3
36
2598
+ Addedd2l-lms-instance-catalog@0.0.2(transitive)
+ Addedfile-url@3.0.0(transitive)