Skip to content

Commit b07a054

Browse files
authored
Merge pull request #176 from pie-framework/feat/bump-catalog-client
feat: update catalog client to show role
2 parents 7a11926 + 783b2b4 commit b07a054

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"repository": "pie-framework/pie-cli.git",
2020
"engines": {
21-
"node": ">=9.4.0",
21+
"node": ">=9.4.0 <10",
2222
"npm": ">=5.6.0"
2323
},
2424
"keywords": [
@@ -101,7 +101,7 @@
101101
"marked-terminal": "^2.0.0",
102102
"minimist": "^1.2.0",
103103
"ora": "^1.2.0",
104-
"pie-catalog-client": "^2.2.0",
104+
"pie-catalog-client": "^2.3.0",
105105
"pie-controller": "^3.3.0",
106106
"pie-player": "^3.4.0",
107107
"pie-support-less": "PieLabs/pie-support-less#master",

test/unit/code-gen/index-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('declaration', () => {
88
describe('js', () => {
99
it('returns a custom element declaration', () => {
1010
let d = new mod.ElementDeclaration('my-tag');
11-
expect(d.js).to.eql(`import MyTag from 'my-tag';\ncustomElements.define('my-tag', MyTag);`);
11+
expect(d.js).to.eql(`import MyTag from 'my-tag';\nif(!customElements.get('my-tag')){\ncustomElements.define('my-tag', MyTag);\n}`);
1212
});
1313
});
1414
});

0 commit comments

Comments
 (0)