swiss-army
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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 | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9637
18
264
4
1
+ Added@types/shortid@0.0.29
+ Addedshortid@^2.2.14
+ Added@types/shortid@0.0.29(transitive)
+ Addednanoid@3.3.8(transitive)
+ Addedshortid@2.2.17(transitive)