Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vonage/vvd-scheme

Package Overview
Dependencies
Maintainers
14
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/vvd-scheme - npm Package Compare versions

Comparing version 1.3.1 to 2.0.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# [2.0.0](https://github.com/vonage/vivid/compare/v1.3.1...v2.0.0) (2021-02-22)
## [1.3.1](https://github.com/vonage/vivid/compare/v1.3.0...v1.3.1) (2021-02-11)

@@ -2,0 +6,0 @@

10

package.json
{
"name": "@vonage/vvd-scheme",
"version": "1.3.1",
"version": "2.0.0",
"description": "Vivid scheme management service",

@@ -25,12 +25,12 @@ "author": "yinonov <yinon@hotmail.com>",

"dependencies": {
"@vonage/vvd-foundation": "^1.3.1",
"@vonage/vvd-foundation": "^2.0.0",
"tslib": "^2.0.3"
},
"devDependencies": {
"@vonage/vvd-design-tokens": "^1.3.1",
"@vonage/vvd-umbrella": "^1.0.4",
"@vonage/vvd-design-tokens": "^2.0.0",
"@vonage/vvd-umbrella": "^2.0.0",
"lit-element": "^2.4.0",
"typescript": "^4.1.3"
},
"gitHead": "eb933185dfa89b8a033d826105a7336d79b68843"
"gitHead": "8f5921543b1493e4ed4946dc84d92e01c458d764"
}

@@ -13,7 +13,7 @@ import { CSSResult } from 'lit-element';

switch (scheme) {
case PredefinedScheme.DARK:
return import('./scheme.dark.css');
case PredefinedScheme.LIGHT:
default:
return import('./scheme.light.css');
case PredefinedScheme.DARK:
return import('./scheme.dark.css');
case PredefinedScheme.LIGHT:
default:
return import('./scheme.light.css');
}

@@ -20,0 +20,0 @@ };

import { applySchemeCSS } from './vvd-scheme-style-tag-handler';
import {

@@ -8,3 +7,2 @@ pcs,

} from './os-sync.utils';
import {

@@ -16,2 +14,4 @@ SelectedDetail,

} from './vvd-scheme-foundation';
import { Emitter } from '@vonage/vvd-foundation/general-utils';
export {

@@ -23,3 +23,3 @@ SelectedDetail,

} from './vvd-scheme-foundation';
import { Emitter } from '@vonage/vvd-foundation/general-utils';
const eventBus = new Emitter(); // !refactored due to lack of support of EventTarget as a constructor (new EventTarget()) in safari 12

@@ -49,7 +49,3 @@

): SchemeOption {
return destOption
? destOption
: _selectedSchemeOption
? _selectedSchemeOption
: getDefaultSchemeOption();
return destOption || _selectedSchemeOption || getDefaultSchemeOption();
}

@@ -56,0 +52,0 @@

import { PredefinedScheme, SchemeOption } from './vvd-scheme-foundation';
import { Emitter } from '@vonage/vvd-foundation/general-utils';
export { SelectedDetail, PredefinedScheme, AutoScheme, SchemeOption, } from './vvd-scheme-foundation';
import { Emitter } from '@vonage/vvd-foundation/general-utils';
declare function getSelectedScheme(): PredefinedScheme;

@@ -5,0 +5,0 @@ declare function getSelectedSchemeOption(): SchemeOption;

import { applySchemeCSS } from './vvd-scheme-style-tag-handler';
import { pcs, getPreferedColorScheme, } from './os-sync.utils';
import { PredefinedScheme, AutoScheme, } from './vvd-scheme-foundation';
import { Emitter } from '@vonage/vvd-foundation/general-utils';
export { PredefinedScheme, AutoScheme, } from './vvd-scheme-foundation';
import { Emitter } from '@vonage/vvd-foundation/general-utils';
const eventBus = new Emitter(); // !refactored due to lack of support of EventTarget as a constructor (new EventTarget()) in safari 12

@@ -24,7 +24,3 @@ let _selectedScheme;

function getEffectiveSchemeOption(destOption = null) {
return destOption
? destOption
: _selectedSchemeOption
? _selectedSchemeOption
: getDefaultSchemeOption();
return destOption || _selectedSchemeOption || getDefaultSchemeOption();
}

@@ -31,0 +27,0 @@ async function syncWithOSSettings() {

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