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

@kdujs/canary

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kdujs/canary - npm Package Compare versions

Comparing version 3.20240304.0 to 3.20240311.0-minor.0

4

compiler-sfc/register-ts.js
if (typeof require !== 'undefined') {
require('@kdujs/compiler-sfc').registerTS(() => require('typescript'))
try {
require('@kdujs/compiler-sfc').registerTS(() => require('typescript'))
} catch (e) {}
}

@@ -22,11 +22,3 @@ 'use strict';

const compileCache = /* @__PURE__ */ new WeakMap();
function getCache(options) {
let c = compileCache.get(options != null ? options : shared.EMPTY_OBJ);
if (!c) {
c = /* @__PURE__ */ Object.create(null);
compileCache.set(options != null ? options : shared.EMPTY_OBJ, c);
}
return c;
}
const compileCache = /* @__PURE__ */ Object.create(null);
function compileToFunction(template, options) {

@@ -42,4 +34,3 @@ if (!shared.isString(template)) {

const key = template;
const cache = getCache(options);
const cached = cache[key];
const cached = compileCache[key];
if (cached) {

@@ -79,3 +70,3 @@ return cached;

render._rc = true;
return cache[key] = render;
return compileCache[key] = render;
}

@@ -82,0 +73,0 @@ runtimeDom.registerRuntimeCompiler(compileToFunction);

@@ -22,11 +22,3 @@ 'use strict';

const compileCache = /* @__PURE__ */ new WeakMap();
function getCache(options) {
let c = compileCache.get(options != null ? options : shared.EMPTY_OBJ);
if (!c) {
c = /* @__PURE__ */ Object.create(null);
compileCache.set(options != null ? options : shared.EMPTY_OBJ, c);
}
return c;
}
const compileCache = /* @__PURE__ */ Object.create(null);
function compileToFunction(template, options) {

@@ -41,4 +33,3 @@ if (!shared.isString(template)) {

const key = template;
const cache = getCache(options);
const cached = cache[key];
const cached = compileCache[key];
if (cached) {

@@ -65,3 +56,3 @@ return cached;

render._rc = true;
return cache[key] = render;
return compileCache[key] = render;
}

@@ -68,0 +59,0 @@ runtimeDom.registerRuntimeCompiler(compileToFunction);

@@ -5,3 +5,3 @@ import * as runtimeDom from '@kdujs/runtime-dom';

import { compile } from '@kdujs/compiler-dom';
import { isString, NOOP, extend, generateCodeFrame, EMPTY_OBJ } from '@kdujs/shared';
import { isString, NOOP, extend, generateCodeFrame } from '@kdujs/shared';

@@ -17,11 +17,3 @@ function initDev() {

}
const compileCache = /* @__PURE__ */ new WeakMap();
function getCache(options) {
let c = compileCache.get(options != null ? options : EMPTY_OBJ);
if (!c) {
c = /* @__PURE__ */ Object.create(null);
compileCache.set(options != null ? options : EMPTY_OBJ, c);
}
return c;
}
const compileCache = /* @__PURE__ */ Object.create(null);
function compileToFunction(template, options) {

@@ -37,4 +29,3 @@ if (!isString(template)) {

const key = template;
const cache = getCache(options);
const cached = cache[key];
const cached = compileCache[key];
if (cached) {

@@ -74,3 +65,3 @@ return cached;

render._rc = true;
return cache[key] = render;
return compileCache[key] = render;
}

@@ -77,0 +68,0 @@ registerRuntimeCompiler(compileToFunction);

@@ -51,6 +51,6 @@ import {

: T[K] extends WritableComputedRef<infer V>
? WritableComputedRefValue<V>
: T[K] extends Ref<infer V>
? RefValue<V>
: T[K]
? WritableComputedRefValue<V>
: T[K] extends Ref<infer V>
? RefValue<V>
: T[K]
}

@@ -72,15 +72,15 @@

: T[K] extends ComputedRefValue<infer V>
? ComputedRef<V>
: T[K] extends WritableComputedRefValue<infer V>
? WritableComputedRef<V>
: T[K] extends object
? T[K] extends
| Function
| Map<any, any>
| Set<any>
| WeakMap<any, any>
| WeakSet<any>
? T[K]
: ToRawRefs<T[K]>
: T[K]
? ComputedRef<V>
: T[K] extends WritableComputedRefValue<infer V>
? WritableComputedRef<V>
: T[K] extends object
? T[K] extends
| Function
| Map<any, any>
| Set<any>
| WeakMap<any, any>
| WeakSet<any>
? T[K]
: ToRawRefs<T[K]>
: T[K]
}

@@ -87,0 +87,0 @@

{
"name": "@kdujs/canary",
"version": "3.20240304.0",
"version": "3.20240311.0-minor.0",
"description": "The progressive JavaScript framework for building modern web UI.",

@@ -99,7 +99,7 @@ "main": "index.js",

"dependencies": {
"@kdujs/shared": "npm:@kdujs/shared-canary@3.20240304.0",
"@kdujs/compiler-dom": "npm:@kdujs/compiler-dom-canary@3.20240304.0",
"@kdujs/runtime-dom": "npm:@kdujs/runtime-dom-canary@3.20240304.0",
"@kdujs/compiler-sfc": "npm:@kdujs/compiler-sfc-canary@3.20240304.0",
"@kdujs/server-renderer": "npm:@kdujs/server-renderer-canary@3.20240304.0"
"@kdujs/shared": "npm:@kdujs/shared-canary@3.20240311.0-minor.0",
"@kdujs/compiler-dom": "npm:@kdujs/compiler-dom-canary@3.20240311.0-minor.0",
"@kdujs/runtime-dom": "npm:@kdujs/runtime-dom-canary@3.20240311.0-minor.0",
"@kdujs/compiler-sfc": "npm:@kdujs/compiler-sfc-canary@3.20240311.0-minor.0",
"@kdujs/server-renderer": "npm:@kdujs/server-renderer-canary@3.20240311.0-minor.0"
},

@@ -106,0 +106,0 @@ "peerDependencies": {

@@ -45,3 +45,3 @@ # kdu

- Rollup: use [@rollup/plugin-replace](https://github.com/rollup/plugins/tree/master/packages/replace)
- Lahm: configured by default, but can be overwritten using the `define` option
- Wite: configured by default, but can be overwritten using the `define` option

@@ -48,0 +48,0 @@ Note: the replacement value **must be boolean literals** and cannot be strings, otherwise the bundler/minifier will not be able to properly evaluate the conditions.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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