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

vue-inbrowser-compiler

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-inbrowser-compiler - npm Package Compare versions

Comparing version 4.44.17 to 4.44.20

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [4.44.20](https://github.com/vue-styleguidist/vue-styleguidist/compare/v4.44.19...v4.44.20) (2022-03-18)
### Bug Fixes
* create postinstall to adapt vue3 ([7de0803](https://github.com/vue-styleguidist/vue-styleguidist/commit/7de0803c670a0532af409f6798cc008ffb2e13bf))
## [4.44.17](https://github.com/vue-styleguidist/vue-styleguidist/compare/v4.44.16...v4.44.17) (2022-02-28)

@@ -8,0 +19,0 @@

26

lib/vue-inbrowser-compiler.cjs.js

@@ -7,3 +7,2 @@ 'use strict';

var buble = require('buble');
var Vue = require('vue');
var walkes = require('walkes');

@@ -15,21 +14,2 @@ var acorn = require('acorn');

function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
}
n["default"] = e;
return Object.freeze(n);
}
var Vue__namespace = /*#__PURE__*/_interopNamespace(Vue);
var walkes__default = /*#__PURE__*/_interopDefaultLegacy(walkes);

@@ -121,3 +101,2 @@

var isVue3$1 = !!Vue__namespace.h;
var buildStyles = function (styles) {

@@ -204,3 +183,3 @@ var _styles = '';

}
if (renderFunctionStart > 0 && !isVue3$1) {
if (renderFunctionStart > 0 && !vueInbrowserCompilerUtils.isVue3) {
renderFunctionStart += offset;

@@ -273,3 +252,2 @@ code = insertCreateElementFunction(code.slice(0, renderFunctionStart + 1), code.slice(renderFunctionStart + 1));

var isVue3 = !!Vue__namespace.h;
/**

@@ -330,3 +308,3 @@ * Reads the code in string and separates the javascript part and the html part

var endIndex = optionsNode.end;
if (renderIndex > 0 && !isVue3) {
if (renderIndex > 0 && !vueInbrowserCompilerUtils.isVue3) {
code = insertCreateElementFunction(code.slice(0, renderIndex + 1), code.slice(renderIndex + 1));

@@ -333,0 +311,0 @@ endIndex += JSX_ADDON_LENGTH;

@@ -1,5 +0,4 @@

import { parseComponent, isCodeVueSfc } from 'vue-inbrowser-compiler-utils';
import { parseComponent, isVue3, isCodeVueSfc } from 'vue-inbrowser-compiler-utils';
export { adaptCreateElement, addScopedStyle, concatenate, isCodeVueSfc } from 'vue-inbrowser-compiler-utils';
import { transform } from 'buble';
import * as Vue from 'vue';
import walkes from 'walkes';

@@ -93,3 +92,2 @@ import { Parser } from 'acorn';

var isVue3$1 = !!Vue.h;
var buildStyles = function (styles) {

@@ -176,3 +174,3 @@ var _styles = '';

}
if (renderFunctionStart > 0 && !isVue3$1) {
if (renderFunctionStart > 0 && !isVue3) {
renderFunctionStart += offset;

@@ -245,3 +243,2 @@ code = insertCreateElementFunction(code.slice(0, renderFunctionStart + 1), code.slice(renderFunctionStart + 1));

var isVue3 = !!Vue.h;
/**

@@ -248,0 +245,0 @@ * Reads the code in string and separates the javascript part and the html part

{
"name": "vue-inbrowser-compiler",
"version": "4.44.17",
"version": "4.44.20",
"description": "compile vue single file components right in your browser",

@@ -26,3 +26,3 @@ "module": "lib/vue-inbrowser-compiler.esm.js",

"detect-browser": "^5.2.0",
"vue-inbrowser-compiler-utils": "^4.44.17",
"vue-inbrowser-compiler-utils": "^4.44.20",
"walkes": "^0.2.1"

@@ -51,3 +51,3 @@ },

},
"gitHead": "713d792bc12ee6cbe0296787d80a2bf4af2721c2"
"gitHead": "80dca3647a335c086f3764d97276cd5d83c3970d"
}
import { transform, TransformOptions } from 'buble'
import * as Vue from 'vue'
import walkes from 'walkes'
import { isCodeVueSfc } from 'vue-inbrowser-compiler-utils'
import { isCodeVueSfc, isVue3 } from 'vue-inbrowser-compiler-utils'
import transformOneImport from './transformOneImport'

@@ -15,4 +14,2 @@ import normalizeSfcComponent, {

const isVue3 = !!(Vue as any).h
interface EvaluableComponent {

@@ -19,0 +16,0 @@ script: string

import walkes from 'walkes'
import * as Vue from 'vue'
import { parseComponent, VsgSFCDescriptor } from 'vue-inbrowser-compiler-utils'
import { parseComponent, VsgSFCDescriptor, isVue3 } from 'vue-inbrowser-compiler-utils'
import getAst from './getAst'
import transformOneImport from './transformOneImport'
const isVue3 = !!(Vue as any).h
const buildStyles = function (styles: string[] | undefined): string | undefined {

@@ -10,0 +7,0 @@ let _styles = ''

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