New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sfcc-dts

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sfcc-dts - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

@types/.DS_Store

10

dist/generate.js

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

"TopLevel.Array",
"dw.object.Extensible",
"dw.object.ExtensibleObject",

@@ -112,3 +113,3 @@ "dw.object.SimpleExtensible"

// return false;
if (element === 'Iterator') {
if (element === 'Iterator' || element === 'Iterable') {
return true;

@@ -200,7 +201,7 @@ }

// if (theClass.hierarchy.find((h: any) => h.name === 'dw.object.ExtensibleObject')) {
if (hierarchyClass === 'dw.object.ExtensibleObject') {
if (hierarchyClass === 'dw.object.ExtensibleObject' || hierarchyClass === 'dw.object.Extensible') {
generics = className + 'CustomAttributes';
customAttrTypes.add({ name: className });
}
else if (theClass.hierarchy.find((h) => h.name === 'dw.object.ExtensibleObject')) {
else if (theClass.hierarchy.find((h) => h.name === 'dw.object.ExtensibleObject' || h.name === 'dw.object.Extensible')) {
// extends an extensible class, eg. ProductLineItem -> LineItem -> ExtensibleObject

@@ -240,2 +241,3 @@ customAttrTypes.add({ name: className, extends: hierarchyClass });

let properties = Object.values(theClass.properties);
properties = properties.filter(prop => !constants.find(co => co.name == prop.name)); // properties my duplicate constants
source += properties

@@ -282,3 +284,3 @@ .filter(filterProperties(className))

}
return `${methodSource}${doc(method)}${isGlobal ? "declare function " : ""}${method.static && !isGlobal ? isStatic : ""}${method.name}(${method.args.map((m) => formatArgument(m, isGeneric)).join(", ")}): ${returnType};\n`;
return `${methodSource}${doc(method)}${isGlobal ? "declare function " : ""}${method.static && !isGlobal ? isStatic : ""}${method.name.replace('@@iterator', '[Symbol.iterator]')}(${method.args.map((m) => formatArgument(m, isGeneric)).join(", ")}): ${returnType};\n`;
}, "");

@@ -285,0 +287,0 @@ source += "\n";

2

package.json
{
"name": "sfcc-dts",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/tsplugin.js",

Sorry, the diff of this file is too big to display

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