Skip to content

Commit

Permalink
Merge pull request #46 from shgysk8zer0/patch/updates
Browse files Browse the repository at this point in the history
Update to use `@shgysk8zer0/consts`
  • Loading branch information
shgysk8zer0 authored Oct 2, 2023
2 parents 5feb360 + 7929403 commit 1c5de53
Show file tree
Hide file tree
Showing 5 changed files with 353 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v1.2.1] - 2023-10-02

### Changed
- Update to use `@shgysk8zer0/consts`

## [v1.2.0] - 2023-07-03

### Changed
Expand Down
4 changes: 3 additions & 1 deletion import.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import { readYAMLFile, isYAMLFile } from '@shgysk8zer0/npm-utils/yaml';
import { readJSONFile, isJSONFile } from '@shgysk8zer0/npm-utils/json';
import { buildImportmap, getInvalidMapError, resolveImport } from '@shgysk8zer0/npm-utils/importmap';
import { isString, isBare } from '@shgysk8zer0/npm-utils/utils';
import { JS as JS_MIMES } from '@shgysk8zer0/npm-utils/mimes';
import { JS as JS_MIME } from '@shgysk8zer0/consts/mimes';
import { pathToURL } from '@shgysk8zer0/npm-utils/url';

const JS_MIMES = ['text/javascript', JS_MIME];

const isJS = type => JS_MIMES.includes(type.toLowerCase());

const cached = new Map();
Expand Down
Loading

0 comments on commit 1c5de53

Please sign in to comment.