esm.dev 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import * as path from 'node:path';
2
- import { ESMDevCommand } from './ESMDevCommand';
3
- import { PackagePathSpecific } from './mixins/PackagePathSpecific';
4
- import { MustacheGeneratorCommand } from './MustacheGeneratorCommand';
2
+ import { ESMDevCommand } from './ESMDevCommand.js';
3
+ import { PackagePathSpecific } from './mixins/PackagePathSpecific.js';
4
+ import { MustacheGeneratorCommand } from './MustacheGeneratorCommand.js';
5
5
  import { Option } from 'clipanion';
6
6
  export class InitCommand extends PackagePathSpecific(MustacheGeneratorCommand) {
7
7
  static paths = [['init']];
@@ -1,5 +1,5 @@
1
1
  import { GeneratorCommand } from 'clipanion-generator-command';
2
- import { MustacheGenerator } from '../lib/MustacheGenerator';
2
+ import { MustacheGenerator } from '../lib/MustacheGenerator.js';
3
3
  export class MustacheGeneratorCommand extends GeneratorCommand {
4
4
  get generator() {
5
5
  return new MustacheGenerator(this.templateDir, this.destinationDir, [
@@ -1,4 +1,4 @@
1
- import { EnvOption } from '../../options/EnvOption';
1
+ import { EnvOption } from '../../options/EnvOption.js';
2
2
  export function ESMServed(Base) {
3
3
  class ESMServed extends Base {
4
4
  esmOrigin = EnvOption('ESM_ORIGIN', '-e,--esm-origin', {
package/dist/lib/queue.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import debounce from 'lodash.debounce';
2
2
  import throat from 'throat';
3
- export const queue = throat(1);
3
+ export const queue = throat.default(1);
4
4
  /**
5
5
  * Just like debounce, but the first call will add a promise to the queue
6
6
  * and that promise won't resolve until the debounced function is finally called.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esm.dev",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "TypeScript library template",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1,7 +1,7 @@
1
1
  import * as path from 'node:path'
2
- import { ESMDevCommand } from './ESMDevCommand'
3
- import { PackagePathSpecific } from './mixins/PackagePathSpecific'
4
- import { MustacheGeneratorCommand } from './MustacheGeneratorCommand'
2
+ import { ESMDevCommand } from './ESMDevCommand.js'
3
+ import { PackagePathSpecific } from './mixins/PackagePathSpecific.js'
4
+ import { MustacheGeneratorCommand } from './MustacheGeneratorCommand.js'
5
5
  import { Option } from 'clipanion'
6
6
 
7
7
  export class InitCommand extends PackagePathSpecific(MustacheGeneratorCommand) {
@@ -1,5 +1,5 @@
1
1
  import { GeneratorCommand } from 'clipanion-generator-command'
2
- import { MustacheGenerator } from '../lib/MustacheGenerator'
2
+ import { MustacheGenerator } from '../lib/MustacheGenerator.js'
3
3
 
4
4
  export abstract class MustacheGeneratorCommand extends GeneratorCommand {
5
5
  override get generator() {
@@ -1,5 +1,5 @@
1
- import { EnvOption } from '../../options/EnvOption'
2
- import type { CommandClass } from './CommandClass'
1
+ import { EnvOption } from '../../options/EnvOption.js'
2
+ import type { CommandClass } from './CommandClass.js'
3
3
 
4
4
  export function ESMServed<T extends CommandClass>(Base: T) {
5
5
  abstract class ESMServed extends Base {
@@ -1,4 +1,4 @@
1
- import type { CommandClass } from './CommandClass'
1
+ import type { CommandClass } from './CommandClass.js'
2
2
  import { EnvOption } from '../../options/EnvOption.js'
3
3
 
4
4
  export function ESMStorageSpecific<T extends CommandClass>(Base: T) {
@@ -1,5 +1,5 @@
1
1
  import { Option } from 'clipanion'
2
- import type { CommandClass } from './CommandClass'
2
+ import type { CommandClass } from './CommandClass.js'
3
3
 
4
4
  export function Watchable<T extends CommandClass>(Base: T) {
5
5
  abstract class Watchable extends Base {
package/src/lib/queue.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import debounce from 'lodash.debounce'
2
2
  import throat from 'throat'
3
3
 
4
- export const queue = throat(1)
4
+ export const queue = throat.default(1)
5
5
 
6
6
  /**
7
7
  * Just like debounce, but the first call will add a promise to the queue