Socket
Socket
Sign inDemoInstall

@trapezedev/project

Package Overview
Dependencies
298
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.0 to 5.0.1

dist/platform-project.d.ts

10

dist/android/project.d.ts

@@ -7,4 +7,4 @@ /// <reference types="node" />

import { PropertiesFile } from '../properties';
export declare class AndroidProject {
private project;
import { PlatformProject } from '../platform-project';
export declare class AndroidProject extends PlatformProject {
private manifest;

@@ -54,2 +54,3 @@ private buildGradle;

addResource(resDir: AndroidResDir, file: string, contents: string): Promise<void>;
copyFile(src: string, dest: string): Promise<void>;
/**

@@ -60,7 +61,2 @@ * Copy the given source into the given resources directory with the

copyToResources(resDir: AndroidResDir, file: string, source: string): Promise<void>;
/**
* Copy the given source into the given top level directory with the
* given file name
**/
copyFile(file: string, source: string): Promise<void>;
private getAndroidManifestPath;

@@ -67,0 +63,0 @@ getResourcesPath(): string;

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

const properties_1 = require("../properties");
class AndroidProject {
const platform_project_1 = require("../platform-project");
class AndroidProject extends platform_project_1.PlatformProject {
constructor(project) {
this.project = project;
super(project);
this.buildGradle = null;

@@ -195,2 +196,12 @@ this.appBuildGradle = null;

}
copyFile(src, dest) {
var _a, _b, _c;
if (!((_c = (_b = (_a = this.project) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.android) === null || _c === void 0 ? void 0 : _c.path)) {
return Promise.reject();
}
const srcPath = (0, path_1.join)(this.project.config.android.path, src);
const destPath = (0, path_1.join)(this.project.config.android.path, dest);
console.log('Copying', srcPath, destPath);
return (0, utils_fs_1.copy)(srcPath, destPath);
}
/**

@@ -212,14 +223,2 @@ * Copy the given source into the given resources directory with the

}
/**
* Copy the given source into the given top level directory with the
* given file name
**/
async copyFile(file, source) {
const root = this.getAppRoot();
if (!root) {
return;
}
const sourceData = await (0, utils_fs_1.readFile)(source);
return (0, utils_fs_1.writeFile)((0, path_1.join)(root, file), sourceData);
}
getAndroidManifestPath() {

@@ -226,0 +225,0 @@ var _a, _b;

@@ -6,7 +6,7 @@ import plist from 'plist';

import { PlistFile } from '../plist';
import { PlatformProject } from '../platform-project';
/**
* An instance of an IosProject in a mobile project
*/
export declare class IosProject {
private project;
export declare class IosProject extends PlatformProject {
private pbxProject;

@@ -165,2 +165,3 @@ constructor(project: MobileProject);

}): Promise<void>;
copyFile(src: string, dest: string): Promise<void>;
private assertEntitlementsFile;

@@ -167,0 +168,0 @@ private assertTargetName;

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

const plist_2 = require("../plist");
const platform_project_1 = require("../platform-project");
const defaultEntitlementsPlist = `

@@ -55,5 +56,5 @@ <?xml version="1.0" encoding="UTF-8"?>

*/
class IosProject {
class IosProject extends platform_project_1.PlatformProject {
constructor(project) {
this.project = project;
super(project);
this.pbxProject = null;

@@ -448,2 +449,11 @@ this.pbxCommitFn = async (file) => {

}
copyFile(src, dest) {
var _a, _b, _c;
if (!((_c = (_b = (_a = this.project) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.ios) === null || _c === void 0 ? void 0 : _c.path)) {
return Promise.reject();
}
const srcPath = (0, path_1.join)(this.project.config.ios.path, src);
const destPath = (0, path_1.join)(this.project.config.ios.path, dest);
return (0, utils_fs_1.copy)(srcPath, destPath);
}
async assertEntitlementsFile(targetName, buildName) {

@@ -450,0 +460,0 @@ var _a, _b, _c, _d, _e, _f;

{
"name": "@trapezedev/project",
"version": "5.0.0",
"version": "5.0.1",
"description": "Trapeze mobile configuration API for managing projects through code",

@@ -24,3 +24,3 @@ "author": "Ionic Team <hi@ionic.io> (https://ionicframework.com) ",

"@prettier/plugin-xml": "^2.2.0",
"@trapezedev/gradle-parse": "5.0.0",
"@trapezedev/gradle-parse": "5.0.1",
"@types/diff": "^5.0.2",

@@ -27,0 +27,0 @@ "@xmldom/xmldom": "^0.7.5",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc