Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zapier/spectral-api-ruleset

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zapier/spectral-api-ruleset - npm Package Compare versions

Comparing version 0.0.3-0 to 0.0.3-1

9

dist/declarations/src/index.d.ts

@@ -1,1 +0,8 @@

export {};
import type { RulesetDefinition } from '@stoplight/spectral-core';
declare type RulesetDefinitionWithRules = Exclude<Extract<RulesetDefinition, {
rules: any;
}>, {
extends: any;
}>;
declare const ruleset: RulesetDefinitionWithRules;
export default ruleset;
export * from "./declarations/src/index";
export { default } from "./declarations/src/index";
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var _ = require('lodash');

@@ -95,1 +97,3 @@

module.exports = ruleset;
exports["default"] = ruleset;
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var _ = require('lodash');

@@ -95,1 +97,3 @@

module.exports = ruleset;
exports["default"] = ruleset;

@@ -89,1 +89,3 @@ import _ from 'lodash';

module.exports = ruleset;
export { ruleset as default };

4

package.json
{
"name": "@zapier/spectral-api-ruleset",
"version": "0.0.3-0",
"version": "0.0.3-1",
"description": "Node package with Spectral ruleset for Zapier API Guidelines.",

@@ -23,3 +23,3 @@ "repository": "https://gitlab.com/zapier/spectral-api-ruleset/-/tree/main",

"lint": "eslint \"{src/**/*,*}.{js,ts,tsx}\"",
"test:integration": "yarn spectral lint test-schema.yaml -r dist/zapier-spectral-api-ruleset.esm.js",
"test:integration": "yarn spectral lint test-schema.yaml",
"test": "jest",

@@ -26,0 +26,0 @@ "prettier-check": "prettier --check \"{,**/}*.{js,ts,tsx}\"",

@@ -34,3 +34,3 @@ <h1 align="center">

> For some reason, installing the CLI global and running `spectral lint` always fails to find the package. Adding the CLI as local dependency and then running either `yarn spectral lint` or even `npx spectral lint` does work.
> For some reason, installing the CLI global and running `spectral lint` or `npx spectral lint` always fails to find the package. Adding the CLI as local dependency and then running either `yarn spectral lint` does work.

@@ -41,3 +41,3 @@ ## Usage

Create a local `spectral.yaml` that extends the ruleset provided by the package:
Create a local `spectral.yaml` [like ours](/spectral.yaml) that extends the ruleset provided by the package:

@@ -44,0 +44,0 @@ ```yaml

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