New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-webresource

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

node-webresource

Node module to upload web resources to Dynamics 365

unpublished
latest
Source
npmnpm
Version
1.1.17
Version published
Maintainers
1
Created
Source

node-webresource

Node module for publishing Dynamics 365 web resources, inspired by gulp-webresource

BuildNPMSemantic-Release
Build Statusnpmsemantic-release

Usage

npm install -D node-webresource

Sign in here to grant access to your Dynamics 365 organization.

Sample config file and usage

For a more complete sample using webpack, see generator-xrm-webresource

var uploadConfig = {
    tenant: "mycompany.onmicrosoft.com",
    server: "https://mycompany.crm.dynamics.com",
    webResources: [
        {
            "path": "path\\to\\file\\formscript.js",
            "name": "new_formscript.js"
        }
    ],
    solution: "MySolution"
};

// Can use username/password or client id/secret
uploadConfig.username: "me@mycompany.onmicrosoft.com";
uploadConfig.password: "MyPassword";
uploadConfig.clientId: "ClientId";
uploadConfig.clientSecret: "ClientSecret";

var assets = [
    {
        path: "path\\to\\file\\formscript.js", // Should match webResources path
        content: "function onLoad() {}"
    };
];

webResource.upload(uploadConfig, assets).then(() => {
    callback();
}, (error) => {
    console.log(error);
    callback();
});

FAQs

Package last updated on 11 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts