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

@brightspace-ui/create

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightspace-ui/create - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

dist/generators/localization/templates/static/lang/ar.js

8

dist/create.js

@@ -54,3 +54,3 @@ #!/usr/bin/env node

name: 'codeowners',
message: 'What is/are the github username(s) of the codeowner(s)? (e.g., @janesmith, @johnsmith)'
message: 'What is/are the GitHub username(s) of the codeowner(s)? (e.g., @janesmith, @johnsmith)'
}, {

@@ -85,5 +85,2 @@ type: 'select',

choices: [{
title: 'Static',
value: 'static'
}, {
title: 'Dynamic (no serge)',

@@ -94,2 +91,5 @@ value: 'dynamic'

value: 'serge'
}, {
title: 'Static',
value: 'static'
}]

@@ -96,0 +96,0 @@ }];

@@ -27,2 +27,7 @@ "use strict";

}\n`;
const dynamicLocalization = `\n\tstatic get localizeConfig() {
return {
importFunc: async lang => (await import(\`./lang/\${lang}.js\`)).default
};
}\n`;

@@ -39,5 +44,5 @@ function run(templateData) {

} else {
replacements.extends = 'LocalizeElement(LitElement)';
replacements.localizeMixin = 'import { LocalizeElement } from \'./locales/localize-element.js\';\n';
replacements.localizeResources = '';
replacements.extends = 'LocalizeDynamicMixin(LitElement)';
replacements.localizeMixin = 'import { LocalizeDynamicMixin } from \'@brightspace-ui/core/mixins/localize-dynamic-mixin.js\';\n';
replacements.localizeResources = dynamicLocalization;
(0, _helper.copyFilesInDir)(`${__dirname}/templates/static`, (0, _helper.getDestinationPath)(templateData.hyphenatedName));

@@ -44,0 +49,0 @@ }

{
"name": "@brightspace-ui/create",
"version": "1.0.3",
"version": "1.1.0",
"description": "Initializer for Brightspace web components",

@@ -5,0 +5,0 @@ "repository": "https://github.com/BrightspaceUI/create.git",

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