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

@codebakery/origami

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codebakery/origami - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

bin/lib/ts-util.js

17

bin/lib/compile.js

@@ -10,2 +10,3 @@ "use strict";

var package_util_1 = require("./package-util");
var ts_util_1 = require("./ts-util");
exports.ES5_DIR_NAME = '_origami-es5';

@@ -24,3 +25,3 @@ exports.ES2015_DIR_NAME = '_origami-es2015';

return tslib_1.__awaiter(this, void 0, void 0, function () {
var jsFiles, program, emitResult, allDiagnostics, errorMessage_1, error_1;
var jsFiles, program, emitResult, allDiagnostics, error_1;
return tslib_1.__generator(this, function (_a) {

@@ -63,15 +64,3 @@ switch (_a.label) {

.concat(emitResult.diagnostics);
errorMessage_1 = '';
allDiagnostics.forEach(function (diag) {
var message = ts.flattenDiagnosticMessageText(diag.messageText, ts.sys.newLine);
if (diag.file) {
var pos = ts.getLineAndCharacterOfPosition(diag.file, diag.start);
errorMessage_1 += diag.file.fileName + ":" + (pos.line +
1) + ":" + (pos.character + 1) + " " + message;
}
else {
errorMessage_1 += message;
}
});
throw new Error(errorMessage_1);
throw new Error(ts_util_1.getDiagnosticsMessage(allDiagnostics));
}

@@ -78,0 +67,0 @@ return [2 /*return*/, true];

@@ -6,3 +6,5 @@ "use strict";

var path = require("path");
var ts = require("typescript");
var util_1 = require("util");
var ts_util_1 = require("../ts-util");
var existsAsync = util_1.promisify(fs.exists);

@@ -65,4 +67,3 @@ function getAngularJsonPath() {

if (architect) {
var tsconfig = require(path.resolve(json.root, architect.options.tsConfig));
return isEs5(tsconfig);
return isEs5(path.resolve(json.root, architect.options.tsConfig));
}

@@ -75,10 +76,8 @@ else {

function isAngularCliJsonEs5(json) {
var tsconfig = require(path.resolve(json.root, json.tsconfig));
return isEs5(tsconfig);
return isEs5(path.resolve(json.root, json.tsconfig));
}
exports.isAngularCliJsonEs5 = isAngularCliJsonEs5;
function isEs5(tsconfig) {
// TODO: follow extends and handle no compilerOptions/target, which defaults
// to es5
return tsconfig.compilerOptions.target.toLowerCase() === 'es5';
function isEs5(tsconfigPath) {
var options = ts_util_1.getCompilerOptions(tsconfigPath);
return !options.target || options.target === ts.ScriptTarget.ES5;
}

@@ -85,0 +84,0 @@ exports.isEs5 = isEs5;

{
"$schema": "./node_modules/ng-packagr/package.schema.json",
"name": "@codebakery/origami",
"version": "3.0.1",
"version": "3.0.2",
"description": "Angular + Polymer",

@@ -6,0 +6,0 @@ "keywords": [

@@ -71,7 +71,13 @@ # Origami

webcomponentsReady().then(() => {
// requires "module: "esnext" in tsconfig.json
const { AppModule } = import('./app/app.module');
platformBrowserDynamic().bootstrapModule(AppModule);
});
webcomponentsReady()
.then(() => {
// requires "module: "esnext" in tsconfig.json "compilerOptions" and
// "angularCompilerOptions": {
// "entryModule": "app/app.module#AppModule"
// }
return import('./app/app.module');
})
.then(({ AppModule }) => {
platformBrowserDynamic().bootstrapModule(AppModule);
});
```

@@ -78,0 +84,0 @@

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