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

@ngneat/hot-toast

Package Overview
Dependencies
Maintainers
3
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngneat/hot-toast - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "@ngneat/hot-toast",
"version": "1.0.2",
"version": "1.0.3",
"description": "Smoking hot Notifications for Angular. Lightweight, customizable and beautiful by default.",

@@ -5,0 +5,0 @@ "schematics": "./schematics/collection.json",

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

const tasks_1 = require("@angular-devkit/schematics/tasks");
const config_1 = require("@schematics/angular/utility/config");
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils");

@@ -21,3 +20,2 @@ const ast_utils_1 = require("@schematics/angular/utility/ast-utils");

];
// Just return the tree
function ngAdd(options) {

@@ -58,3 +56,3 @@ return (tree) => {

if (!options.skipImport) {
const workspace = config_1.getWorkspace(host);
const workspace = utils_1.getWorkspace(host);
const project = utils_1.getProjectFromWorkspace(workspace, options.project ? options.project : Object.keys(workspace.projects)[0]);

@@ -93,3 +91,3 @@ if (!project || project.projectType !== 'application') {

if (!options.skipImport) {
const workspace = config_1.getWorkspace(host);
const workspace = utils_1.getWorkspace(host);
const project = utils_1.getProjectFromWorkspace(workspace, options.project ? options.project : Object.keys(workspace.projects)[0]);

@@ -96,0 +94,0 @@ if (!project || project.projectType !== 'application') {

@@ -15,1 +15,3 @@ import * as ts from 'typescript';

export declare function getSourceFile(host: Tree, path: string): ts.SourceFile;
export declare function getWorkspacePath(host: Tree): string;
export declare function getWorkspace(host: Tree): string | number | boolean | import("@angular-devkit/core").JsonArray | import("@angular-devkit/core").JsonObject | null;

@@ -12,3 +12,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getSourceFile = exports.addModuleImportToModule = exports.addModuleImportToRootModule = exports.removePackageJsonDependency = exports.createTestApp = exports.addPackageToPackageJson = exports.getProjectTargetOptions = exports.getProjectFromWorkspace = exports.addStyleToTarget = exports.installPackageJsonDependencies = void 0;
exports.getWorkspace = exports.getWorkspacePath = exports.getSourceFile = exports.addModuleImportToModule = exports.addModuleImportToRootModule = exports.removePackageJsonDependency = exports.createTestApp = exports.addPackageToPackageJson = exports.getProjectTargetOptions = exports.getProjectFromWorkspace = exports.addStyleToTarget = exports.installPackageJsonDependencies = void 0;
/* eslint-disable prefer-arrow/prefer-arrow-functions */

@@ -22,2 +22,3 @@ const ts = require("typescript");

const tasks_1 = require("@angular-devkit/schematics/tasks");
const core_1 = require("@angular-devkit/core");
const schematics_1 = require("@angular-devkit/schematics");

@@ -137,2 +138,18 @@ function installPackageJsonDependencies() {

exports.getSourceFile = getSourceFile;
function getWorkspacePath(host) {
const possibleFiles = ['/angular.json', '/.angular.json'];
const path = possibleFiles.filter((filePath) => host.exists(filePath))[0];
return path;
}
exports.getWorkspacePath = getWorkspacePath;
function getWorkspace(host) {
const path = getWorkspacePath(host);
const configBuffer = host.read(path);
if (configBuffer === null) {
throw new schematics_1.SchematicsException(`Could not find (${path})`);
}
const content = configBuffer.toString();
return core_1.parseJson(content, core_1.JsonParseMode.Loose);
}
exports.getWorkspace = getWorkspace;
//# sourceMappingURL=index.js.map

Sorry, the diff of this file is not supported yet

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