fix(build): Fix import paths, update CI workflows and upgrade dependencies for ESM compliance
This commit is contained in:
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @push.rocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartfuzzy',
|
||||
version: '1.1.7',
|
||||
description: 'A library for fuzzy matching strings against word dictionaries or arrays, with support for object and article searching.'
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
export * from './smartfuzzy.articlesearch';
|
||||
export * from './smartfuzzy.classes.smartfuzzy';
|
||||
export * from './smartfuzzy.classes.objectsorter';
|
||||
export * from './smartfuzzy.articlesearch.js';
|
||||
export * from './smartfuzzy.classes.smartfuzzy.js';
|
||||
export * from './smartfuzzy.classes.objectsorter.js';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartfuzzy.plugins';
|
||||
import * as plugins from './smartfuzzy.plugins.js';
|
||||
|
||||
/**
|
||||
* an article search that searches articles in a weighted manner
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartfuzzy.plugins';
|
||||
import * as plugins from './smartfuzzy.plugins.js';
|
||||
|
||||
export class ObjectSorter<T> {
|
||||
public objectDictionary: T[];
|
||||
@ -7,7 +7,7 @@ export class ObjectSorter<T> {
|
||||
this.objectDictionary = objectDictionaryArg;
|
||||
}
|
||||
|
||||
sort(stringArg: string, objectKeysArg: string[]): plugins.fuseJs.FuseResult<T>[] {
|
||||
sort(stringArg: string, objectKeysArg: string[]): Array<{ item: T; refIndex: number; score?: number }> {
|
||||
const fuseOptions = {
|
||||
shouldSort: true,
|
||||
threshold: 0.6,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartfuzzy.plugins';
|
||||
import * as plugins from './smartfuzzy.plugins.js';
|
||||
|
||||
export let standardExport = 'Hi there! :) This is an exported string';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// @pushrocks scope
|
||||
import * as smartpromise from '@pushrocks/smartpromise';
|
||||
import * as smartpromise from '@push.rocks/smartpromise';
|
||||
|
||||
export { smartpromise };
|
||||
|
||||
|
Reference in New Issue
Block a user