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

@dcloudio/uni-shared

Package Overview
Dependencies
Maintainers
0
Versions
577
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-4020820240920001 to 3.0.0-alpha-4030120240925001

17

dist/uni-shared.cjs.js

@@ -117,3 +117,6 @@ 'use strict';

const UVUE_BUILT_IN_TAGS = [
'object',
'ad',
'ad-content-page',
'ad-draw',
'native-view',
'loading-indicator',

@@ -1507,2 +1510,3 @@ 'list-view',

E.prototype = {
_id: 1,
on: function (name, callback, ctx) {

@@ -1513,4 +1517,5 @@ var e = this.e || (this.e = {});

ctx: ctx,
_id: this._id,
});
return this;
return this._id++;
},

@@ -1536,9 +1541,11 @@ once: function (name, callback, ctx) {

},
off: function (name, callback) {
off: function (name, event) {
var e = this.e || (this.e = {});
var evts = e[name];
var liveEvents = [];
if (evts && callback) {
if (evts && event) {
for (var i = evts.length - 1; i >= 0; i--) {
if (evts[i].fn === callback || evts[i].fn._ === callback) {
if (evts[i].fn === event ||
evts[i].fn._ === event ||
evts[i]._id === event) {
evts.splice(i, 1);

@@ -1545,0 +1552,0 @@ break;

@@ -180,6 +180,7 @@ import type { App } from 'vue';

e: Record<string, unknown>;
on: (name: EventName, callback: EventCallback, ctx?: any) => this;
once: (name: EventName, callback: EventCallback, ctx?: any) => this;
_id: number;
on: (name: EventName, callback: EventCallback, ctx?: any) => number;
once: (name: EventName, callback: EventCallback, ctx?: any) => number;
emit: (name: EventName, ...args: any[]) => this;
off: (name: EventName, callback?: EventCallback) => this;
off: (name: EventName, callback?: EventCallback | null) => this;
}

@@ -186,0 +187,0 @@

@@ -115,3 +115,6 @@ import { isHTMLTag, isSVGTag, hyphenate, camelize, normalizeStyle as normalizeStyle$1, isString, parseStringStyle, isArray, normalizeClass as normalizeClass$1, isFunction, isPlainObject, extend, capitalize } from '@vue/shared';

const UVUE_BUILT_IN_TAGS = [
'object',
'ad',
'ad-content-page',
'ad-draw',
'native-view',
'loading-indicator',

@@ -1505,2 +1508,3 @@ 'list-view',

E.prototype = {
_id: 1,
on: function (name, callback, ctx) {

@@ -1511,4 +1515,5 @@ var e = this.e || (this.e = {});

ctx: ctx,
_id: this._id,
});
return this;
return this._id++;
},

@@ -1534,9 +1539,11 @@ once: function (name, callback, ctx) {

},
off: function (name, callback) {
off: function (name, event) {
var e = this.e || (this.e = {});
var evts = e[name];
var liveEvents = [];
if (evts && callback) {
if (evts && event) {
for (var i = evts.length - 1; i >= 0; i--) {
if (evts[i].fn === callback || evts[i].fn._ === callback) {
if (evts[i].fn === event ||
evts[i].fn._ === event ||
evts[i]._id === event) {
evts.splice(i, 1);

@@ -1543,0 +1550,0 @@ break;

{
"name": "@dcloudio/uni-shared",
"version": "3.0.0-alpha-4020820240920001",
"version": "3.0.0-alpha-4030120240925001",
"description": "@dcloudio/uni-shared",

@@ -5,0 +5,0 @@ "main": "./dist/uni-shared.cjs.js",

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