@ismartify/reactive
Advanced tools
+1
-1
@@ -1,1 +0,1 @@ | ||
| "use strict";var _=Object.create;var o=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var R=(r,t)=>{for(var n in t)o(r,n,{get:t[n],enumerable:!0})},f=(r,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of T(t))!l.call(r,i)&&i!==n&&o(r,i,{get:()=>t[i],enumerable:!(s=g(t,i))||s.enumerable});return r};var c=(r,t,n)=>(n=r!=null?_(d(r)):{},f(t||!r||!r.__esModule?o(n,"default",{value:r,enumerable:!0}):n,r)),m=r=>f(o({},"__esModule",{value:!0}),r);var x={};R(x,{ISmartifyReactive:()=>a,default:()=>p,get:()=>e.default,isReactive:()=>u,pick:()=>y.default,set:()=>h.default});module.exports=m(x);var e=c(require("lodash/get"),1),h=c(require("lodash/set"),1),y=c(require("lodash/pick"),1);function u(r){return r===null||typeof r!="object"?!1:!!r.__v_isReactive}var a=class{#t={};constructor(t){if(!t||!u(t))throw new Error("\u4F20\u5165\u7684\u5BF9\u8C61\u5FC5\u987B\u662F\u54CD\u5E94\u5F0F\u7684");this.#t=t||{},this.set("__version","ismartify-reactive@1.0.0")}raw=()=>this.#t;get=(t,n)=>(0,e.default)(this.#t,t,n);set=(t,n)=>((0,h.default)(this.#t,t,n),this);pick=t=>{if(typeof t=="string")return{[t]:(0,e.default)(this.#t,t)};{let n={};return t.forEach(s=>{n[s]=(0,e.default)(this.#t,s)}),n}};tap(t){return(t||console.log)(this.#t),this}mixin=(t,n)=>{let s=function(...i){return n(this,...i)};return this.set(`__functions.${t}`,s),this};call=(t,...n)=>{let s=this.get(`__functions.${t}`);if(!s)throw new Error(`Function ${t} not found in mixin`);return s.call(this,...n)};exec=(t,...n)=>t(this,...n)},p=a;0&&(module.exports={ISmartifyReactive,get,isReactive,pick,set}); | ||
| "use strict";var _=Object.create;var o=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;var R=(r,t)=>{for(var n in t)o(r,n,{get:t[n],enumerable:!0})},f=(r,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of T(t))!l.call(r,i)&&i!==n&&o(r,i,{get:()=>t[i],enumerable:!(s=g(t,i))||s.enumerable});return r};var c=(r,t,n)=>(n=r!=null?_(d(r)):{},f(t||!r||!r.__esModule?o(n,"default",{value:r,enumerable:!0}):n,r)),m=r=>f(o({},"__esModule",{value:!0}),r);var x={};R(x,{ISmartifyReactive:()=>a,default:()=>p,get:()=>e.default,isReactive:()=>u,pick:()=>y.default,set:()=>h.default});module.exports=m(x);var e=c(require("lodash/get.js"),1),h=c(require("lodash/set.js"),1),y=c(require("lodash/pick.js"),1);function u(r){return r===null||typeof r!="object"?!1:!!r.__v_isReactive}var a=class{#t={};constructor(t){if(!t||!u(t))throw new Error("\u4F20\u5165\u7684\u5BF9\u8C61\u5FC5\u987B\u662F\u54CD\u5E94\u5F0F\u7684");this.#t=t||{},this.set("__version","ismartify-reactive@1.0.0")}raw=()=>this.#t;get=(t,n)=>(0,e.default)(this.#t,t,n);set=(t,n)=>((0,h.default)(this.#t,t,n),this);pick=t=>{if(typeof t=="string")return{[t]:(0,e.default)(this.#t,t)};{let n={};return t.forEach(s=>{n[s]=(0,e.default)(this.#t,s)}),n}};tap(t){return(t||console.log)(this.#t),this}mixin=(t,n)=>{let s=function(...i){return n(this,...i)};return this.set(`__functions.${t}`,s),this};call=(t,...n)=>{let s=this.get(`__functions.${t}`);if(!s)throw new Error(`Function ${t} not found in mixin`);return s.call(this,...n)};exec=(t,...n)=>t(this,...n)},p=a;0&&(module.exports={ISmartifyReactive,get,isReactive,pick,set}); |
+3
-3
@@ -1,4 +0,4 @@ | ||
| export { default as get } from 'lodash/get'; | ||
| export { default as set } from 'lodash/set'; | ||
| export { default as pick } from 'lodash/pick'; | ||
| export { default as get } from 'lodash/get.js'; | ||
| export { default as set } from 'lodash/set.js'; | ||
| export { default as pick } from 'lodash/pick.js'; | ||
@@ -5,0 +5,0 @@ declare function isReactive(value: unknown): boolean; |
+3
-3
@@ -1,4 +0,4 @@ | ||
| export { default as get } from 'lodash/get'; | ||
| export { default as set } from 'lodash/set'; | ||
| export { default as pick } from 'lodash/pick'; | ||
| export { default as get } from 'lodash/get.js'; | ||
| export { default as set } from 'lodash/set.js'; | ||
| export { default as pick } from 'lodash/pick.js'; | ||
@@ -5,0 +5,0 @@ declare function isReactive(value: unknown): boolean; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| import i from"lodash/get";import c from"lodash/set";import _ from"lodash/pick";function o(s){return s===null||typeof s!="object"?!1:!!s.__v_isReactive}var e=class{#t={};constructor(t){if(!t||!o(t))throw new Error("\u4F20\u5165\u7684\u5BF9\u8C61\u5FC5\u987B\u662F\u54CD\u5E94\u5F0F\u7684");this.#t=t||{},this.set("__version","ismartify-reactive@1.0.0")}raw=()=>this.#t;get=(t,n)=>i(this.#t,t,n);set=(t,n)=>(c(this.#t,t,n),this);pick=t=>{if(typeof t=="string")return{[t]:i(this.#t,t)};{let n={};return t.forEach(r=>{n[r]=i(this.#t,r)}),n}};tap(t){return(t||console.log)(this.#t),this}mixin=(t,n)=>{let r=function(...a){return n(this,...a)};return this.set(`__functions.${t}`,r),this};call=(t,...n)=>{let r=this.get(`__functions.${t}`);if(!r)throw new Error(`Function ${t} not found in mixin`);return r.call(this,...n)};exec=(t,...n)=>t(this,...n)},T=e;export{e as ISmartifyReactive,T as default,i as get,o as isReactive,_ as pick,c as set}; | ||
| import i from"lodash/get.js";import c from"lodash/set.js";import _ from"lodash/pick.js";function o(s){return s===null||typeof s!="object"?!1:!!s.__v_isReactive}var e=class{#t={};constructor(t){if(!t||!o(t))throw new Error("\u4F20\u5165\u7684\u5BF9\u8C61\u5FC5\u987B\u662F\u54CD\u5E94\u5F0F\u7684");this.#t=t||{},this.set("__version","ismartify-reactive@1.0.0")}raw=()=>this.#t;get=(t,n)=>i(this.#t,t,n);set=(t,n)=>(c(this.#t,t,n),this);pick=t=>{if(typeof t=="string")return{[t]:i(this.#t,t)};{let n={};return t.forEach(r=>{n[r]=i(this.#t,r)}),n}};tap(t){return(t||console.log)(this.#t),this}mixin=(t,n)=>{let r=function(...a){return n(this,...a)};return this.set(`__functions.${t}`,r),this};call=(t,...n)=>{let r=this.get(`__functions.${t}`);if(!r)throw new Error(`Function ${t} not found in mixin`);return r.call(this,...n)};exec=(t,...n)=>t(this,...n)},T=e;export{e as ISmartifyReactive,T as default,i as get,o as isReactive,_ as pick,c as set}; |
+1
-1
| { | ||
| "name": "@ismartify/reactive", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
21418
0.17%