New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@area17/a17-helpers

Package Overview
Dependencies
Maintainers
4
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@area17/a17-helpers

A js helper package

  • 0.3.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
213
decreased by-33.02%
Maintainers
4
Weekly downloads
 
Created
Source

A17 JS Helpers -- ES module version

This is a test version of a17 js helpers with es module pattern.

Please refer to See the original version for all the necessary information.

Basic

It can be used as a npm package or just copy the src folder and the index.js into a folder in the project. All the other files in this repo is for testing purpose.

All helpers are imported into index.js and then exported. When using it, it can either be imported as

import helpers from 'a17-helpers'

or cheey pick like this

import { getCurrentMediaQuery, resized } from 'a17-helpers'

Test

You can write test case in test/test.js file then run:

npm run compile

then

npm run test

Update Log

0.3.6

  • Updated manageBehaviors to not have warning typo...

0.3.5

  • Updated manageBehaviors to warn when behavior fails to init and not trap JS errors from inside a behavior

0.3.4

  • Added forEach to loop querySelectorAll nodes

0.3.3

  • getOffset returns a full fixed getBoundingClientRect output (position with scroll) so includes bottom, right, width and height now

0.3.2

  • resized checks for and sets window.A17.currentMediaQuery when media query changes

0.3.1

  • Added jsdom an jsdom-global (https://github.com/rstacruz/jsdom-global) to devDependencies to test DOM events in Mocha tests.
  • Added .updateParameter() method to queryStringHandler helper Wiki
  • Added new setFocusOnTarget helper Wiki (with test)
  • Added new copyTextToClipboard helper Wiki (no test, not sure how to test..)

0.3.0

  • Merge tuenObjectToQueryString and turnQueryStringToObject into queryStringHandler as .toObject() and .fromObject() methods
  • Add new debounce helper Wiki

0.2.1

Changed dependencies from a17.helpers format to module

0.2.0

Add all the helpers from original version

0.1.0

Basic structure and testing function

FAQs

Package last updated on 14 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc