9 Commits

Author SHA1 Message Date
b9791c9df4 1.0.7 2020-05-25 18:09:40 +00:00
efd901af17 fix(core): update 2020-05-25 18:09:39 +00:00
2a6fc4110e 1.0.6 2020-02-25 19:55:33 +00:00
c82bb44007 fix(core): update 2020-02-25 19:55:32 +00:00
afd8db1acf 1.0.5 2020-02-25 19:54:15 +00:00
74a08d6e39 fix(core): update 2020-02-25 19:54:15 +00:00
a92cb2e612 1.0.4 2020-02-25 19:03:42 +00:00
716ed45149 1.0.3 2020-02-25 19:02:52 +00:00
7d240b3461 fix(core): update 2020-02-25 19:02:52 +00:00
7 changed files with 2188 additions and 322 deletions

4
.gitignore vendored
View File

@@ -15,8 +15,6 @@ node_modules/
# builds # builds
dist/ dist/
dist_web/ dist_*/
dist_serve/
dist_ts_web/
# custom # custom

View File

@@ -24,13 +24,14 @@ mirror:
- docker - docker
- notpriv - notpriv
snyk: audit:
image: registry.gitlab.com/hosttoday/ht-docker-node:snyk image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security stage: security
script: script:
- npmci npm prepare - npmci npm prepare
- npmci command npm install --ignore-scripts - npmci command npm install --ignore-scripts
- npmci command snyk test - npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high
tags: tags:
- lossless - lossless
- docker - docker

2451
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,31 +1,35 @@
{ {
"name": "@pushrocks/smartmatch", "name": "@pushrocks/smartmatch",
"version": "1.0.2", "version": "1.0.7",
"private": false, "private": false,
"description": "a minimal matching library using picomatch", "description": "a minimal matching library using picomatch",
"main": "dist/index.js", "main": "dist_ts/index.js",
"typings": "dist/index.d.ts", "typings": "dist_ts/index.d.ts",
"author": "Lossless GmbH", "author": "Lossless GmbH",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/)", "test": "(tstest test/)",
"build": "(tsbuild)", "build": "(tsbuild && tsbundle npm)",
"format": "(gitzone format)" "format": "(gitzone format)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.0.22", "@gitzone/tsbuild": "^2.1.24",
"@gitzone/tsbundle": "^1.0.68",
"@gitzone/tstest": "^1.0.15", "@gitzone/tstest": "^1.0.15",
"@pushrocks/tapbundle": "^3.0.7", "@pushrocks/tapbundle": "^3.2.1",
"@types/node": "^10.11.7", "@types/node": "^14.0.5",
"tslint": "^5.11.0", "tslint": "^6.1.2",
"tslint-config-prettier": "^1.15.0" "tslint-config-prettier": "^1.15.0"
}, },
"dependencies": {}, "dependencies": {
"matcher": "^3.0.0"
},
"files": [ "files": [
"ts/**/*", "ts/**/*",
"ts_web/**/*", "ts_web/**/*",
"dist/**/*", "dist/**/*",
"dist_web/**/*", "dist_*/**/*",
"dist_ts/**/*",
"dist_ts_web/**/*", "dist_ts_web/**/*",
"assets/**/*", "assets/**/*",
"cli.js", "cli.js",

View File

@@ -2,7 +2,12 @@ import { expect, tap } from '@pushrocks/tapbundle';
import * as smartmatch from '../ts/index'; import * as smartmatch from '../ts/index';
tap.test('first test', async () => { tap.test('first test', async () => {
console.log(smartmatch.standardExport); const smartMatchInstance = new smartmatch.SmartMatch('*.any');
const isAMatch = smartMatchInstance.match('wow.any');
const isNotAMatch = smartMatchInstance.match('wow.not');
expect(isAMatch).to.be.true;
expect(isNotAMatch).to.be.false;
}); });
tap.start(); tap.start();

View File

@@ -1,3 +1,12 @@
import * as plugins from './smartmatch.plugins'; import * as plugins from './smartmatch.plugins';
export let standardExport = 'Hi there! :) This is an exported string'; export class SmartMatch {
public wildcard: string;
constructor(wildcardArg: string) {
this.wildcard = wildcardArg;
}
public match(matchStringArg: string): boolean {
return plugins.matcher.isMatch(matchStringArg, this.wildcard);
}
}

View File

@@ -1,2 +1,4 @@
const removeme = {}; // third party scope
export { removeme }; import matcher from 'matcher';
export { matcher };