<commit_before>'use strict';

var prepend = require('prepend-child');
var select = require('dom-select');

exports.install = function (Vue, opts) {

  var dir = {
    bind: function () {
      prepend(this.el, this.get(this.expression));
    },
    update: function (value) {
<commit_msg>added error handling for missing svgs<commit_after>'use strict';

var prepend = require('prepend-child');
var select = require('dom-select');

exports.install = function (Vue, opts) {

  var dir = {
    bind: function () {

      var item = this.get(this.expression);
      if (item){
        prepend(this.el, item);
      }else{
        console.warn('[vue-svg] svg: ',this.expression,' could not be found');
      }
      
    },
    update: function (value) {

{'fraction_non_alphanumeric': 0.156, 'fraction_numerical': 0.0, 'mean_word_length': 3.0376344086021505, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7166776', 'n_tokens_mistral': 239, 'n_tokens_neox': 235, 'n_words': 60}