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

@nstudio/xplat-utils

Package Overview
Dependencies
Maintainers
8
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nstudio/xplat-utils - npm Package Compare versions

Comparing version 13.0.1 to 13.4.0

2

package.json
{
"name": "@nstudio/xplat-utils",
"version": "13.0.1",
"version": "13.4.0",
"description": "Utilities for xplat tooling.",

@@ -5,0 +5,0 @@ "homepage": "https://nstudio.io/xplat",

@@ -31,5 +31,5 @@ <h1 align="center">Cross-platform (xplat) tools for Nx workspaces</h1>

> provide a name
> What to create in the new workspace
> choose `empty`
> choose `apps`

@@ -36,0 +36,0 @@ ```

@@ -26,1 +26,2 @@ import type { FrameworkTypes, PlatformNxExtraTypes, PlatformTypes, PlatformWithNxTypes } from './types';

export declare function parseProjectNameFromPath(input: string): string;
export declare function toFileName(s: string): string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseProjectNameFromPath = exports.sanitizeCommaDelimitedArg = exports.prerun = exports.getAppPaths = exports.getRootTsConfigPath = exports.copy = exports.getNxWorkspaceConfig = exports.updateFile = exports.updateJsonFile = exports.getJsonFromFile = exports.jsonParse = exports.isTesting = exports.setTest = exports.isXplatWorkspace = exports.getAppName = exports.getGroupByName = exports.getFrontendFramework = exports.getPrefix = exports.getNpmScope = exports.supportedFrameworks = exports.supportedPlatformsWithNx = exports.supportedNxExtraPlatforms = exports.supportedPlatforms = void 0;
exports.toFileName = exports.parseProjectNameFromPath = exports.sanitizeCommaDelimitedArg = exports.prerun = exports.getAppPaths = exports.getRootTsConfigPath = exports.copy = exports.getNxWorkspaceConfig = exports.updateFile = exports.updateJsonFile = exports.getJsonFromFile = exports.jsonParse = exports.isTesting = exports.setTest = exports.isXplatWorkspace = exports.getAppName = exports.getGroupByName = exports.getFrontendFramework = exports.getPrefix = exports.getNpmScope = exports.supportedFrameworks = exports.supportedPlatformsWithNx = exports.supportedNxExtraPlatforms = exports.supportedPlatforms = void 0;
const schematics_1 = require("@angular-devkit/schematics");
const devkit_1 = require("@nrwl/devkit");
const workspace_1 = require("@nrwl/workspace");
exports.supportedPlatforms = [

@@ -67,3 +66,3 @@ 'web',

// ensure comments are stripped when parsing (otherwise will fail)
return devkit_1.parseJson(content);
return (0, devkit_1.parseJson)(content);
}

@@ -81,3 +80,3 @@ return {};

// if (tree.exists(path)) {
tree.overwrite(path, workspace_1.serializeJson(jsonData));
tree.overwrite(path, (0, devkit_1.serializeJson)(jsonData));
// }

@@ -299,1 +298,8 @@ return tree;

exports.parseProjectNameFromPath = parseProjectNameFromPath;
function toFileName(s) {
return s
.replace(/([a-z\d])([A-Z])/g, '$1_$2')
.toLowerCase()
.replace(/[ _]/g, '-');
}
exports.toFileName = toFileName;
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