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

@dcloudio/uni-shared

Package Overview
Dependencies
Maintainers
8
Versions
573
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dcloudio/uni-shared - npm Package Compare versions

Comparing version 3.0.0-alpha-3000020210524001 to 3.0.0-alpha-3000020210528002

15

dist/uni-shared.cjs.js

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

}
function initCostomDataset() {
function initCustomDataset() {
const prototype = HTMLElement.prototype;

@@ -32,4 +32,4 @@ const setAttribute = prototype.setAttribute;

}
function getCostomDataset(el) {
return Object.assign({}, el.dataset, el.__uniDataset);
function getCustomDataset(el) {
return shared.extend({}, el.dataset, el.__uniDataset);
}

@@ -49,2 +49,3 @@

function createRpx2Unit(unit, unitRatio, unitPrecision) {
// ignore: rpxCalcIncludeWidth
return (val) => val.replace(unitRE, (m, $1) => {

@@ -70,3 +71,3 @@ if (!$1) {

id,
dataset: getCostomDataset(el),
dataset: getCustomDataset(el),
offsetTop,

@@ -388,2 +389,3 @@ offsetLeft,

const UNI_SSR = '__uniSSR';
const UNI_SSR_TITLE = 'title';
const UNI_SSR_STORE = 'store';

@@ -414,2 +416,3 @@ const UNI_SSR_DATA = 'data';

exports.UNI_SSR_STORE = UNI_SSR_STORE;
exports.UNI_SSR_TITLE = UNI_SSR_TITLE;
exports.addFont = addFont;

@@ -423,6 +426,6 @@ exports.callOptions = callOptions;

exports.formatDateTime = formatDateTime;
exports.getCostomDataset = getCostomDataset;
exports.getCustomDataset = getCustomDataset;
exports.getEnvLocale = getEnvLocale;
exports.getLen = getLen;
exports.initCostomDataset = initCostomDataset;
exports.initCustomDataset = initCustomDataset;
exports.invokeArrayFns = invokeArrayFns;

@@ -429,0 +432,0 @@ exports.isBuiltInComponent = isBuiltInComponent;

6

dist/uni-shared.d.ts

@@ -49,3 +49,3 @@ import { FontFaceDescriptors } from 'css-font-loading-module';

export declare function getCostomDataset(el: HTMLElement | HTMLElementWithDataset): DOMStringMap & Record<string, any>;
export declare function getCustomDataset(el: HTMLElement | HTMLElementWithDataset): DOMStringMap & Record<string, any>;

@@ -60,3 +60,3 @@ export declare function getEnvLocale(): string;

export declare function initCostomDataset(): void;
export declare function initCustomDataset(): void;

@@ -136,4 +136,6 @@ export declare const invokeArrayFns: (fns: Function[], arg?: any) => any;

export declare const UNI_SSR_TITLE = "title";
export declare function updateElementStyle(element: HTMLElement, styles: Partial<CSSStyleDeclaration>): void;
export { }

@@ -1,2 +0,2 @@

import { camelize, isString, isHTMLTag, isSVGTag, isPlainObject, isArray } from '@vue/shared';
import { camelize, extend, isString, isHTMLTag, isSVGTag, isPlainObject, isArray } from '@vue/shared';

@@ -6,3 +6,3 @@ function formatKey(key) {

}
function initCostomDataset() {
function initCustomDataset() {
const prototype = HTMLElement.prototype;

@@ -28,4 +28,4 @@ const setAttribute = prototype.setAttribute;

}
function getCostomDataset(el) {
return Object.assign({}, el.dataset, el.__uniDataset);
function getCustomDataset(el) {
return extend({}, el.dataset, el.__uniDataset);
}

@@ -45,2 +45,3 @@

function createRpx2Unit(unit, unitRatio, unitPrecision) {
// ignore: rpxCalcIncludeWidth
return (val) => val.replace(unitRE, (m, $1) => {

@@ -66,3 +67,3 @@ if (!$1) {

id,
dataset: getCostomDataset(el),
dataset: getCustomDataset(el),
offsetTop,

@@ -384,2 +385,3 @@ offsetLeft,

const UNI_SSR = '__uniSSR';
const UNI_SSR_TITLE = 'title';
const UNI_SSR_STORE = 'store';

@@ -395,2 +397,2 @@ const UNI_SSR_DATA = 'data';

export { BUILT_IN_TAGS, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, NAVBAR_HEIGHT, ON_REACH_BOTTOM_DISTANCE, PLUS_RE, PRIMARY_COLOR, RESPONSIVE_MIN_WIDTH, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, addFont, callOptions, createRpx2Unit, debounce, decode, decodedQuery, defaultRpx2Unit, formatDateTime, getCostomDataset, getEnvLocale, getLen, initCostomDataset, invokeArrayFns, isBuiltInComponent, isCustomElement, isNativeTag, normalizeDataset, normalizeTarget, once, parseQuery, passive, plusReady, removeLeadingSlash, sanitise, scrollTo, stringifyQuery, updateElementStyle };
export { BUILT_IN_TAGS, COMPONENT_NAME_PREFIX, COMPONENT_PREFIX, COMPONENT_SELECTOR_PREFIX, NAVBAR_HEIGHT, ON_REACH_BOTTOM_DISTANCE, PLUS_RE, PRIMARY_COLOR, RESPONSIVE_MIN_WIDTH, TABBAR_HEIGHT, TAGS, UNI_SSR, UNI_SSR_DATA, UNI_SSR_GLOBAL_DATA, UNI_SSR_STORE, UNI_SSR_TITLE, addFont, callOptions, createRpx2Unit, debounce, decode, decodedQuery, defaultRpx2Unit, formatDateTime, getCustomDataset, getEnvLocale, getLen, initCustomDataset, invokeArrayFns, isBuiltInComponent, isCustomElement, isNativeTag, normalizeDataset, normalizeTarget, once, parseQuery, passive, plusReady, removeLeadingSlash, sanitise, scrollTo, stringifyQuery, updateElementStyle };
{
"name": "@dcloudio/uni-shared",
"version": "3.0.0-alpha-3000020210524001",
"version": "3.0.0-alpha-3000020210528002",
"description": "@dcloudio/uni-shared",

@@ -21,3 +21,3 @@ "main": "./dist/uni-shared.cjs.js",

},
"gitHead": "9980ff973ec932498384e9021b4b66ee4f4d269c"
"gitHead": "38f5411fbc1238e0fa41a911a7f06e22ee57541a"
}
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