Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Publish v0.3.3 add .js extension (future proof for node env)
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenmeier committed May 5, 2024
1 parent b24916f commit cc07c06
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fire-lib-js",
"version": "0.3.2",
"version": "0.3.3",
"author": "Sören Meier <[email protected]>",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/api/Api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ApiError from './ApiError';
import ApiError from './ApiError.js';

/**
* Api class to handle requests to a server
Expand Down
6 changes: 3 additions & 3 deletions src/api/Stream.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ApiError from './ApiError';
import Listeners from '../sync/Listeners';
import Api from './Api';
import ApiError from './ApiError.js';
import Listeners from '../sync/Listeners.js';
import Api from './Api.js';

/**
* The Stream is responsible for managing your connection with a server
Expand Down
4 changes: 2 additions & 2 deletions src/time/Date.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { padZero } from '../utils/utils';
import { fromAny } from './localization';
import { padZero } from '../utils/utils.js';
import { fromAny } from './localization.js';

const DAY_IN_MS = 1000 * 60 * 60 * 24;

Expand Down
4 changes: 2 additions & 2 deletions src/time/DateTime.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { padZero } from '../utils/utils';
import { fromAny } from './localization';
import { padZero } from '../utils/utils.js';
import { fromAny } from './localization.js';

const DAY_IN_MS = 1000 * 60 * 60 * 24;

Expand Down
4 changes: 2 additions & 2 deletions src/time/DateTimeRange.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { padZero } from '../utils/utils';
import type DateTime from './DateTime';
import { padZero } from '../utils/utils.js';
import type DateTime from './DateTime.js';

export default class DateTimeRange {
from: DateTime;
Expand Down
4 changes: 2 additions & 2 deletions src/time/Duration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type DateTime from './DateTime';
import { type Localization, fromAny } from './localization';
import type DateTime from './DateTime.js';
import { type Localization, fromAny } from './localization.js';

export default class Duration {
millis: number;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/colors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { range } from './utils';
import { range } from './utils.js';

/**
* returns expects a hex value with 6 values `rgba(0,0,0,a)`
Expand Down
7 changes: 3 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Bundler",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"noImplicitAny": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
"@/*": ["./src/*"]
},
"allowJs": true,
"checkJs": false,
Expand Down

0 comments on commit cc07c06

Please sign in to comment.