Skip to content

Commit

Permalink
v3.3.2 : adds .js extension to all import
Browse files Browse the repository at this point in the history
  • Loading branch information
13twelve committed Nov 26, 2024
1 parent 3de0cf2 commit 371fc1a
Show file tree
Hide file tree
Showing 57 changed files with 130 additions and 123 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# A17 JS Helpers

[![https://nodei.co/npm/@area17/a17-helpers.png?downloads=true&downloadRank=true&stars=true](https://nodei.co/npm/@area17/a17-helpers.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/@area17/a17-helpers)

## Introduction

A collection of documented vanilla JS widgets.
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# 3.3.2

## Fixed
* Adds `.js` file extension to all internal imports

# 3.3.1

## Updated
Expand Down
104 changes: 54 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@area17/a17-helpers",
"version": "3.3.1",
"version": "3.3.2",
"type": "module",
"description": "A js helper package",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/ajaxRequest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import queryStringHandler from './queryStringHandler';
import queryStringHandler from './queryStringHandler.js';

/**
* ajaxRequest : Performs ajax requests
Expand Down
4 changes: 2 additions & 2 deletions src/focusTrap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import getFocusableElements from './getFocusableElements';
import setFocusOnTarget from './setFocusOnTarget';
import getFocusableElements from './getFocusableElements.js';
import setFocusOnTarget from './setFocusOnTarget.js';

/**
* focusTrap : Traps keyboard tabbing focus within a node
Expand Down
2 changes: 1 addition & 1 deletion src/getFocusableElements.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isVisible from './isVisible';
import isVisible from './isVisible.js';

function focusableFilter($el) {
// Doc: https://github.com/area17/js-helpers/wiki/focusableFilter
Expand Down
2 changes: 1 addition & 1 deletion src/getUrlParameterByName.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import queryStringHandler from './queryStringHandler';
import queryStringHandler from './queryStringHandler.js';

/**
* getUrlParameterByName : Returns value of a parameter from a query string
Expand Down
36 changes: 18 additions & 18 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
export { default as ajaxRequest } from './ajaxRequest.js';
export { default as cookieHandler } from './cookieHandler.js';
export { default as copyTextToClipboard } from './copyTextToClipboard';
export { default as debounce } from './debounce';
export { default as copyTextToClipboard } from './copyTextToClipboard.js';
export { default as debounce } from './debounce.js';
export { default as escapeString } from './escapeString.js';
export { default as extend } from './extend.js';
export { default as focusDisplayHandler } from './focusDisplayHandler';
export { default as focusTrap } from './focusTrap';
export { default as focusDisplayHandler } from './focusDisplayHandler.js';
export { default as focusTrap } from './focusTrap.js';
export { default as getCurrentMediaQuery } from './getCurrentMediaQuery.js';
export { default as getFocusableElements } from './getFocusableElements.js';
export { default as getIndex } from './getIndex.js';
export { default as getMetaContentByName } from './getMetaContentByName.js';
export { default as getOffset } from './getOffset.js';
export { default as getUrlParameterByName } from './getUrlParameterByName.js';
export { default as ios100vhFix } from './ios100vhFix';
export { default as ios100vhFix } from './ios100vhFix.js';
export { default as isBreakpoint } from './isBreakpoint.js';
export { default as isVisible } from './isVisible.js';
export { default as jsonpRequest } from './jsonpRequest.js';
Expand All @@ -23,19 +23,19 @@ export { default as messages } from './messages.js';
export { default as objectifyForm } from './objectifyForm.js';
export { default as orientationChangeFix } from './orientationChangeFix.js';
export { default as purgeProperties } from './purgeProperties.js';
export { default as queryStringHandler } from './queryStringHandler';
export { default as removeEmoji } from './removeEmoji';
export { default as removeHTMLentities } from './removeHTMLentities';
export { default as removeNoneASCIICharacters } from './removeNoneASCIICharacters';
export { default as removeNonePrintableCharacters } from './removeNonePrintableCharacters';
export { default as replaceAccentedCharacters } from './replaceAccentedCharacters';
export { default as queryStringHandler } from './queryStringHandler.js';
export { default as removeEmoji } from './removeEmoji.js';
export { default as removeHTMLentities } from './removeHTMLentities.js';
export { default as removeNoneASCIICharacters } from './removeNoneASCIICharacters.js';
export { default as removeNonePrintableCharacters } from './removeNonePrintableCharacters.js';
export { default as replaceAccentedCharacters } from './replaceAccentedCharacters.js';
export { default as resized } from './resized.js';
export { default as responsiveImageSizes } from './responsiveImageSizes';
export { default as responsiveImageSrcset } from './responsiveImageSrcset';
export { default as responsiveImageUpdate } from './responsiveImageUpdate';
export { default as responsiveImageSizes } from './responsiveImageSizes.js';
export { default as responsiveImageSrcset } from './responsiveImageSrcset.js';
export { default as responsiveImageUpdate } from './responsiveImageUpdate.js';
export { default as scrolled } from './scrolled.js';
export { default as sendEventToSegmentio } from './sendEventToSegmentio.js';
export { default as setFocusOnTarget } from './setFocusOnTarget';
export { default as SplitText } from './splitText';
export { default as Store } from './store';
export { default as toChars } from './toChars';
export { default as setFocusOnTarget } from './setFocusOnTarget.js';
export { default as SplitText } from './splitText.js';
export { default as Store } from './store.js';
export { default as toChars } from './toChars.js';
2 changes: 1 addition & 1 deletion src/isBreakpoint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import getCurrentMediaQuery from './getCurrentMediaQuery';
import getCurrentMediaQuery from './getCurrentMediaQuery.js';

/**
* isBreakpoint : Checks if the current breakpoint matches the passed breakpoint. It supports querying with or without +/- modifiers.
Expand Down
2 changes: 1 addition & 1 deletion src/jsonpRequest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import queryStringHandler from './queryStringHandler';
import queryStringHandler from './queryStringHandler.js';

/**
* isBreakpoint : Performs jsonp requests - by writing script tags into the page and setting up the callback function to run on success
Expand Down
2 changes: 1 addition & 1 deletion src/resized.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import getCurrentMediaQuery from './getCurrentMediaQuery';
import getCurrentMediaQuery from './getCurrentMediaQuery.js';

/**
* resized : Debounces window resize, also checks if current media query has changed
Expand Down
2 changes: 1 addition & 1 deletion src/setFocusOnTarget.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import getFocusableElements from './getFocusableElements';
import getFocusableElements from './getFocusableElements.js';

/**
* setFocusOnTarget : move focus on the node
Expand Down
2 changes: 1 addition & 1 deletion src/splitText.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import toChars from './toChars'
import toChars from './toChars.js';

// SplitText : Split text by Chars, Words or Lines
// To use with animation library to animate each chars, words or lines within a given element.
Expand Down
Loading

0 comments on commit 371fc1a

Please sign in to comment.