New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

swiss-army

Package Overview
Dependencies
Maintainers
1
Versions
318
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swiss-army - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

dist/enums/sort.enum.d.ts

3

dist/index.d.ts

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

export declare function findEmojis(str: string): string[];
import { CollectionUtil } from './utils/collection/collection.util';
export declare const Util: typeof CollectionUtil;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var emojione_1 = require("emojione");
var EMOJI_SHORTCODES = /:[a-zA-Z1-9_]+:/g;
function findEmojis(str) {
// add runtime check for use in JavaScript
if (typeof str !== 'string') {
return [];
}
return emojione_1.toShort(str).match(EMOJI_SHORTCODES) || [];
}
exports.findEmojis = findEmojis;
const collection_util_1 = require("./utils/collection/collection.util");
exports.Util = collection_util_1.CollectionUtil;
{
"name": "swiss-army",
"version": "0.0.1",
"version": "0.0.2",
"description": "",

@@ -8,3 +8,3 @@ "main": "dist/index.js",

"scripts": {
"prepublish": "npm run build",
"prepare": "npm run build",
"build": "tsc",

@@ -21,4 +21,6 @@ "test": "echo \"Error: no test specified\" && exit 1"

"@types/emojione": "^2.2.3",
"emojione": "^4.0.0"
"@types/shortid": "0.0.29",
"emojione": "^4.0.0",
"shortid": "^2.2.14"
}
}
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"outDir": "./dist",
"strict": true
}
}
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"declaration": true,
"outDir": "./dist",
"strict": true,
"strictNullChecks": false
}
}
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