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

ember-angle-bracket-invocation-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-angle-bracket-invocation-polyfill - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

lib/ast-transform.js

6

index.js

@@ -21,3 +21,3 @@ 'use strict';

name: 'component-attributes',
plugin: require('./lib/angle-bracket-invocation-polyfill'),
plugin: require('./lib/ast-transform'),
baseDir() {

@@ -37,3 +37,3 @@ return __dirname;

this.import('vendor/angle-bracket-invocation-polyfill/index.js');
this.import('vendor/angle-bracket-invocation-polyfill/runtime-polyfill.js');
},

@@ -49,2 +49,4 @@

let transpiledVendorTree = babelAddon.transpileTree(rawVendorTree, {
babel: this.options.babel,
'ember-cli-babel': {

@@ -51,0 +53,0 @@ compileModules: false,

@@ -12,6 +12,6 @@ 'use strict';

const compiler = require('ember-source/dist/ember-template-compiler');
compiler.registerPlugin('ast', require('./angle-bracket-invocation-polyfill'));
compiler.registerPlugin('ast', require('./ast-transform'));
let template = '<FooBar data-foo="bar" />';
let template = '<span ...attributes>hi martin!</span>';
let output = compiler.precompile(template, { contents: template });
console.log(output); // eslint-disable-line no-console
{
"name": "ember-angle-bracket-invocation-polyfill",
"version": "1.0.2",
"version": "1.1.0",
"description": "The default blueprint for ember-cli addons.",

@@ -24,3 +24,4 @@ "keywords": [

"ember-cli-babel": "^6.6.0",
"ember-cli-version-checker": "^2.1.2"
"ember-cli-version-checker": "^2.1.2",
"ember-compatibility-helpers": "^1.0.0"
},

@@ -27,0 +28,0 @@ "devDependencies": {

@@ -104,4 +104,11 @@ # ember-angle-bracket-invocation-polyfill

- Supports passing `...attributes` into a non-component element
```hbs
<div ...attributes></div>
```
- Supports passing `...attributes` into tagless components
- Completely innert when running Ember 3.4 or higher
- Supports Ember 2.12, 2.16, 2.18, 3.2, 3.3
- Supports Ember 2.12, 2.16, 2.18, 3.1, 3.2, 3.3
- Test all the features listed above 😘

@@ -115,3 +122,2 @@

- Single word component names
- Explicitly splatting attributes with `...attributes`.

@@ -118,0 +124,0 @@ ## Contributing

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