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

@vueuse/head

Package Overview
Dependencies
Maintainers
3
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vueuse/head - npm Package Compare versions

Comparing version 0.7.5 to 0.7.6

2

dist/index.d.ts

@@ -45,4 +45,4 @@ import * as vue from 'vue';

declare const renderHeadToString: (head: HeadClient) => HTMLResult;
declare const Head: vue.DefineComponent<{}, () => null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
declare const Head: vue.DefineComponent<{}, () => null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
export { HTMLResult, Head, HeadAttrs, HeadClient, HeadObject, HeadObjectPlain, HeadTag, createHead, injectHead, renderHeadToString, useHead };

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

var __create = Object.create;
var __defProp = Object.defineProperty;

@@ -8,3 +7,2 @@ var __defProps = Object.defineProperties;

var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -25,22 +23,19 @@ var __propIsEnum = Object.prototype.propertyIsEnumerable;

var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __export = (target, all) => {
__markAsModule(target);
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __reExport = (target, module2, desc) => {
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
for (let key of __getOwnPropNames(module2))
if (!__hasOwnProp.call(target, key) && key !== "default")
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return target;
return to;
};
var __toModule = (module2) => {
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
__export(exports, {
var src_exports = {};
__export(src_exports, {
Head: () => Head,

@@ -52,3 +47,4 @@ createHead: () => createHead,

});
var import_vue = __toModule(require("vue"));
module.exports = __toCommonJS(src_exports);
var import_vue = require("vue");

@@ -228,2 +224,3 @@ // src/constants.ts

let allHeadObjs = [];
let previousTags = /* @__PURE__ */ new Set();
const head = {

@@ -294,5 +291,8 @@ install(app) {

setAttrs(document.body, bodyAttrs);
for (const name of Object.keys(actualTags)) {
updateElements(document, name, actualTags[name]);
const tags = /* @__PURE__ */ new Set([...Object.keys(actualTags), ...previousTags]);
for (const tag of tags) {
updateElements(document, tag, actualTags[tag] || []);
}
previousTags.clear();
Object.keys(actualTags).forEach((i) => previousTags.add(i));
}

@@ -299,0 +299,0 @@ };

{
"name": "@vueuse/head",
"version": "0.7.5",
"version": "0.7.6",
"license": "MIT",

@@ -58,25 +58,24 @@ "description": "Document head manager for Vue 3. SSR ready.",

"devDependencies": {
"@egoist/prettier-config": "^0.1.0",
"@happy-dom/global-registrator": "^2.24.5",
"@types/node-fetch": "^2.5.8",
"@vitejs/plugin-vue": "^1.1.5",
"@vitejs/plugin-vue-jsx": "^1.0.2",
"@vue/compiler-sfc": "^3.0.7",
"@vue/server-renderer": "^3.0.5",
"ava": "^3.15.0",
"@egoist/prettier-config": "^1.0.0",
"@happy-dom/global-registrator": "^2.55.0",
"@vitejs/plugin-vue": "^2.3.1",
"@vitejs/plugin-vue-jsx": "^1.3.9",
"@vue/compiler-sfc": "^3.2.32",
"@vue/server-renderer": "^3.2.32",
"ava": "^4.2.0",
"chrome-location": "^1.2.1",
"esbuild-register": "^3.1.2",
"execa": "^5.0.0",
"happy-dom": "^2.24.5",
"husky": "^4.3.8",
"esbuild-register": "^3.3.2",
"execa": "^5.1.1",
"happy-dom": "^2.55.0",
"husky": "^7.0.4",
"kanpai": "^0.10.1",
"lint-staged": "^10.5.3",
"node-fetch": "^2.6.1",
"playwright-core": "^1.9.1",
"prettier": "^2.2.1",
"tsup": "^5.6.3",
"typescript": "^4.2.3",
"vite": "^2.0.5",
"vue": "^3.0.5",
"vue-router": "^4.0.3"
"lint-staged": "^12.3.7",
"node-fetch": "^3.2.3",
"playwright-core": "^1.21.0",
"prettier": "^2.6.2",
"tsup": "^5.12.5",
"typescript": "^4.6.3",
"vite": "^2.9.1",
"vue": "^3.2.32",
"vue-router": "^4.0.14"
},

@@ -83,0 +82,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

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