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

@mrgrain/jsii-struct-builder

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mrgrain/jsii-struct-builder - npm Package Compare versions

Comparing version 0.4.9 to 0.4.10

7

lib/projen/projen-struct.d.ts
import { Property } from '@jsii/spec';
import { Component, typescript } from 'projen';
import { TypeScriptInterfaceFileOptions } from './ts-interface';
import { HasProperties, IStructBuilder, HasFullyQualifiedName, HasStructSpec } from '../builder';

@@ -43,3 +44,7 @@ export interface ProjenStructOptions {

*/
importLocations?: Record<string, string>;
readonly importLocations?: Record<string, string>;
/**
* Options for the created output `TypeScriptInterfaceFile`
*/
readonly outputFileOptions?: Omit<TypeScriptInterfaceFileOptions, 'importLocations'>;
}

@@ -46,0 +51,0 @@ /**

3

lib/projen/projen-struct.js

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

new ts_interface_1.TypeScriptInterfaceFile(this.tsProject, outputFile, this.builder.spec, {
...this.options.outputFileOptions,
importLocations: {

@@ -102,2 +103,2 @@ [this.builder.spec.assembly]: relativeImport(outputFile, baseDir),

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvamVuLXN0cnVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wcm9qZW4vcHJvamVuLXN0cnVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBNEM7QUFDNUMscUNBQWdEO0FBQ2hELG1DQUErQztBQUMvQyxpREFBeUQ7QUFDekQsd0NBTW9CO0FBNENwQjs7R0FFRztBQUNILE1BQWEsWUFBYSxTQUFRLGtCQUFTO0lBR3pDLFlBQ1UsU0FBdUMsRUFDdkMsT0FBNEI7O1FBRXBDLEtBQUssQ0FBQyxTQUFTLENBQUMsQ0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pbGRlci51cGRhdGVBbGwodXBkYXRlKTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxuICByZW5hbWUoZnJvbTogc3RyaW5nLCB0bzogc3RyaW5nKTogdGhpcyB7XG4gICAgdGhpcy5idWlsZGVyLnJlbmFtZShmcm9tLCB0byk7XG4gICAgcmV0dXJuIHRoaXM7XG4gIH1cbiAgbWl4aW4oLi4uc291cmNlczogSGFzUHJvcGVydGllc1tdKTogdGhpcyB7XG4gICAgdGhpcy5idWlsZGVyLm1peGluKC4uLnNvdXJjZXMpO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG4gIHB1YmxpYyBnZXQgcHJvcGVydGllcygpOiBQcm9wZXJ0eVtdIHtcbiAgICByZXR1cm4gdGhpcy5idWlsZGVyLnByb3BlcnRpZXM7XG4gIH1cbiAgcHVibGljIGdldCBmcW4oKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy5idWlsZGVyLmZxbjtcbiAgfVxufVxuXG5mdW5jdGlvbiByZWxhdGl2ZUltcG9ydChmcm9tOiBzdHJpbmcsIHRhcmdldDogc3RyaW5nKTogc3RyaW5nIHtcbiAgY29uc3QgZGlmZiA9IHBvc2l4LnJlbGF0aXZlKGRpcm5hbWUoZnJvbSksIHRhcmdldCk7XG4gIGlmICghZGlmZikge1xuICAgIHJldHVybiAnLicgKyBwb3NpeC5zZXA7XG4gIH1cbiAgcmV0dXJuIGRpZmYgKyBwb3NpeC5zZXA7XG59XG5cbmZ1bmN0aW9uIGZxblRvUGF0aChmcW46IHN0cmluZyk6IHN0cmluZyB7XG4gIHJldHVybiBqb2luKC4uLmZxbi5zcGxpdCgnLicpLnNsaWNlKDEpKSArICcudHMnO1xufVxuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvamVuLXN0cnVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wcm9qZW4vcHJvamVuLXN0cnVj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ge1xuICAgIHJldHVybiB0aGlzLmJ1aWxkZXIucHJvcGVydGllcztcbiAgfVxuICBwdWJsaWMgZ2V0IGZxbigpOiBzdHJpbmcge1xuICAgIHJldHVybiB0aGlzLmJ1aWxkZXIuZnFuO1xuICB9XG59XG5cbmZ1bmN0aW9uIHJlbGF0aXZlSW1wb3J0KGZyb206IHN0cmluZywgdGFyZ2V0OiBzdHJpbmcpOiBzdHJpbmcge1xuICBjb25zdCBkaWZmID0gcG9zaXgucmVsYXRpdmUoZGlybmFtZShmcm9tKSwgdGFyZ2V0KTtcbiAgaWYgKCFkaWZmKSB7XG4gICAgcmV0dXJuICcuJyArIHBvc2l4LnNlcDtcbiAgfVxuICByZXR1cm4gZGlmZiArIHBvc2l4LnNlcDtcbn1cblxuZnVuY3Rpb24gZnFuVG9QYXRoKGZxbjogc3RyaW5nKTogc3RyaW5nIHtcbiAgcmV0dXJuIGpvaW4oLi4uZnFuLnNwbGl0KCcuJykuc2xpY2UoMSkpICsgJy50cyc7XG59XG4iXX0=

@@ -68,3 +68,3 @@ {

},
"version": "0.4.9",
"version": "0.4.10",
"jest": {

@@ -71,0 +71,0 @@ "testMatch": [

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