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.2.2 to 0.2.3

17

lib/builder/struct.d.ts

@@ -1,2 +0,2 @@

import { InterfaceType, Property } from '@jsii/spec';
import { FQN, InterfaceType, Property } from '@jsii/spec';
/**

@@ -8,2 +8,11 @@ * Something that has jsii properties

}
/**
* Something that has FQN
*/
export interface NamedTypeReference {
/**
* The fully-qualified-name of the type (can be located in the
*/
fqn: FQN;
}
export interface IStructBuilder {

@@ -44,3 +53,3 @@ /**

*/
export declare class Struct implements IStructBuilder, HasProperties {
export declare class Struct implements IStructBuilder, HasProperties, NamedTypeReference {
/**

@@ -107,2 +116,6 @@ * Create a builder from an jsii spec

get properties(): Property[];
/**
* Get the FQN for the builder
*/
get fqn(): FQN;
}

@@ -145,4 +145,10 @@ "use strict";

}
/**
* Get the FQN for the builder
*/
get fqn() {
return this._base.fqn;
}
}
exports.Struct = Struct;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RydWN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2J1aWxkZXIvc3RydWN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLHFDQUErRDtBQUMvRCwrRUFBc0Q7QUFDdEQsd0NBQTJDO0FBK0MzQzs7R0FFRztBQUNILE1BQWEsTUFBTTtJQUNqQjs7T0FFRztJQUNJLE1BQU0sQ0FBQyxRQUFRLENBQUMsSUFBbUI7UUFDeEMsT0FBTyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUMxQixDQUFDO0lBRUQ7Ozs7O09BS0c7SUFDSSxN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1ZXMoKSk7XG5cbiAgICByZXR1cm4ge1xuICAgICAgLi4uc3RydWN0dXJlZENsb25lKHRoaXMuX2Jhc2UpLFxuICAgICAgcHJvcGVydGllcyxcbiAgICB9O1xuICB9XG5cbiAgLyoqXG4gICAqIEdldCB0aGUgY3VycmVudCBwcm9wZXJ0aWVzIG9mIHRoZSBidWlsZGVyXG4gICAqL1xuICBwdWJsaWMgZ2V0IHByb3BlcnRpZXMoKTogUHJvcGVydHlbXSB7XG4gICAgcmV0dXJuIHRoaXMuc3BlYy5wcm9wZXJ0aWVzID8/IFtdO1xuICB9XG5cbiAgLyoqXG4gICAqIEdldCB0aGUgRlFOIGZvciB0aGUgYnVpbGRlclxuICAgKi9cbiAgcHVibGljIGdldCBmcW4oKTogRlFOIHtcbiAgICByZXR1cm4gdGhpcy5fYmFzZS5mcW47XG4gIH1cbn1cbiJdfQ==

7

lib/projen/projen-struct.d.ts

@@ -1,4 +0,4 @@

import { Property } from '@jsii/spec';
import { FQN, Property } from '@jsii/spec';
import { Component, typescript } from 'projen';
import { HasProperties, IStructBuilder } from '../builder';
import { HasProperties, IStructBuilder, NamedTypeReference } from '../builder';
export interface ProjenStructOptions {

@@ -48,3 +48,3 @@ /**

*/
export declare class ProjenStruct extends Component implements IStructBuilder, HasProperties {
export declare class ProjenStruct extends Component implements IStructBuilder, HasProperties, NamedTypeReference {
private tsProject;

@@ -62,2 +62,3 @@ private options;

get properties(): Property[];
get fqn(): FQN;
}

@@ -67,2 +67,5 @@ "use strict";

}
get fqn() {
return this.builder.fqn;
}
}

@@ -80,2 +83,2 @@ exports.ProjenStruct = ProjenStruct;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvamVuLXN0cnVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wcm9qZW4vcHJvamVuLXN0cnVjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs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4pOiBJU3RydWN0QnVpbGRlciB7XG4gICAgdGhpcy5idWlsZGVyLnVwZGF0ZShuYW1lLCB1cGRhdGUpO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG4gIHVwZGF0ZUFsbCh1cGRhdGU6IFBhcnRpYWw8UHJvcGVydHk+KTogSVN0cnVjdEJ1aWxkZXIge1xuICAgIHRoaXMuYnVpbGRlci51cGRhdGVBbGwodXBkYXRlKTtcbiAgICByZXR1cm4gdGhpcztcbiAgfVxuICBtaXhpbiguLi5zb3VyY2VzOiBIYXNQcm9wZXJ0aWVzW10pOiBJU3RydWN0QnVpbGRlciB7XG4gICAgdGhpcy5idWlsZGVyLm1peGluKC4uLnNvdXJjZXMpO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG4gIHB1YmxpYyBnZXQgcHJvcGVydGllcygpOiBQcm9wZXJ0eVtdIHtcbiAgICByZXR1cm4gdGhpcy5idWlsZGVyLnByb3BlcnRpZXM7XG4gIH1cbiAgcHVibGljIGdldCBmcW4oKTogRlFOIHtcbiAgICByZXR1cm4gdGhpcy5idWlsZGVyLmZxbjtcbiAgfVxufVxuXG5mdW5jdGlvbiByZWxhdGl2ZUltcG9ydChmcm9tOiBzdHJpbmcsIHRhcmdldDogc3RyaW5nKTogc3RyaW5nIHtcbiAgY29uc3QgZGlmZiA9IHBvc2l4LnJlbGF0aXZlKGRpcm5hbWUoZnJvbSksIHRhcmdldCk7XG4gIGlmICghZGlmZikge1xuICAgIHJldHVybiAnLicgKyBwb3NpeC5zZXA7XG4gIH1cbiAgcmV0dXJuIGRpZmYgKyBwb3NpeC5zZXA7XG59XG5cbmZ1bmN0aW9uIGZxblRvUGF0aChmcW46IHN0cmluZyk6IHN0cmluZyB7XG4gIHJldHVybiBqb2luKC4uLmZxbi5zcGxpdCgnLicpLnNsaWNlKDEpKSArICcudHMnO1xufVxuIl19

@@ -50,5 +50,5 @@ {

"prettier": "^2.8.7",
"projen": "^0.70.4",
"projen": "^0.70.11",
"standard-version": "^9",
"ts-jest": "^29.0.5",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",

@@ -61,3 +61,3 @@ "typescript": "^4.9.5"

"dependencies": {
"@jsii/spec": "^1.79.0",
"@jsii/spec": "^1.80.0",
"@ungap/structured-clone": "^1.0.2"

@@ -71,3 +71,3 @@ },

},
"version": "0.2.2",
"version": "0.2.3",
"jest": {

@@ -114,3 +114,3 @@ "testMatch": [

"types": "lib/index.d.ts",
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
}
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