<commit_before><commit_msg>Added script to update npm packages in all services<commit_after>#!/usr/bin/env bash

package="${1:?you must enter the pacakge version}"
webOnly=${2-0}

frontendDirs="
../peek-mobile/peek_mobile/build-web
../peek-desktop/peek_desktop/build-web
../peek-admin/peek_admin/build-web
"

if [ ${webOnly} == 0 ]; then
    frontendDirs=" $frontendDirs ../peek-mobile/peek_mobile/build-ns"
fi

for x in $frontendDirs; do
    (cd $x && npm install --save $package)
done

{'fraction_non_alphanumeric': 0.15811088295687886, 'fraction_numerical': 0.008213552361396304, 'mean_word_length': 4.247311827956989, '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': '753593', 'n_tokens_mistral': 188, 'n_tokens_neox': 179, 'n_words': 41}