Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

a11y-announcer

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a11y-announcer - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

addon/services/announcer.js
import Service from '@ember/service';
export default Service.extend({
message: "has loaded",
message: 'has loaded',
announceMessage: null,

@@ -6,0 +6,0 @@ announceTone: 'polite',

@@ -1,2 +0,2 @@

import $ from 'jquery';
import { later, cancel } from '@ember/runloop';

@@ -8,6 +8,9 @@ import { inject as service } from '@ember/service';

name: 'add-announcer-to-router',
initialize: function() {
initialize() {
Router.reopen({
announcer: service('announcer'),
didTransition: function() {
didTransition() {
this._super(...arguments);

@@ -18,3 +21,3 @@

let pageTitle = $('title').html().trim();
let pageTitle = document.title.trim();
let serviceMessage = this.get('announcer.message');

@@ -32,3 +35,4 @@ let message = `${pageTitle} ${serviceMessage}`;

});
}
};

@@ -1,2 +0,1 @@

/* eslint-env node */
'use strict';

@@ -3,0 +2,0 @@

@@ -1,2 +0,1 @@

/* eslint-env node */
'use strict';

@@ -3,0 +2,0 @@

The MIT License (MIT)
Copyright (c) 2017
Copyright (c) 2018

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

{
"name": "a11y-announcer",
"version": "1.0.3",
"version": "1.0.4",
"description": "An accessible ember route change announcer",

@@ -9,3 +9,5 @@ "keywords": [

"ember router",
"a11y-announcer"
"a11y-announcer",
"a11y",
"accessibility"
],

@@ -21,2 +23,3 @@ "license": "MIT",

"build": "ember build",
"lint:js": "eslint ./*.js addon addon-test-support app config lib server test-support tests",
"start": "ember serve",

@@ -32,12 +35,11 @@ "test": "ember try:each"

"ember-ajax": "^3.0.0",
"ember-cli": "~2.17.0",
"ember-cli-chai": "^0.4.0",
"ember-cli": "~3.0.2",
"ember-cli-dependency-checker": "^2.0.0",
"ember-cli-document-title": "0.3.2",
"ember-cli-document-title": "0.4.0",
"ember-cli-eslint": "^4.2.1",
"ember-cli-github-pages": "0.1.2",
"ember-cli-github-pages": "0.2.0",
"ember-cli-htmlbars-inline-precompile": "^1.0.0",
"ember-cli-inject-live-reload": "^1.4.1",
"ember-cli-mocha": "^0.14.4",
"ember-cli-release": "^0.2.9",
"ember-cli-qunit": "4.3.2",
"ember-cli-release": "^1.0.0-beta.2",
"ember-cli-shims": "^1.2.0",

@@ -48,5 +50,11 @@ "ember-cli-uglify": "^2.0.0",

"ember-load-initializers": "^1.0.0",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-resolver": "^4.0.0",
"ember-source": "~2.17.0",
"loader.js": "^4.2.3"
"ember-source": "~3.0.0",
"ember-source-channel-url": "^1.0.1",
"ember-try": "^0.2.23",
"eslint-plugin-ember": "^5.0.0",
"eslint-plugin-node": "^6.0.1",
"loader.js": "^4.2.3",
"qunit-dom": "0.6.0"
},

@@ -53,0 +61,0 @@ "engines": {

@@ -34,2 +34,3 @@ # A11y-announcer

```
Now that the service has been injected you can call the `announce` method:

@@ -41,2 +42,3 @@ `this.get('announcer').announce('Your Message', 'polite');`

will be read off. There are three different strings you can pass here:
- _off_ which means nothing will be read

@@ -64,10 +66,9 @@ - _polite_ which will not interrupt the screen reader

```
---
### Installation
## Installation
* `git clone` this repository
* `npm install`
* `bower install`
* `npm install` or `yarn`
## Running
### Linting

@@ -77,3 +78,3 @@ * `ember server`

## Running Tests
### Running tests

@@ -83,6 +84,7 @@ * `ember test`

## Building
### Running the dummy application
* `ember build`
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).

Sorry, the diff of this file is not supported yet

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