New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aliedu/common-cfgs

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aliedu/common-cfgs - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

es/index.d.ts
import { IProps } from './types';
declare const setProConfigs: (param: IProps) => void;
declare const getProConfigs: () => IProps;
declare const getProConfigs: () => any;
export { setProConfigs, getProConfigs };
import _extends from "@babel/runtime/helpers/extends";
var proConfigs = {
var defaultProConfigs = {
brandColor: '#fe6900',

@@ -14,9 +14,15 @@ mainColor: '#00a8ff',

var setProConfigs = function setProConfigs(param) {
proConfigs = _extends({}, proConfigs, param);
var curConfigs = window.commonProConfigs;
if (curConfigs && typeof curConfigs === 'object') {
window.commonProConfigs = _extends({}, curConfigs, param);
} else {
window.commonProConfigs = _extends({}, defaultProConfigs, param);
}
};
var getProConfigs = function getProConfigs() {
return proConfigs;
return window.commonProConfigs || defaultProConfigs;
};
export { setProConfigs, getProConfigs };
import { IProps } from './types';
declare const setProConfigs: (param: IProps) => void;
declare const getProConfigs: () => IProps;
declare const getProConfigs: () => any;
export { setProConfigs, getProConfigs };

@@ -10,3 +10,3 @@ "use strict";

var proConfigs = {
var defaultProConfigs = {
brandColor: '#fe6900',

@@ -23,3 +23,9 @@ mainColor: '#00a8ff',

var setProConfigs = function setProConfigs(param) {
proConfigs = (0, _extends2["default"])({}, proConfigs, param);
var curConfigs = window.commonProConfigs;
if (curConfigs && typeof curConfigs === 'object') {
window.commonProConfigs = (0, _extends2["default"])({}, curConfigs, param);
} else {
window.commonProConfigs = (0, _extends2["default"])({}, defaultProConfigs, param);
}
};

@@ -30,5 +36,5 @@

var getProConfigs = function getProConfigs() {
return proConfigs;
return window.commonProConfigs || defaultProConfigs;
};
exports.getProConfigs = getProConfigs;
{
"name": "@aliedu/common-cfgs",
"version": "1.0.1",
"version": "1.0.2",
"description": "commonCfgs",

@@ -57,3 +57,3 @@ "files": [

"license": "MIT",
"homepage": "https://unpkg.com/@aliedu/common-cfgs@1.0.1/build/index.html"
"homepage": "https://unpkg.com/@aliedu/common-cfgs@1.0.2/build/index.html"
}
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